On Mon, Oct 12, 2009 at 10:37 PM, Denys Vlasenko <[email protected]>wrote:
> On Thu, Oct 8, 2009 at 3:26 AM, John Williams > <[email protected]> wrote: > > > I was a little surprised to discover that busybox mount is silent > > about failed mount attempts, when the desired FS type is not present > > in the kernel: > > > > / # cat /proc/filesystems | grep ext2 > > / # mount -t ext2 /dev/xsa2 /mnt > > / # echo $? > > 111 > > > > On my desktop: > > [jwilli...@petalogix-ws1 linux-2.6.x]$ sudo mount -t rubbish /dev/loop0 > /mnt > > mount: unknown filesystem type 'rubbish' > > Returning to your original mail. It's strange that you > do not get any error message. There should be one. > Example from my machine: > > # busybox mount -t exttt2 /dev/sr0 /mnt/d > mount: mounting /dev/sr0 on /mnt/d failed: No such file or directory > > > It comes from this syscall: > > stat64("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0 > mount("/dev/sr0", "/mnt/d", "exttt2", MS_SILENT, "") = -1 ENOENT (No > such file or directory) > > Do you have CONFIG_FEATURE_MTAB_SUPPORT=y? Does the message appear > if you switch it off? > Yes I have MTAB enabled. Actually it reminds me of another odd behaviour - /etc/mtab only notes mounts that take place after the first userspace mount - there's no entry for /, for example. For that I need to look at /proc/mounts I'll try with etc/mtab disabled. Also yet another odd behaviour (maybe it's just me?) - attempting to mount onto a non-existing mount point also just fails silently. strace shows mount() returning ENOENT before busybox goes looking for the mount helper app. I'm building busybox 1.14.3 BTW. Thanks, John -- John Williams, PhD, B.Eng, B.IT PetaLogix - Linux Solutions for a Reconfigurable World w: www.petalogix.com p: +61-7-30090663 f: +61-7-30090663
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
