lkml.org 
[lkml]   [1999]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: loopback devices are not freeed on umount
From
Date
j.w.r.degoede@et.tudelft.nl (Hans de Goede) writes:

> Hi all,
>
> If I mount a floppy image or an iso image trough loopback for example:
>
> mount boot.img t -o loop=/dev/loop0
>
> and then umount it with:
> umount t
> or:
> umount /dev/loop0
>
> The loopback module usage count stays 1 in /proc/modules
> also I cannot mount another image thorugh /dev/loop0 cause it's still in
> use acording to
> the kernel.


mount does an implicit losetup, but umount does not do an implicit
losetup (because that could be inconvenient e.g. with encrypted filesystems).
So you have to remove the loop device afterwards with losetup -d.


-Andi


--
This is like TV. I don't like TV.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.095 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site