Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Dec 2010 19:53:19 +0800
From:      Denny Lin <dennylin93@hs.ntnu.edu.tw>
To:        Daniel Braniss <danny@cs.huji.ac.il>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: unable to pwd in ZFS snapshot
Message-ID:  <20101226115318.GB84868@mail.hs.ntnu.edu.tw>
In-Reply-To: <E1PWopX-000A1z-5G@kabab.cs.huji.ac.il>
References:  <E1PWkzd-0006J0-OC@kabab.cs.huji.ac.il> <20101226073156.GA84868@mail.hs.ntnu.edu.tw> <E1PWmXV-00085C-NK@kabab.cs.huji.ac.il> <91EDEEE8-215F-438D-923E-12A75F7B2C88@verweg.com> <E1PWopX-000A1z-5G@kabab.cs.huji.ac.il>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101226115318.GB84868>