[BusyBox] crypto losetup patch

Rob Landley rob at landley.net
Tue Jan 20 23:08:03 UTC 2004


On Tuesday 20 January 2004 05:47, Luca Barbato wrote:
> Hi, I have a patch for the busybox-1.00-pre5 to have a losetup with
> crypto support. You may be interested.
>
> http://dev.gentoo.org/~lu_zero/busybox/
>
> the support for mount -o loop is missing but would be trivial to add it.
>
> Regards
>
> lu

On a related note, as far as I know the stock umount doesn't losetup -d the 
loop device when /etc/mtab is a symlink to /proc/mounts, because the fourth 
field never says ,loop in /proc/mounts.  And this is a pretty standard thing 
on embedded systems...

Now maybe a kernel patch to say ",loop" would fix this, but we could also 
detect in umount if the first field is /dev/loop* (which is a hack, but is in 
fact _more_ information than /proc/mounts gives you; that doesn't say _which_ 
loop device you used...)  Or we could just always try to do losetup -d (or 
the corresponding ioctl/syscall) on the device node, which presumably 
shouldn't hurt anything when it isn't or else that's a kernel bug...

I can whip up a patch if anybody else thinks this is worth addresing...

Rob




More information about the busybox mailing list