aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTom Caputi <[email protected]>2018-04-10 00:11:17 -0400
committerBrian Behlendorf <[email protected]>2018-04-09 21:11:17 -0700
commit74df0c5e251a920a1966a011c16f960cd7ba562e (patch)
tree859a2a3994fb4679973a8cf817d2849e682f4327 /lib
parent4f301661dfe7e90574ad634f8b7fe8da7e6b4064 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Giuseppe Di Natale <[email protected]> Signed-off-by: Tom Caputi <[email protected]> Closes #7418
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_dataset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c
index 8ec5b7af4..1a8c294d2 100644
--- a/lib/libzfs/libzfs_dataset.c
+++ b/lib/libzfs/libzfs_dataset.c
@@ -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;