export: add support for ext4 filesystems
authorGuido Trotter <ultrotter@google.com>
Wed, 11 Aug 2010 20:44:46 +0000 (16:44 -0400)
committerGuido Trotter <ultrotter@google.com>
Mon, 10 Oct 2011 17:36:37 +0000 (13:36 -0400)
Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

export

diff --git a/export b/export
index fccf4b0..d0afa68 100755 (executable)
--- a/export
+++ b/export
@@ -41,7 +41,7 @@ fi
 
 vol_type=$($VOL_TYPE $filesystem_dev)
 
-if [ "$vol_type" = "ext3" -o "$vol_type" = "ext2" ]; then
+if [ "${vol_type:0:3}" = "ext" ]; then
   dump -0 -q -f - "$filesystem_dev"
 fi