Red Hat Bugzilla – Bug 9491
loop device not freed after umount
Last modified: 2008-05-01 11:37:54 EDT
I use a file as a filesystem volume using the loop device,
the fstab entry looks like this:
<myfile> <mountpoint> ext2 loop,user,noauto 0 0
I mount/umount this volume frequently as an ordinary user.
I noticed that after umount, the corresponding device /dev/loop0,
loop1, loop2, etc. gets not freed; after several umounts no loop
devices are left available and mount command fails. To correct it
I had to run losetup -d.
When root umounts the volume, everything looks fine.
The kernel is ver 2.2.11.
Looks like a kernel problem, probably fixed by now...
Does this still happen in RH7?
Don't know and cannot check version 7.0, but
6.2 with kernel 2.2.16 appears to have this bug