Skip to content

Conversation

jigpu
Copy link

@jigpu jigpu commented Dec 9, 2021

The program currently stores all targets into TARGETS_RECURSIVE even
if the --recursive flag is not set. This causes the program to
incorrectly snapshot only the most-ancestral datasets in the list. For
example, the following invocation would only snapshot datasets a and
b:

$ zfs-snapshot-auto a a\child1 a\child2 b b\child1 b\child2

Instead, we should be storing each valid dataset in TARGETS_REGULAR
so that they can be backed up individually. This commit tests wether
the flag is set before deciding whih variable to update.

Fixes: #83

The program currently stores all targets into `TARGETS_RECURSIVE` even
if the `--recursive` flag is not set. This causes the program to
incorrectly snapshot only the most-ancestral datasets in the list. For
example, the following invocation would only snapshot datasets `a` and
`b`:

    $ zfs-snapshot-auto a a\child1 a\child2 b b\child1 b\child2

Instead, we should be storing each valid dataset in `TARGETS_REGULAR`
so that they can be backed up individually. This commit tests wether
the flag is set before deciding whih variable to update.

Fixes: zfsonlinux#83
@zpin
Copy link

zpin commented Nov 22, 2024

Thanks for submitting this patch. Would really appreciate getting this merged after all this time.

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.

Snapshots always recursive?
2 participants