Fix/finish modularization
[mapsector.git] / lib / 50_scan_extfs.sh
index cccf7f7..f2004f1 100644 (file)
@@ -8,7 +8,7 @@ describe_extfs()
     echo "    ext2-4"
 }
 
-scan_extfs()
+do_extfs()
 {
     local fsblocksize
     local fsblock
@@ -16,6 +16,8 @@ scan_extfs()
     local fstype
     local inode
 
+    echo "$device: ext2-4 filesystem detected" 1>&2
+
     fstype="`file -s $device | sed -e 's/.*\(ext[0-9]\).*/\1/'`"
     echo "fstype $fstype"
 
@@ -75,6 +77,8 @@ scan_extfs()
            echo "blocktype journal?"
        fi
     ) 3>&1
+
+    return 0
 }
 
 register_scanner "extfs"