The following steps will leave an unmountable filesystem behind. This test "works" using ext3 or XFS. XFS version is as follows replacing steps with ext3 specific commands results in the same unmountable filesystem problem: $ 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 All normal up to here. I can unmount everything just fine. $ umount /mnt/scratch/mnt $ umount /mnt/scratch $ 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 $ At this point /mnt/scratch is unmountable. lsof shows no open references to the filesytem, so it would seem to be a reference count leak somewhere.... Reproduced on 2.6.25-rc3 on ia64 and x86_64, and UML on 2.6.26-pre-rc1. Found when changing XFSQA test 073 to host loopback images and mounts mounts on something other than /tmp. Cheers, Dave. -- Dave Chinner Principal Engineer SGI Australian Software Group -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Jeff Garzik | Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
| Chodorenko Michail | PROBLEM: Celeron Core |
git: | |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Johannes Schindelin | Re: Empty directories... |
| Jakub Narebski | Re: VCS comparison table |
| Sam Song | Re: Fwd: [OT] Re: Git via a proxy server? |
| J.W. Zondag | Dell PE1950 III - Perc 6i |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Anselm R. Garbe | OpenBSD 4.0 / Xorg -> vesa 1920x1200 widescreen resolution |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Anselm Lingnau | File creation date in UNIX (was: Re: VMS) |
| Rafal Kustra (summer student) | mount |
| Nicholas Yue | Re: more on 486/33 weirdness |
