diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-23 09:47:34 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-23 09:48:04 +0000 |
commit | f33d899fd0900b0cfe6dbbb152ce2fcf479bd38c (patch) | |
tree | a4044bf35464e491564e9c60e70ef5b84bd7c286 | |
parent | f8af59c234b6bea50dadc7a6055c8a4739ca4530 (diff) | |
download | libguestfs-f33d899fd0900b0cfe6dbbb152ce2fcf479bd38c.tar.gz libguestfs-f33d899fd0900b0cfe6dbbb152ce2fcf479bd38c.tar.xz libguestfs-f33d899fd0900b0cfe6dbbb152ce2fcf479bd38c.zip |
resize: Fix canonical device function (RHBZ#655554).
-rwxr-xr-x | tools/virt-resize | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virt-resize b/tools/virt-resize index 8a473ca3..2d8e0f14 100755 --- a/tools/virt-resize +++ b/tools/virt-resize @@ -1394,7 +1394,7 @@ sub canonicalize { local $_ = shift; - if (m{^/dev/[hv]d([a-z]\d)$}) { + if (m{^/dev/[hv]d([a-z]\d*)$}) { return "/dev/sd$1"; } $_; |