package/mke2img: set sparse_super for revision 1
authorBenoît Thébaudeau <benoit@wsystem.com>
Fri, 28 Aug 2015 11:12:50 +0000 (13:12 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 29 Dec 2015 21:07:53 +0000 (22:07 +0100)
The sparse_super feature is more efficient in terms of speed and
available space, so set it by default if supported, i.e. for revision 1.

This gives a huge speed gain for large resize2fs operations, especially
for expansion.

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mke2img/mke2img

index d772af5dd9f2b89959cb9e66bef919df769fc587..c2e0d02b7383697d92b84ab7122df2a8237f6048 100755 (executable)
@@ -82,7 +82,7 @@ main() {
 
     # Upgrade to rev1 if needed
     if [ ${rev} -ge 1 ]; then
-        tune2fs_O_opts+=",filetype"
+        tune2fs_O_opts+=",filetype,sparse_super"
     fi
 
     # Add a journal for ext3 and above