Re: loopback device semantics and UNIX mount(2) philosophy.

Tigran Aivazian (tigran@sco.COM)
Tue, 19 Oct 1999 10:55:42 +0100 (BST)


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/