From ba099ee689b42dd71b05d12583d69424fcfbc217 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 12 Apr 2010 16:32:55 +0100 Subject: [PATCH] resize: Fix regular expression to exactly match ^ext[234]$ --- tools/virt-resize | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virt-resize b/tools/virt-resize index 5ced4dd..fcd076f 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")) { -- 1.8.3.1