-
Notifications
You must be signed in to change notification settings - Fork 57
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
Use zfs recv -u instead of setting destination properties one by one #38
Comments
So.. I'm missing something. If the end result is the same anyway.. then what is the benefit of using -u ? Is the benefit "dont have to do the manual setting of properties"? Although, given that -x is not widely supported, sadly.. perhaps you could say that "faster initialization for more OS's" is the end user benefit? |
Problem is, more commands you send over network, more can broke up. With this fix you can send with all properties right away and won't be surprised they are missing when you need to rollback. But yes, it's sort of code cleanup and yes, it's little faster than setting properties one by one. |
Okay, understood at last. Given that initialization is especially crucial to zrep user experience, I'm going to need to spend some quality time thinking about my preferred coding approach, analyzing and testing edge cases,etc. |
Aaaaaan this is why I reather send PR's :) Can I rework my PR somehow so you will merge it? |
Thanks for the enthusiasm, but.... no :) |
It's strange for me that you have code on github and don't like anyone to contribute. Me on the other hand like opensource very much and trying to contribute where I can. I wanted to make your great script better for everyone reather than writing my own solution. I see it as a win-win. I'm also sorry that you are thinking like this about licensing, but it's your right. I will write my own script after all. |
Thanks for pointing out the -u option. I'll probably code something today or tomorrow, fyi. |
I updated the code to use recv -u instead of recv -x |
Where I was talking about gentoo? :) I am using SmartOS. Will test on weekend, thanks. |
When I played with script, I noticed that destination properties are set one by one when
recv -x
is not supported. I also saw from code comments that you like to always send with-p
option. There is possibility to send with-p
option and receive with-u
option so destination filesystem isn't mounted and mountpoint can be fixed after transfer.In my pull #36 (comment) nothing changed against your original approach, destination is mounted at the end, no
init-unmounted
is needed. My code could probably be used instead of else section and settings properties one by one, but I wasn't sure, I know only SMartOS so I left it intact.The text was updated successfully, but these errors were encountered: