unable to pwd in ZFS snapshot
dennylin93 at hs.ntnu.edu.tw
Sun Dec 26 11:53:22 UTC 2010
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.
More information about the freebsd-stable