linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* after mounting with -o degraded: ioctl: LOOP_CLR_FD: Device or resource busy
@ 2011-07-12  0:47 krzf83@gmail.com 
  2011-07-12 10:09 ` Ilya Dryomov
  0 siblings, 1 reply; 2+ messages in thread
From: krzf83@gmail.com  @ 2011-07-12  0:47 UTC (permalink / raw)
  To: linux-btrfs

dd if=/dev/null of=img5 bs=1 seek=2G
dd if=/dev/null of=img6 bs=1 seek=2G
mkfs.btrfs -d raid1 -m raid1 img5 img6
losetup /dev/loop4 img5
losetup /dev/loop5 img6
btrfs device scan
mount -t btrfs /dev/loop4 dir
umount dir
losetup -d /dev/loop5
mount -t btrfs -o degraded /dev/loop4 dir
umount dir
losetup -d /dev/loop4
ioctl: LOOP_CLR_FD: Device or resource busy
mkfs.ext3 /dev/loop4
mke2fs 1.39 (29-May-2006)
/dev/loop4 is apparently in use by the system; will not make a filesystem here!

this only happens after mouting with -o degraded. loopback device is
unusable until next reboot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-12 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-12  0:47 after mounting with -o degraded: ioctl: LOOP_CLR_FD: Device or resource busy krzf83@gmail.com 
2011-07-12 10:09 ` Ilya Dryomov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).