-
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 -R -I "helpfully" doesn't error on being given a nonexistent snapshot #12574
Labels
Type: Defect
Incorrect behavior (e.g. crash, hang)
Comments
rincebrain
added a commit
to rincebrain/zfs
that referenced
this issue
Sep 18, 2021
Right now, zfs send -I dataset@nonexistent dataset@existent fails, but zfs send -RI dataset@nonexistent dataset@existent does not. Closes: openzfs#12574 Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
13 tasks
rincebrain
added a commit
to rincebrain/zfs
that referenced
this issue
Sep 18, 2021
Right now, zfs send -I dataset@nonexistent dataset@existent fails, but zfs send -RI dataset@nonexistent dataset@existent does not. Closes: openzfs#12574 Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this issue
Jun 7, 2022
Right now, zfs send -I dataset@nonexistent dataset@existent fails, but zfs send -RI dataset@nonexistent dataset@existent does not. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes openzfs#12574 Closes openzfs#12575
ghost
pushed a commit
to truenas/zfs
that referenced
this issue
Jun 27, 2022
Right now, zfs send -I dataset@nonexistent dataset@existent fails, but zfs send -RI dataset@nonexistent dataset@existent does not. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes openzfs#12574 Closes openzfs#12575
ghost
pushed a commit
to truenas/zfs
that referenced
this issue
Jun 29, 2022
Right now, zfs send -I dataset@nonexistent dataset@existent fails, but zfs send -RI dataset@nonexistent dataset@existent does not. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes openzfs#12574 Closes openzfs#12575
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the problem you're observing
I was rather confused on 2.0.3 when I tried doing
zfs send -R -I mydataset@2021-08-14 mydataset@2021-09-17 | ... | zfs recv somewhere
and it spat up "cannot receive new filesystem stream: destination 'somewhere' exists".On further debugging,
mydataset@2021-08-14
had been destroyed, andzfs send -R -I
was helpfully generating a send stream of every snapshot on the filesystem, but with a fromsnap of a non-present snapshot inside, which seems to result in a send stream you cannot receive to a new location (because it's got fromsnap) or the existing location without destroying everything.This doesn't seem to be documented, so I could just go cut a man page update, but it seems surprising enough that I'd argue it's not really desired behavior.
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
Above.
The text was updated successfully, but these errors were encountered: