mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
Display pbkdf2iters property as plain number
The pbkdf2iters property is an iteration counter and should be displayed as plain number rather than in binary unit. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Fabio Buso <buso.fabio@gmail.com> Closes #10871
This commit is contained in:
parent
0b5a4c4d6b
commit
3625a0131a
@ -2893,11 +2893,12 @@ zfs_prop_get(zfs_handle_t *zhp, zfs_prop_t prop, char *propbuf, size_t proplen,
|
||||
case ZFS_PROP_GUID:
|
||||
case ZFS_PROP_CREATETXG:
|
||||
case ZFS_PROP_OBJSETID:
|
||||
case ZFS_PROP_PBKDF2_ITERS:
|
||||
/*
|
||||
* These properties are stored as numbers, but they are
|
||||
* identifiers.
|
||||
* identifiers or counters.
|
||||
* We don't want them to be pretty printed, because pretty
|
||||
* printing mangles the ID into a truncated and useless value.
|
||||
* printing truncates their values making them useless.
|
||||
*/
|
||||
if (get_numeric_property(zhp, prop, src, &source, &val) != 0)
|
||||
return (-1);
|
||||
|
Loading…
Reference in New Issue
Block a user