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:
Karel Zak 2020-09-09 12:00:10 +02:00
parent 549e8c91ff
commit bb6c51a650
1 changed files with 0 additions and 2 deletions

View File

@ -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