Correct ext2 block size to 4096.
authorCarl Hetherington <cth@carlh.net>
Wed, 29 Apr 2020 23:23:51 +0000 (01:23 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 29 Apr 2020 23:23:51 +0000 (01:23 +0200)
It seems that this is the typical Linux value; it allows large files
and so on.  But more importantly, it appears that this change turns
the lwext4 library code from taking an hour+ to do a USB stick format on mac
(and maybe other platforms) to taking under 3 minutes.

The underlying reason for this is not clear.

src/tools/dcpomatic_disk_writer.cc

index 3fabe3e28f8a90bb0b216351d490e8ace4650416..3cd286fd8582d5b842ed908afcecc071707cffa3 100644 (file)
@@ -248,7 +248,7 @@ try
        /* We rely on static initialization for these */
        static struct ext4_fs fs;
        static struct ext4_mkfs_info info;
-       info.block_size = 1024;
+       info.block_size = 4096;
        info.inode_size = 128;
        info.journal = false;