lsblk: print zero rather than empty SIZE
Addresses: https://github.com/karelzak/util-linux/issues/1118 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
549e8c91ff
commit
bb6c51a650
|
@ -906,8 +906,6 @@ static char *device_get_data(
|
|||
ul_path_read_string(dev->sysfs, &str, "device/vendor");
|
||||
break;
|
||||
case COL_SIZE:
|
||||
if (!dev->size)
|
||||
break;
|
||||
if (lsblk->bytes)
|
||||
xasprintf(&str, "%ju", dev->size);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue