Skip to content

Commit b808ef2

Browse files
nabijaczleweliRageLtMan
authored andcommitted
libzfs: zfs_crypto_create() requires a new key by definition: set newkey
This changes the password prompt for new encryption roots from Enter passphrase: Re-enter passphrase: to Enter new passphrase: Re-enter new passphrase: which makes more sense and is more consistent with "new passphrase" now always meaning "come up with something" and plain "passphrase" "remember that thing" Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11866
1 parent 4084473 commit b808ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libzfs/libzfs_crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ zfs_crypto_create(libzfs_handle_t *hdl, char *parent_name, nvlist_t *props,
954954
}
955955

956956
ret = populate_create_encryption_params_nvlists(hdl, NULL,
957-
B_FALSE, keyformat, keylocation, props, &wkeydata,
957+
B_TRUE, keyformat, keylocation, props, &wkeydata,
958958
&wkeylen);
959959
if (ret != 0)
960960
goto out;

0 commit comments

Comments
 (0)