-
Notifications
You must be signed in to change notification settings - Fork 148
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 without -R on bastille create #845
base: master
Are you sure you want to change the base?
Conversation
…e create scenario, enabling compatibility with encrypted datasets
What about cloning? |
Cloning requires further brainstorming. Getting thick jails to work is a first step, and an opportunity to get confirmation on the use of
No issue there AFAIK! Renaming works out of the box on encrypted datasets in my experience. Happy to get feedback from you seasoned Bastille folks & run tests to further my understanding! |
…breaks several bastille functions
Unrelated to encryption, second commit fixes #858. |
I have a suggestion. What if we check the property of the Bastille dataset, and if encryption is enabled, we send with -w but if not then we send as we currently do. |
…ince it breaks several bastille functions" This reverts commit 1f1cf72. Upstream implemented a more direct fix.
@vegged Here is what I mean. We can "zfs get -H -o encryption pool/dataset" to return "on" for encryption enabled, and "off" for disabled. We will then use the output to build an "OPTIONS" variable that will add "-w" if encryption is enabled. Would this work for you? |
@vegged fix the conflicts in your branch so I can merge this one |
this PR addresses #839 |
Let's hang on with merging. @vegged did you read my suggestion? |
Unfortunately, sending with Since there are no child datasets in the thick jail scenario, is there any drawback to removing |
None that I can see. But if there was a reason it is included, we should do what I suggested, but except for -w, we just send without -R on encrypted datasets. |
I think victor;s suggestion of checking if the db is encrypted and remove the -R so we don't accidentally break anything |
Since there are no descendent file systems in the
bastille create
scenario, strippingzfs send
of the--replicate
option enables support for encrypted datasets. Fixes #839.