diff options
author | наб <[email protected]> | 2021-03-11 14:34:01 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-04-11 15:44:54 -0700 |
commit | 0fc401a7ef630857c9e17bb3424b039c5492cb38 (patch) | |
tree | 44e86bf61e70c6088b21741bf159123300def3d6 | |
parent | e568853f9668b2b389870a55c9157ff37f64a604 (diff) |
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
-rw-r--r-- | lib/libzfs/libzfs_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_crypto.c b/lib/libzfs/libzfs_crypto.c index 450728c73..bd4d83568 100644 --- a/lib/libzfs/libzfs_crypto.c +++ b/lib/libzfs/libzfs_crypto.c @@ -954,7 +954,7 @@ zfs_crypto_create(libzfs_handle_t *hdl, char *parent_name, nvlist_t *props, } ret = populate_create_encryption_params_nvlists(hdl, NULL, - B_FALSE, keyformat, keylocation, props, &wkeydata, + B_TRUE, keyformat, keylocation, props, &wkeydata, &wkeylen); if (ret != 0) goto out; |