From owner-freebsd-stable@FreeBSD.ORG Sun Dec 26 11:53:22 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 012071065673 for ; Sun, 26 Dec 2010 11:53:22 +0000 (UTC) (envelope-from dennylin93@hs.ntnu.edu.tw) Received: from mail.hs.ntnu.edu.tw (mail.hs.ntnu.edu.tw [140.131.149.3]) by mx1.freebsd.org (Postfix) with ESMTP id C3D438FC0C for ; Sun, 26 Dec 2010 11:53:21 +0000 (UTC) Received: by mail.hs.ntnu.edu.tw (Postfix, from userid 1001) id 260754B782A; Sun, 26 Dec 2010 19:53:19 +0800 (CST) Date: Sun, 26 Dec 2010 19:53:19 +0800 From: Denny Lin To: Daniel Braniss Message-ID: <20101226115318.GB84868@mail.hs.ntnu.edu.tw> References: <20101226073156.GA84868@mail.hs.ntnu.edu.tw> <91EDEEE8-215F-438D-923E-12A75F7B2C88@verweg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Stable 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: Sun, 26 Dec 2010 11:53:22 -0000 On Sun, Dec 26, 2010 at 01:32:03PM +0200, Daniel Braniss wrote: > > > On 26 Dec 2010, at 10:05, Daniel Braniss wrote: > > > >> On Sun, Dec 26, 2010 at 09:26:13AM +0200, Daniel Braniss wrote: > > >> 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? > > > > Personally, I want to have the snapshot, but not see the directory otherwise so that > > it doesn't get scooped up by rsync et al inadvertently > > btw, why use rsync if 'zfs send| zfs recv' work realy nice? If I wanted to rsync the contents of /path/to/foo/ to another computer, rsync would unintenionally pick up the contents of /path/to/foo/.zfs/, so it's best to have .zfs hidden most of the time. Other commands such as cp should also have this problem. -- Denny Lin