From: Richard W.M. Jones Date: Tue, 23 Nov 2010 09:47:34 +0000 (+0000) Subject: resize: Fix canonical device function (RHBZ#655554). X-Git-Tag: 1.7.12~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=f33d899fd0900b0cfe6dbbb152ce2fcf479bd38c;p=libguestfs.git resize: Fix canonical device function (RHBZ#655554). --- diff --git a/tools/virt-resize b/tools/virt-resize index 8a473ca..2d8e0f1 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"; } $_;