aports/main/dmraid/002-support_virtio_devices.patch
2019-05-27 18:23:11 +00:00

13 lines
518 B
Diff

Author: Luke Yelavich <themuso@ubuntu.com>
Description: Support for checking virtio devices for dmraid metadata.
--- dmraid/lib/device/scan.c
+++ 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.