allanjude / zxfer

A continuation of development on zxfer, a popular script for managing ZFS snapshot replication
BSD 2-Clause "Simplified" License
124 stars 40 forks source link

zxfer doesn't set received properties with -P #5

Open RobotsOnDrugs opened 9 years ago

RobotsOnDrugs commented 9 years ago

-P sets local properties, but resets received properties to defaults. This is particularly troublesome for properties that can't be set after creation, and can leave some nasty surprises (if say, some filesystems inherit setuid=on and should be explicitly set off). Quite astonishing when you explicitly tell zxfer to make source and destination match and they don't, especially when zxfer spits out no indication that it didn't comply, even though the man page does say that only local properties are honored.

# zfs get readonly zroot/var/empty
NAME             PROPERTY  VALUE   SOURCE
zroot/var/empty  readonly  on      received
# zfs get readonly storage/backup/zroot/var/empty
NAME                            PROPERTY  VALUE   SOURCE
storage/backup/zroot/var/empty  readonly  off     inherited from storage/backup/zroot
allanjude commented 9 years ago

I'll have to check, but I think some of these are done this way by design. I'll look into it