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.
This commit is contained in:
Dario Tranchitella 2019-12-19 08:29:16 +01:00 committed by Faruk Kasumovic
parent f0994c77ba
commit a21bc233c2
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ property_list_ptr read_zpool_property(zpool_list_ptr pool, int prop) {
property_list_ptr list = new_property_list(); property_list_ptr list = new_property_list();
r = zpool_get_prop(pool->zph, prop, 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) { if (r == 0) {
// strcpy(list->name, zpool_prop_to_name(prop)); // strcpy(list->name, zpool_prop_to_name(prop));
zprop_source_tostr(list->source, source); zprop_source_tostr(list->source, source);