From owner-freebsd-fs@FreeBSD.ORG Fri Jan 13 21:21:06 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CA3B16A41F for ; Fri, 13 Jan 2006 21:21:06 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F55443D46 for ; Fri, 13 Jan 2006 21:21:05 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k0DLL3aJ010178; Fri, 13 Jan 2006 15:21:03 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <43C819C1.1060706@centtech.com> Date: Fri, 13 Jan 2006 15:21:05 -0600 From: Eric Anderson User-Agent: Thunderbird 1.5 (X11/20060112) MIME-Version: 1.0 To: user References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1240/Fri Jan 13 10:57:12 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-fs@freebsd.org Subject: Re: preventing deadlocks in snapshot directories - unexplained X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2006 21:21:06 -0000 user wrote: > 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 ? > What happens if you do: rm -f snap_directory1/snapshot rmdir snap_directory1 Does the same thing happen? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------