Re: [BUG] remount ro on loopback mount leaves unmountable filesystem behind | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Tue, May 13, 2008 at 06:50:47PM +1000, David Chinner wrote: > Same thing, but remounting the loop filesystem readonly > before unmounting: > > $ mount -t xfs /dev/sdb6 /mnt/scratch > $ mkdir /mnt/scratch/mnt > $ touch /mnt/scratch/img > $ mkfs.xfs -f -d file,name=/mnt/scratch/img,size=1g > $ mount -t xfs -o loop /mnt/scratch/img /mnt/scratch/mnt > $ mount -t xfs -o remount,ro /mnt/scratch/img /mnt/scratch/mnt > $ umount /mnt/scratch/mnt > $ umount /mnt/scratch > umount: /mnt/scratch: device is busy > umount: /mnt/scratch: device is busy This is a problem in mount, no the kernel. Before the remount the /etc mtab looks something like this: /qemu/test.img /mnt xfs rw,loop=/dev/loop0 0 0 and after it looks something like this: /qemu/test.img /mnt xfs ro 0 0 As a workaround do a losetup -d /dev/loop0 after unmounting the filesystem. -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]