Correct swapped keylocation error messages
This patch corrects a small issue where two error messages in the code that checks for invalid keylocations were swapped. Reviewed by: Matt Ahrens <mahrens@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: Tom Caputi <tcaputi@datto.com> Closes #7418
This commit is contained in:
parent
4f301661df
commit
74df0c5e25
|
@ -1418,16 +1418,16 @@ badlabel:
|
|||
if (crypt == ZIO_CRYPT_OFF &&
|
||||
strcmp(strval, "none") != 0) {
|
||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
||||
"keylocation must not be 'none' "
|
||||
"for encrypted datasets"));
|
||||
"keylocation must be 'none' "
|
||||
"for unencrypted datasets"));
|
||||
(void) zfs_error(hdl, EZFS_BADPROP,
|
||||
errbuf);
|
||||
goto error;
|
||||
} else if (crypt != ZIO_CRYPT_OFF &&
|
||||
strcmp(strval, "none") == 0) {
|
||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
|
||||
"keylocation must be 'none' "
|
||||
"for unencrypted datasets"));
|
||||
"keylocation must not be 'none' "
|
||||
"for encrypted datasets"));
|
||||
(void) zfs_error(hdl, EZFS_BADPROP,
|
||||
errbuf);
|
||||
goto error;
|
||||
|
|
Loading…
Reference in New Issue