Skip to content
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

Handle not-sending of not-enabled datasets #626

Merged
merged 14 commits into from
Mar 12, 2024

Conversation

jimklimov
Copy link
Contributor

@jimklimov jimklimov commented Jan 15, 2024

Follows up from ideas in #623

UPDATE: There was a thought about using oracleMode to fall back from a recursive snapshot send to one-by-one processing in case we have exclusions (and/or send recursively only some smaller sub-trees that are safe to send - no exclusions there), but looking at this code structure I do not see a recursive send in fact. Maybe it is hidden deeper in $self->zZFS->...?..

jimklimov and others added 6 commits January 15, 2024 08:54
…of org.znapzend:enabled" for sub-datasets

Signed-off-by: Jim Klimov <jimklimov@gmail.com>
… cleanup of snapshots on enabled=off sub-datasets

Signed-off-by: Jim Klimov <jimklimov@gmail.com>
…teSnapshot() so it can also be used in sendRecvCleanup()

Signed-off-by: Jim Klimov <jimklimov@gmail.com>
… done in refreshBackupPlans() once

Track the list of names as @{$backupSet->{srcDisabledDescendants}}

Signed-off-by: Jim Klimov <jimklimov@gmail.com>
Signed-off-by: Jim Klimov <jimklimov@gmail.com>
@oetiker
Copy link
Owner

oetiker commented Jan 16, 2024

hmmm sorry ... this is getting a bit complex now aren't you changeing the same function as in the other PR ?

@jimklimov
Copy link
Contributor Author

jimklimov commented Jan 16, 2024

aren't you changeing the same function as in the other PR ?

As noted in the other PR at #625 - indeed, same function but for a different purpose. The change here merely skips sending of datasets that are "not-enabled" by whatever definition of that is in the codebase. That other PR changes the definition.

Also both of these PRs include and supersede the less impactful changes proposed in #623 (at least, as of when it did not include numerous merge-backs from master-branch updates).

lib/ZnapZend.pm Outdated Show resolved Hide resolved
jimklimov and others added 3 commits March 12, 2024 09:08
…a not-enabled dataset

Signed-off-by: Jim Klimov <jimklimov@gmail.com>
… emit a debug message about sending (or not) a dataset

Signed-off-by: Jim Klimov <jimklimov@gmail.com>
@oetiker oetiker merged commit aa0bfed into oetiker:master Mar 12, 2024
4 checks passed
@jimklimov jimklimov deleted the send-not-enabled branch March 12, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants