Date: Fri, 20 Nov 2015 09:47:24 +0100 From: Willem Jan Withagen <wjw@digiware.nl> To: "freebsd-fs@freebsd.org" <freebsd-fs@freebsd.org> Subject: Fwd: Strange behaviour of getcwd for hidden ZFS snapshots. Message-ID: <564EDE1C.7080502@digiware.nl> In-Reply-To: <55E437C2.5080609@digiware.nl> References: <55E437C2.5080609@digiware.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
[This is repost from an earlier version on current@, but then there were no takers.] Hi, I was trying to restore some deleted files from a snapshot with rsync: [/home/www/.zfs/snapshot/zfs-auto-snap_hourly-2015-08-31-12h00/www.tegenbosch28.nl] root@zfs.digiware.nl# rsync -rav * /tmp rsync: getcwd(): No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at util.c(1101) [Receiver=3.1.1] Exit 3 Turns out that if the snapshots are hidden, then getcwd() errors out? Setting snapdir=visible on the volume gets it to do its job. As does changing out of the snapshot directory and using the full path for source and destination Is this a bug or a feature? 10.2-STABLE FreeBSD 10.2-STABLE #324 r287170: Thu Aug 27 --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?564EDE1C.7080502>