* Loopback, unable to release
@ 2001-05-23 15:29 Adam Schrotenboer
2001-05-23 22:31 ` Jens Axboe
2001-05-24 2:18 ` Jeff Chua
0 siblings, 2 replies; 3+ messages in thread
From: Adam Schrotenboer @ 2001-05-23 15:29 UTC (permalink / raw)
To: Jens Axboe; +Cc: LKML
Using 2.4.4-ac3 (as well as in 2.4.3*) I have found it impossible to
unmap a loopback
strace losetup -d /dev/loop0 (relevant portion)
open("/dev/loop0", O_RDONLY) = 3
ioctl(3, LOOP_CLR_FD, 0) = -1 EBUSY (Device or resource busy)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
write(2, "ioctl: LOOP_CLR_FD: Device or re"..., 44ioctl: LOOP_CLR_FD:
Device or resource busy) = 44
_exit(1) = ?
also I have loop.o as module, and use count never decreases, in fact
right now it is at 294.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Loopback, unable to release
2001-05-23 15:29 Loopback, unable to release Adam Schrotenboer
@ 2001-05-23 22:31 ` Jens Axboe
2001-05-24 2:18 ` Jeff Chua
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2001-05-23 22:31 UTC (permalink / raw)
To: Adam Schrotenboer; +Cc: LKML
On Wed, May 23 2001, Adam Schrotenboer wrote:
> Using 2.4.4-ac3 (as well as in 2.4.3*) I have found it impossible to
> unmap a loopback
>
> strace losetup -d /dev/loop0 (relevant portion)
>
> open("/dev/loop0", O_RDONLY) = 3
> ioctl(3, LOOP_CLR_FD, 0) = -1 EBUSY (Device or resource busy)
> open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1
> ENOENT (No such file or directory)
> open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> write(2, "ioctl: LOOP_CLR_FD: Device or re"..., 44ioctl: LOOP_CLR_FD:
> Device or resource busy) = 44
> _exit(1) = ?
>
> also I have loop.o as module, and use count never decreases, in fact
> right now it is at 294.
Uhm weird. Are you talking about module use count or loop reference
count?
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Loopback, unable to release
2001-05-23 15:29 Loopback, unable to release Adam Schrotenboer
2001-05-23 22:31 ` Jens Axboe
@ 2001-05-24 2:18 ` Jeff Chua
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Chua @ 2001-05-24 2:18 UTC (permalink / raw)
To: Adam Schrotenboer; +Cc: Jens Axboe, LKML
I'm using 2.4.5-pre5 and before on 2.4.x (without -ac) and don't have such
problem.
boston:root:/tmp> mount -o loop ram /mnt
boston:root:/tmp> umount /mnt
boston:root:/tmp> strace losetup -d /dev/loop0
execve("/sbin/losetup", ["losetup", "-d", "/dev/loop0"], [/* 47 vars */])
= 0
brk(0) = 0x804b408
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
Did you umount the loopback device or ensure that nobody is using it?
On Wed, 23 May 2001, Adam Schrotenboer wrote:
> Using 2.4.4-ac3 (as well as in 2.4.3*) I have found it impossible to
> unmap a loopback
>
> strace losetup -d /dev/loop0 (relevant portion)
>
> open("/dev/loop0", O_RDONLY) = 3
> ioctl(3, LOOP_CLR_FD, 0) = -1 EBUSY (Device or resource busy)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-05-24 2:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-23 15:29 Loopback, unable to release Adam Schrotenboer
2001-05-23 22:31 ` Jens Axboe
2001-05-24 2:18 ` Jeff Chua
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox