block: support /dev/xvd* nodes
authorW. Michael Petullo <mike@flyn.org>
Wed, 12 Jul 2017 11:02:18 +0000 (07:02 -0400)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 16 Jul 2017 09:35:18 +0000 (11:35 +0200)
Xen provides paravirtualized block devices which most often appear as
/dev/xvd*. This patch adds this pattern to those known to the block
utilitiy. These devices require a kernel compiled with the xen-blkfront
driver.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
block.c

diff --git a/block.c b/block.c
index d5c39372945d35308d7b786543eb50886517b5fa..3e4cfb5fb66d7b2716e5c1683093ba5ae83ab745 100644 (file)
--- a/block.c
+++ b/block.c
@@ -530,6 +530,7 @@ static void cache_load(int mtd)
        _cache_load("/dev/hd*");
        _cache_load("/dev/md*");
        _cache_load("/dev/vd*");
+       _cache_load("/dev/xvd*");
        _cache_load("/dev/mapper/*");
 }