From 018d859434c415b34d0252f82261a31478ac5f76 Mon Sep 17 00:00:00 2001 From: loli10K Date: Sat, 18 May 2019 01:00:00 +0200 Subject: [PATCH] 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. Signed-off-by: loli10K --- lib/libzfs/libzfs_dataset.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libzfs/libzfs_dataset.c b/lib/libzfs/libzfs_dataset.c index de94021a6758..e26b32786db5 100644 --- a/lib/libzfs/libzfs_dataset.c +++ b/lib/libzfs/libzfs_dataset.c @@ -31,6 +31,7 @@ * Copyright 2016 Igor Kozhukhov * Copyright 2017-2018 RackTop Systems. * Copyright (c) 2019 Datto Inc. + * Copyright (c) 2019, loli10K */ #include @@ -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. */