vp-build/srcpkgs/dmraid/patches/12_support_virtio_devices.patch
2012-05-11 04:45:15 +02:00

14 lines
544 B
Diff

Author: Luke Yelavich <themuso@ubuntu.com>
Description: Support for checking virtio devices for dmraid metadata.
--- 1.0.0.rc16-3/dmraid/lib/device/scan.c
+++ 1.0.0.rc16-3/dmraid/lib/device/scan.c
@@ -174,7 +174,7 @@ interested(struct lib_context *lc, char
* Whole IDE and SCSI disks only.
*/
return (!isdigit(name[strlen(name) - 1]) &&
- (*(name + 1) == 'd' && (*name == 'h' || *name == 's')))
+ (*(name + 1) == 'd' && (*name == 'h' || *name == 's' || *name == 'v')))
#ifdef DMRAID_TEST
/*
* Include dm devices for testing.