summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW. Michael Petullo <mike@flyn.org>2017-07-12 07:02:18 -0400
committerDaniel Golle <daniel@makrotopia.org>2017-07-16 11:35:18 +0200
commit0dfe61a86255b877dd67b2ba3479709ecf7632ae (patch)
tree250ac2238693e678520518e6bbf21fc562e53a82
parentf038a610bdee22da308a64c9e225de72dd4dd75e (diff)
downloadfstools-0dfe61a86255b877dd67b2ba3479709ecf7632ae.tar.gz
block: support /dev/xvd* nodes
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>
-rw-r--r--block.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block.c b/block.c
index d5c3937..3e4cfb5 100644
--- 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/*");
}