summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-04-12 16:32:55 +0100
committerRichard Jones <rjones@redhat.com>2010-04-12 16:35:47 +0100
commitba099ee689b42dd71b05d12583d69424fcfbc217 (patch)
treefc80c0f3072fd79903d345b945e74a85e1e89b4e /tools
parentc53e64a156526adcb9937f63756f17f585f202d3 (diff)
downloadlibguestfs-ba099ee689b42dd71b05d12583d69424fcfbc217.tar.gz
libguestfs-ba099ee689b42dd71b05d12583d69424fcfbc217.tar.xz
libguestfs-ba099ee689b42dd71b05d12583d69424fcfbc217.zip
resize: Fix regular expression to exactly match ^ext[234]$
Diffstat (limited to 'tools')
-rwxr-xr-xtools/virt-resize2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virt-resize b/tools/virt-resize
index 5ced4ddc..fcd076f8 100755
--- a/tools/virt-resize
+++ b/tools/virt-resize
@@ -615,7 +615,7 @@ sub examine_partition
if ($type eq "LVM2_member") {
$partitions{$part}->{can_expand_content} = 1;
$partitions{$part}->{expand_content_method} = "pvresize";
- } elsif ($type =~ /^ext[234]/) {
+ } elsif ($type =~ /^ext[234]$/) {
$partitions{$part}->{can_expand_content} = 1;
$partitions{$part}->{expand_content_method} = "resize2fs";
} elsif ($type eq "ntfs" && feature_available ($g, "ntfsprogs")) {