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 ECKSUM as new EZFS_CKSUM ‒ "insufficient replicas" #13898
Conversation
Closes openzfs#13808 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
This also closes #6805. That said, this looks good to me. Feel free to add my reviewed-by. |
My first thought was to make it typedef enum zfs_error {
EZFS_SUCCESS = 0, /* no error -- success */
EZFS_CKSUM = ECKSUM, /* insufficient replicas */
EZFS_NOMEM = 2000, /* out of memory */ and I think that's better but idk if that's valid ideologically, esp. given that that's EINTEGRITY=97 on FreeBSD vs EBADE=52 under Linux? |
It is fine the way you did it. The values of zfs_error do not need to match the system error code values. |
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Add a meaningful error message for ECKSUM to common error messages. Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes openzfs#6805 Closes openzfs#13808 Closes openzfs#13898
Motivation and Context
#13808
How Has This Been Tested?
Given:
I got
Types of changes
Checklist:
Signed-off-by
.