summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorloli10K <[email protected]>2019-05-24 22:58:12 +0200
committerBrian Behlendorf <[email protected]>2019-06-07 12:39:13 -0700
commitad0157ec915be6e6f44e2e6a2565e764593240ca (patch)
tree823a6f3b6f0f13d3527d777fef3d56ea309ce5b6 /lib
parentcd75d5f7104a920126e4f28be9701dd9241ac191 (diff)
zfs: don't pretty-print objsetid property
The objsetid property, while being stored as a number, is a dataset identifier and should not be pretty-printed. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Chris Dunlop <[email protected]> Signed-off-by: loli10K <[email protected]> Closes #8784
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_dataset.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c
index de94021a6..e26b32786 100644
--- a/lib/libzfs/libzfs_dataset.c
+++ b/lib/libzfs/libzfs_dataset.c
@@ -31,6 +31,7 @@
* Copyright 2016 Igor Kozhukhov <[email protected]>
* Copyright 2017-2018 RackTop Systems.
* Copyright (c) 2019 Datto Inc.
+ * Copyright (c) 2019, loli10K <[email protected]>
*/
#include <ctype.h>
@@ -2969,8 +2970,10 @@ 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:
/*
- * GUIDs are stored as numbers, but they are identifiers.
+ * These properties are stored as numbers, but they are
+ * identifiers.
* We don't want them to be pretty printed, because pretty
* printing mangles the ID into a truncated and useless value.
*/