From owner-freebsd-stable@FreeBSD.ORG Mon Dec 27 00:15:46 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EDFF106564A for ; Mon, 27 Dec 2010 00:15:46 +0000 (UTC) (envelope-from spork@bway.net) Received: from xena.bway.net (xena.bway.net [216.220.96.26]) by mx1.freebsd.org (Postfix) with ESMTP id 5605E8FC12 for ; Mon, 27 Dec 2010 00:15:45 +0000 (UTC) Received: (qmail 87251 invoked by uid 0); 27 Dec 2010 00:15:45 -0000 Received: from smtp.bway.net (216.220.96.25) by xena.bway.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 27 Dec 2010 00:15:45 -0000 Received: (qmail 87241 invoked by uid 90); 27 Dec 2010 00:15:44 -0000 Received: from unknown (HELO ?10.3.2.41?) (spork@96.57.144.66) by smtp.bway.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 27 Dec 2010 00:15:44 -0000 Date: Sun, 26 Dec 2010 19:15:42 -0500 (EST) From: Charles Sprickman X-X-Sender: spork@hotlap.local To: Daniel Braniss In-Reply-To: Message-ID: References: <20101226073156.GA84868@mail.hs.ntnu.edu.tw> User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org Subject: Re: unable to pwd in ZFS snapshot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Dec 2010 00:15:46 -0000 On Sun, 26 Dec 2010, Daniel Braniss wrote: >> On Sun, Dec 26, 2010 at 09:26:13AM +0200, Daniel Braniss wrote: >>> this is still broken in 8.2-PRERELEASE, there seems to be a patch, but >>> it's almost a year old. >>> http://people.freebsd.org/~jh/patches/zfs-ctldir-vptocnp.diff >> >> Setting snapdir to visible should fix this right away: >> # zfs set snapdir=visible tank/foo >> > it did indeed! > any reason why this should not be the default behaviour? Others mentioned "rsync" or "cp" (used recursively) might pick up these directories. These are good reasons, especially if you've got a few hundred snapshots, which would not be uncommon when using ZFS on a host that's doing disk-based backups. Other gotchas would be some of the periodic scripts - you don't want locate.updatedb traversing all that, or the setuid checks. Also I know I'm prone to sometimes doing a brute-force "find" which can also dip into those hundreds of snapshot dirs. In general, I think having the directories hidden is a good default. Wouldn't be opposed to having the "pwd" issue fixed though... Thanks, Charles > thanks, > danny > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >