a55c3089fb
while here also detect vnd devices. "groovy" landry@
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
$OpenBSD: patch-src_hdaccess_c,v 1.1 2010/07/30 22:49:27 steven Exp $
|
|
--- src/hdaccess.c.orig Fri Jul 30 21:07:49 2010
|
|
+++ src/hdaccess.c Fri Jul 30 21:10:40 2010
|
|
@@ -366,6 +366,7 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const in
|
|
char device_ide_hd[]="/dev/ad0";
|
|
char device_scsi_hd[]="/dev/da0";
|
|
char device_cd[]="/dev/acd0";
|
|
+ char device_vnd[]="/dev/rsvnd0c";
|
|
/* wd da */
|
|
/* Disk IDE */
|
|
for(i=0;i<8;i++)
|
|
@@ -401,7 +402,7 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const in
|
|
}
|
|
for(i=0;i<8;i++)
|
|
{
|
|
- device_scsi2[strlen(device_scsi2)-1]='0'+i;
|
|
+ device_scsi2[strlen(device_scsi2)-2]='0'+i;
|
|
list_disk=insert_new_disk(list_disk,file_test_availability(device_scsi2,verbose,arch,testdisk_mode));
|
|
}
|
|
for(i=0;i<8;i++)
|
|
@@ -420,6 +421,12 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const in
|
|
{
|
|
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
|