Skip to content

Commit 43e74c1

Browse files
nabijaczlewelibehlendorf
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 #11866
1 parent 403f1f3 commit 43e74c1

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
@@ -960,7 +960,7 @@ zfs_crypto_create(libzfs_handle_t *hdl, char *parent_name, nvlist_t *props,
960960
}
961961

962962
ret = populate_create_encryption_params_nvlists(hdl, NULL,
963-
B_FALSE, keyformat, keylocation, props, &wkeydata,
963+
B_TRUE, keyformat, keylocation, props, &wkeydata,
964964
&wkeylen);
965965
if (ret != 0)
966966
goto out;

0 commit comments

Comments
 (0)