resize: Fix regular expression to exactly match ^ext[234]$
authorRichard Jones <rjones@redhat.com>
Mon, 12 Apr 2010 15:32:55 +0000 (16:32 +0100)
committerRichard Jones <rjones@redhat.com>
Mon, 12 Apr 2010 15:35:47 +0000 (16:35 +0100)
tools/virt-resize

index 5ced4dd..fcd076f 100755 (executable)
@@ -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")) {