PS. I've noticed that the loop devices are not released.

mount -o loop $from $to
# this allocates a loop device, as can be seen in ps auxww
#  (under kernel 2.4.x, as [loop0] or similar kernel threads)
#  or in /proc/mounts (source of the mount point).

umount $to
# now it's unmounted, but the loop device is still active.
# this means that the space allocated by $from is not released and
# that after 8 mount cycles all loop devices are used up.

I don't know whether umount $from combined with a normal /etc/mtab file will deallocate the loop device.

If so, then my previous patch is bad.

But then I don't know what the correct approach is.

The recommendation to make /etc/mtab a symlink to /proc/mounts is not from me, and it helps to prevent other problems, so I don't like giving up this habit very much.

Could you tell me whether loop devices are properly released (with and without my patch)?

I could then write a new patch which looks at /proc/mounts to find out the allocated loop device and deallocate it explicitely using losetup -d.

Christian.


-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to