[patch cleanup] mount -f

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sat Feb 16 13:20:55 UTC 2008


On Sat, 16 Feb 2008, Cristian Ionescu-Idbohrn wrote:

> On Thu, 14 Feb 2008, Cristian Ionescu-Idbohrn wrote:
>
> > I'd like to decouple 'mount -f' from USE_FEATURE_MTAB_SUPPORT, unless
> > there are serious reasons against it.
> >
> > mount man-page:
> >
> >   -f     Causes everything to be done except for the actual system  call;
> >          if  it's  not  obvious, this ``fakes'' mounting the file system.
> >          This option is useful in conjunction with the -v flag to  deter-
> >          mine what the mount command is trying to do. It can also be used
> >          to add entries for devices that were mounted earlier with the -n
> >          option.
> >
> >
> > I propose this patch.
>
> Ok.  Previous patch proposal didn't get any attention :(  I also noticed
> it added 33 bytes.
>
> Here is another attempt.  It makes the fake mount a feature, adds nothing
> if not explicitely selected and is automatically selected with
> FEATURE_MTAB_SUPPORT.
>
> What do you think?

Cleaned up previous patch.


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: feature-mount-fake.patch
Type: text/x-diff
Size: 2749 bytes
Desc: 
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080216/86b4df63/attachment-0002.bin 


More information about the busybox mailing list