My brain hurts. (Messing with mount.)

Denis Vlasenko vda at ilport.com.ua
Mon Mar 6 22:38:40 PST 2006


On Monday 06 March 2006 21:55, Rob Landley wrote:
> On Monday 06 March 2006 3:31 am, Denis Vlasenko wrote:
> > > It is possible to --bind mount a directory onto itself.  (Oddly, the
> > > system survived.  It seems to be a NOP, I could still list the contents
> > > of the directory, but it shows up in /proc/mounts.)
> >
> > With upcoming kernel support, this will allow making subrees RO
> > (or noatime, noexec etc) if you use corresponding mount option.
> 
> Ah.  Cool.
> 
> Mount's always handled "mount blockdev directory" and my version handles 
> "mount file directory" with an automatic losetup behind the scenes.  I'm 
> pondering making the "mount directory directory" do an automatic --bind 
> mount.

What will "mount file file" do? Will it also do a --bind mount?
--
vda


More information about the busybox mailing list