-
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
Activate filesystem features only in syncing context #14304
Conversation
We probably should restrict this piece of code to be executed only in case of raw receiving. Looking into it. |
Restricting to raw receiving doesn't help the original case: The problem arises already when the receive is done and the feature flags are not set prior to raw sending. |
@behlendorf this patch does not address all the issues with #14252. I am looking into it. |
I updated the PR to address all the issues with #14252. I do not think I introduced any new regressions. |
@rincebrain would you mind me adding the test you provided in #14252 here? |
By all means, go for it. I'm sure there's a simpler test case that works, but I haven't spent any time trying to minimize it, since I wasn't even...trying to make it when I did. Heh. |
Added a test. |
tests/zfs-tests/tests/functional/rsend/send_encrypted_incremental.ksh
Outdated
Show resolved
Hide resolved
tests/zfs-tests/tests/functional/rsend/send_encrypted_incremental.ksh
Outdated
Show resolved
Hide resolved
It seems like we're still running in to an issue with the new test case: http://build.zfsonlinux.org/builders/FreeBSD%20stable%2F13%20amd64%20%28TEST%29/builds/7600/steps/shell_4 |
@behlendorf should be an easy fix, I think it doesn't like the order of the arguments. I will get to it later today. |
Signed-off-by: George Amanakis <gamanakis@gmail.com>
done! |
Much better, thanks! |
When activating filesystem features after receiving a snapshot, do so only in syncing context. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes openzfs#14304 Closes openzfs#14252
Will this be backported to 2.1.8 ? |
It is already in the 2.1.8 PR. |
When activating filesystem features after receiving a snapshot, do so only in syncing context. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes openzfs#14304 Closes openzfs#14252
When activating filesystem features after receiving a snapshot, do so only in syncing context. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes openzfs#14304 Closes openzfs#14252
Issue: openzfs/zfs#14252 Pull request: openzfs/zfs#14304
Issue: openzfs/zfs#14252 Pull request: openzfs/zfs#14304
When activating filesystem features after receiving a snapshot, do so only in syncing context. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes openzfs#14304 Closes openzfs#14252
When activating filesystem features after receiving a snapshot, do so only in syncing context. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes openzfs#14304 Closes openzfs#14252 (cherry picked from commit eee9362)
Motivation and Context
Closes #14252
Description
When activating filesystem features after receiving a snapshot, do so only in syncing context.
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.