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

mismatched nvlist names in zfs_keys_send_space #10978

Merged
merged 1 commit into from Oct 3, 2020

Conversation

jwpoduska
Copy link
Contributor

Motivation and Context

We found that resumable dryrun sends were failing with:
cannot resume send: Unknown error 1030

Description

It turned out that some of the name/value pairs in the verification list for zfs_ioc_send_space(), zfs_keys_send_space, had the wrong name, so the ioctl got kicked out in zfs_check_input_nvpairs().

How Has This Been Tested?

Changed the function resume_test in rsend to optionally do a dry run before the resumed send. Verified it failed without the fix and passed with it.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

This causes "zfs send -vt ..." to fail with:
    cannot resume send: Unknown error 1030

Signed-off-by: John Poduska <jpoduska@datto.com>
@jwpoduska
Copy link
Contributor Author

@pcd1193182 can you take a look at this, seems like it was just a simple typo with redacted send... thanks

@ghost ghost added the Status: Code Review Needed Ready for review and testing label Sep 25, 2020
@ghost ghost requested a review from pcd1193182 September 25, 2020 14:17
Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These do look like the intended names. Normally I'd have expected the libzfs_input_check test to catch this sort of thing but it looks like a few keys were never added.

https://github.com/openzfs/zfs/blob/master/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c#L509-L514

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Sep 28, 2020
@behlendorf behlendorf merged commit 5b52516 into openzfs:master Oct 3, 2020
behlendorf pushed a commit that referenced this pull request Oct 16, 2020
This causes "zfs send -vt ..." to fail with:

    cannot resume send: Unknown error 1030

It turns out that some of the name/value pairs in the verification
list for zfs_ioc_send_space(), zfs_keys_send_space, had the wrong
name, so the ioctl got kicked out in zfs_check_input_nvpairs().
Update the names accordingly.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: John Poduska <jpoduska@datto.com>
Closes #10978
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
This causes "zfs send -vt ..." to fail with:

    cannot resume send: Unknown error 1030

It turns out that some of the name/value pairs in the verification
list for zfs_ioc_send_space(), zfs_keys_send_space, had the wrong
name, so the ioctl got kicked out in zfs_check_input_nvpairs().
Update the names accordingly.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: John Poduska <jpoduska@datto.com>
Closes openzfs#10978
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
This causes "zfs send -vt ..." to fail with:

    cannot resume send: Unknown error 1030

It turns out that some of the name/value pairs in the verification
list for zfs_ioc_send_space(), zfs_keys_send_space, had the wrong
name, so the ioctl got kicked out in zfs_check_input_nvpairs().
Update the names accordingly.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: John Poduska <jpoduska@datto.com>
Closes openzfs#10978
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants