My brain hurts. (Messing with mount.)

Rob Landley rob at landley.net
Thu Mar 9 17:33:37 UTC 2006


On Thursday 09 March 2006 2:06 am, Denis Vlasenko wrote:
> > > What will "mount file file" do? Will it also do a --bind mount?
> >
> > It'll complain that the target isn't a directory.
> >
> > For _any_ mount to make sense, the target must be a directory.  That's
> > part of the definition of mount, everything gets mounted on a directory.
>
> No. mount --bind works on files too:

That's...

Why on _earth_ would they do that?  Is that intentional?  They introduced some 
weird vfs-level way of doing a cross-mount hardlink?  Except that in this 
case there must be an existing file, which you hide by doing the bind?

I'm not worrying about supporting that right now.  If ever.

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list