lkml.org 
[lkml]   [1999]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: loopback device semantics and UNIX mount(2) philosophy.
On Tue, 19 Oct 1999, Chris Wedgwood wrote:
> mount(8) can't easily tell there is a problem here. Ideally I guess
> the kernels loopback driver should refuse to attach to a file that is
> in use (in any way whatsoever, not just by another loopback device)

As Rogier pointed out a minute ago, one would have to do something more
complex than just usage counts. Because different loopback devices may
have used different (non-overlapping?) regions of the file. One would have
to do region management something like what is done with POSIX locks?

Or, better even, don't do stupid things as root and there will be no
unexpected results :)

Regards,
Tigran.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.256 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site