void-packages/srcpkgs/dmraid/patches/002-support_virtio_devices.patch

13 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.