[Toybox] [Issue] - mounting a device again

Ashwini Sharma ak.ashwini1981 at gmail.com
Mon Sep 15 21:14:16 PDT 2014


Hi Rob,

Encountered an issue while mounting a device which is already mounted.

when __-t__ is not specified, the mount tries with the first device
filesystem
it finds from /proc/filesystems.

__mount()__ return an EBUSY, at this point no other file system is tried
for mounting
instead mount breaks out of the loop with a "Device Busy" error.

Shouldn't it try for another filesystem mount in this case, as this is also
the behavior
from GNU mount.

Use case.

Lets have a disk image, formatted ext4 setup at /dev/loop0.

mount /dev/loop0 /tmp

this mounts loop0 on /tmp with __ext4__

try again, mount tries with first fs in /proc/filesystems, e.g. ext3. An
error is
reported and mount breaks out without trying further.

What should be the right thing.

regards,
Ashwini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20140916/d34c7afa/attachment-0003.htm>


More information about the Toybox mailing list