summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.c
diff options
context:
space:
mode:
authorSteven Mestdagh <steven@openbsd.org>2010-08-16 19:26:13 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-08-16 19:26:13 +0200
commitb7c1b28b16efcee2a379ad46d45a7022af464b52 (patch)
tree28ed609a68a2cb2888473786d1e88b9850176261 /src/hdaccess.c
parentfd3025598e6b252a41cfccdc024de9651ff3df2e (diff)
Detect vnd (virtual node driver) devices that provides interface to disk image file.
Diffstat (limited to 'src/hdaccess.c')
-rw-r--r--src/hdaccess.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index 1cbf29a..dc8651c 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -392,6 +392,7 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct
char device_ide_hd[]="/dev/ad0";
char device_scsi_hd[]="/dev/da0";
char device_cd[]="/dev/acd0";
+ char device_vnd[]="/dev/rsvnd0c"; /* virtual node driver, interface to a disk image file */
/* wd da */
/* Disk IDE */
for(i=0;i<8;i++)
@@ -447,6 +448,12 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct
device_cd[strlen(device_cd)-1]='0'+i;
list_disk=insert_new_disk(list_disk,file_test_availability(device_cd,verbose,arch,testdisk_mode));
}
+ /* VND */
+ for(i=0;i<4;i++)
+ {
+ device_vnd[strlen(device_vnd)-2]='0'+i;
+ list_disk=insert_new_disk(list_disk,file_test_availability(device_vnd,verbose,arch,testdisk_mode));
+ }
}
#endif
return list_disk;