Bug #8599
Snapshots don't preserver user properties
Status:
New
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2017-08-31
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
Description
If you explicitly set a user property on a snapshot, then it will be preserved, as expected. However, if you set a user property on the filesystem, snapshot that filesystem, then change the property, then the snapshot's property will incorrectly have the new value. Builtin properties don't have this problem.
- zpool create foo /tmp/da0
- zfs set x:y=1 foo
- zfs snapshot foo@1
- zfs set x:y=2 foo
- zfs set compress=on foo
- zfs snapshot foo@2
- zfs list -o name,compress,x:y -r -t all foo
NAME COMPRESS X:Y
foo on 2
foo@1 - 2
foo@2 - 2
foo@1 should've had "1" for the value of X:Y, but instead it had "2".
Updated by Andriy Gapon about 3 years ago
I think that this is expected behaviour.
$ zfs get x:x rpool/x@s NAME PROPERTY VALUE SOURCE rpool/x@s x:x 1 inherited from rpool/x
If the property is inherited, then any changes to rpool/x are obviously reflected in rpool/x@s.
Updated by Alan Somers about 3 years ago
Is it expected behavior that builtin properties and user properties would inherit differently?