]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: add mmc transport
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 21 Dec 2022 18:46:46 +0000 (18:46 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 21 Dec 2022 18:46:46 +0000 (18:46 +0000)
misc-utils/lsblk.c

index ea06afcd1092940e67b10ba29a708e053d94589b..96a94f73c5827b7c5858396b95fb9b26e6fe15b2 100644 (file)
@@ -524,6 +524,8 @@ static const char *get_transport(struct lsblk_device *dev)
                trans = "nvme";
        } else if (strncmp(dev->name, "vd", 2) == 0)
                trans = "virtio";
+       else if (strncmp(dev->name, "mmcblk", 6) == 0)
+               trans = "mmc";
 
        return trans;
 }