Date: Fri, 13 Jan 2006 15:31:16 -0500 (EST) From: user <user@dhp.com> To: freebsd-fs@freebsd.org Subject: RE: preventing deadlocks in snapshot directories - unexplained Message-ID: <Pine.LNX.4.21.0601131523550.8684-100000@shell.dhp.com>
next in thread | raw e-mail | index | archive | help
I'm sorry - I misspoke in my original post, and I don't think I made clear what it was I was witnessing. What I am saying is, I have snapshots that exist _two_ directories deep off of the mount point, such as: /.snap/snap_directory1/snapshot /.snap/snap_directory2/snapshot and what I am seeing is, if I: cd /.snap (note, no snapshots in here) rm -rf snap_directory1/ (note, deleting a dir containing snapshot) What happens is, other operations inside of /.snap lock up. Which is contradictory to what I expected, and to what you have explained thus far in response to my original post (many thanks for those responses). Both you and I seem to expect that operations would only be locked for the /.snap/snap_directory1/ directory. I am going to try to reproduce this ... The "solution" I proposed was : /.snap/snapshot /.snap2/snapshot /.snap3/snapshot Which isn't much different, but it prevents the existence of a non-snapshot directory that could accidently be put into use, or be a pwd, or otherwise statted while a snapshot is deleted, etc. Any thoughts / comments ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0601131523550.8684-100000>