[BusyBox] My mount rewrite.

Tito farmatito at tiscali.it
Tue Feb 8 14:51:58 UTC 2005


On Tuesday 08 February 2005 07:18, Rob Landley wrote:
> Okay, it builds again, and seems to work.  It needs one more cleanup pass, but 
> here it is in case anybody wants to point and laugh in the meantime.
snip
> Oh yeah, and it should now accept --bind and --move syntax (and for that 
> matter --remount and any other thing you could pass with -o).
> 
Hi, Rob,
I discovered a little problem in your new mount:

If you use both --options and -o something you get a segfault:
./busybox mount -o rw -t ext3 /dev/fd0 /mnt/floppy --remount
Segmentation fault (core dumped)

./busybox mount -o rw -t ext3 /dev/fd0 /mnt/floppy --bind
Segmentation fault (core dumped)

( I know that the examples make not much sense......)

This is maybe due to parse_mount_options() being called twice?
I haven't investigated it further.

Ciao, Tito 



More information about the busybox mailing list