aboutsummaryrefslogtreecommitdiffstats
path: root/main/dmraid/002-support_virtio_devices.patch
blob: 17c31c1bba09b91fde31143589d4f0f9a4e44241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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.