Skip to content

Commit

Permalink
v2v: linux: Always match partition number in regexp.
Browse files Browse the repository at this point in the history
Change the rex_device_p regular expression to always include a
partition number.

There should be no functional change here.
  • Loading branch information
rwmjones committed Nov 18, 2014
1 parent e25f68c commit b105315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2v/convert_linux.ml
Expand Up @@ -1305,7 +1305,7 @@ let rec convert ~verbose ~keep_serial_console (g : G.guestfs) inspect source =
and rex_device_cciss =
Str.regexp "^/dev/\\(cciss/c[0-9]+d[0-9]+\\)$"
and rex_device_p =
Str.regexp "^/dev/\\([a-z]+\\)\\([0-9]*\\)$"
Str.regexp "^/dev/\\([a-z]+\\)\\([0-9]+\\)$"
and rex_device =
Str.regexp "^/dev/\\([a-z]+\\)$" in

Expand Down

0 comments on commit b105315

Please sign in to comment.