-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zfs send --props or -R do not send inherited properties #13024
Comments
Given that it has worked like this since OpenSolaris, and has not been changed, I believe you may safely conclude it is by design. |
+1 for (A) edit the man page or (B) change the behavior of -R / --props you are right, IMHO the man page is false or at least not clear enough. The man page implies that REALLY all props are send. But i think option (B) is the better way to handle it. When a lot of properties (in your example only |
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions. |
System information
Describe the problem you're observing
When using
zfs send
to send a dataset, I want to send its properties. Namely, the ones that involve tuning of the data. That would includecompression
,atime
,xattr
,dnodesize
,recordsize
, and others.The man page says that I can do this with -p/--props or it will also be implied by -R. I'm also told that if I am sending an encrypted data set, I need to use -w (raw) to send props as well.
In my testing I have discovered that only properties explicitly locally set on a dataset are actually sent. If a property is inherited from a parent, it will not be propagated to the target -- even if it is a non-default value.
This isn't ideal. My use case here is sending some (but not all) child datasets for an offsite backup. I want those properties to be accurate since there may come a time where the replica must be promoted or restored somehow, and I may not remember what my various settings were.
The man page does not mention that inherited properties are not sent, and although it seems to me it should include any non-default property, I don't know whether this was an intentional decision. If it is designed this way, it would be good to see an update to the man page for zfs-send for clarification.
Describe how to reproduce the problem
The text was updated successfully, but these errors were encountered: