virtio blk is quite popular in the virtual machines, support 'TRAN' column for a virtio block device. Signed-off-by: zhenwei pi <pizhenwei@xxxxxxxxxxxxx> --- misc-utils/lsblk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 047f744be..dfa317970 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -514,8 +514,10 @@ static char *get_transport(struct lsblk_device *dev) trans = "ata"; free(attr); - } else if (strncmp(dev->name, "nvme", 4) == 0) + } else if (strncmp(dev->name, "nvme", 4) == 0) { trans = "nvme"; + } else if (strncmp(dev->name, "vd", 2) == 0) + trans = "virtio"; return trans ? xstrdup(trans) : NULL; } -- 2.20.1