From c8d97a2429bff3c8fee429be343ee9b200e080b5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 9 Sep 2020 12:00:10 +0200 Subject: [PATCH] lsblk: print zero rather than empty SIZE Addresses: https://github.com/karelzak/util-linux/issues/1118 Signed-off-by: Karel Zak --- misc-utils/lsblk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 7a48adbe43..49c15ab78e 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -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 -- 2.47.3