Blame SOURCES/0053-v2v-linux-Always-match-partition-number-in-regexp.patch

0d20ef
From 59193f066dbf4318f95d5f4740df1374565e09e1 Mon Sep 17 00:00:00 2001
0d20ef
From: "Richard W.M. Jones" <rjones@redhat.com>
0d20ef
Date: Tue, 18 Nov 2014 14:16:39 +0000
0d20ef
Subject: [PATCH] v2v: linux: Always match partition number in regexp.
0d20ef
0d20ef
Change the rex_device_p regular expression to always include a
0d20ef
partition number.
0d20ef
0d20ef
There should be no functional change here.
0d20ef
0d20ef
(cherry picked from commit b1053150a2da121b3cb8ddc197d0d8e49d930130)
0d20ef
---
0d20ef
 v2v/convert_linux.ml | 2 +-
0d20ef
 1 file changed, 1 insertion(+), 1 deletion(-)
0d20ef
0d20ef
diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
0d20ef
index 2f97ca1..d094969 100644
0d20ef
--- a/v2v/convert_linux.ml
0d20ef
+++ b/v2v/convert_linux.ml
0d20ef
@@ -1300,7 +1300,7 @@ let rec convert ~verbose ~keep_serial_console (g : G.guestfs) inspect source =
0d20ef
     and rex_device_cciss =
0d20ef
       Str.regexp "^/dev/\\(cciss/c[0-9]+d[0-9]+\\)$"
0d20ef
     and rex_device_p =
0d20ef
-      Str.regexp "^/dev/\\([a-z]+\\)\\([0-9]*\\)$"
0d20ef
+      Str.regexp "^/dev/\\([a-z]+\\)\\([0-9]+\\)$"
0d20ef
     and rex_device =
0d20ef
       Str.regexp "^/dev/\\([a-z]+\\)$" in
0d20ef
 
0d20ef
-- 
0d20ef
1.8.3.1
0d20ef