]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: print zero rather than empty SIZE
authorKarel Zak <kzak@redhat.com>
Wed, 9 Sep 2020 10:00:10 +0000 (12:00 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Sep 2020 10:00:10 +0000 (12:00 +0200)
Addresses: https://github.com/karelzak/util-linux/issues/1118
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.c

index 7a48adbe431c316409090f6f9f1bd4130e0413e6..49c15ab78ec90cd08f6de700e147dddb85153190 100644 (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