My brain hurts. (Messing with mount.)

Bernd Petrovitsch bernd at firmix.at
Thu Mar 9 17:38:23 UTC 2006


On Thu, 2006-03-09 at 12:33 -0500, Rob Landley wrote:
> 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.

If the primary target of busybox is the embedded world, ordinary mounts
(block devices, maybe loopback) are more than enough IMHO.
Anything else is expendable.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




More information about the busybox mailing list