Strange behaviour of getcwd for hidden ZFS snapshots.

From: Willem Jan Withagen <wjw_at_digiware.nl>
Date: Mon, 31 Aug 2015 13:17:22 +0200
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_at_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
Received on Mon Aug 31 2015 - 09:17:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:59 UTC