summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-09-11 20:55:16 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-09-11 20:55:16 +0200
commita7e39ee6e17e86d60a0151a1c0f2a4560fb83537 (patch)
tree6a818b4f06d055b0d742b07b50b3c0f43a76345a /src/hdaccess.c
parentdc2016d7e980823a6e8213cb135dd47116ee7398 (diff)
Handle VirtIO block /dev/vd[a-z] devices
Diffstat (limited to 'src/hdaccess.c')
-rw-r--r--src/hdaccess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index fa1d031..afbeb7c 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -368,6 +368,8 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const int testd
list_disk=hd_glob_parse("/dev/sr?", list_disk, verbose, testdisk_mode);
/* Software (ATA)Raid configured (disk level) via dmraid */
list_disk=hd_glob_parse("/dev/dm-*", list_disk, verbose, testdisk_mode);
+ /* VirtIO block devices */
+ list_disk=hd_glob_parse("/dev/vd[a-z]", list_disk, verbose, testdisk_mode);
/* Xen virtual disks */
list_disk=hd_glob_parse("/dev/xvd?", list_disk, verbose, testdisk_mode);
/* Loop devices */