From a21bc233c2f94d6700d2ffb13946b54c0e877b8a Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Thu, 19 Dec 2019 08:29:16 +0100 Subject: [PATCH] Avoiding the nice bytes representation (#26) Fixes #25, This was broken since libzfs 0.8, by the `literal` argument in the call to zpool_get_propetry function. --- zpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zpool.c b/zpool.c index 1071210..1dc3b9a 100644 --- a/zpool.c +++ b/zpool.c @@ -193,7 +193,7 @@ property_list_ptr read_zpool_property(zpool_list_ptr pool, int prop) { property_list_ptr list = new_property_list(); r = zpool_get_prop(pool->zph, prop, - list->value, INT_MAX_VALUE, &source, B_FALSE); + list->value, INT_MAX_VALUE, &source, B_TRUE); if (r == 0) { // strcpy(list->name, zpool_prop_to_name(prop)); zprop_source_tostr(list->source, source);