mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #11866
This commit is contained in:
parent
aa52015d45
commit
54aaed5c45
@ -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,
|
ret = populate_create_encryption_params_nvlists(hdl, NULL,
|
||||||
B_FALSE, keyformat, keylocation, props, &wkeydata,
|
B_TRUE, keyformat, keylocation, props, &wkeydata,
|
||||||
&wkeylen);
|
&wkeylen);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user