From 28689d3795390e24b2a63e9d3a8df25be6b05f51 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 30 Apr 2020 01:23:51 +0200 Subject: [PATCH] Correct ext2 block size to 4096. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/dcpomatic_disk_writer.cc b/src/tools/dcpomatic_disk_writer.cc index 3fabe3e28..3cd286fd8 100644 --- a/src/tools/dcpomatic_disk_writer.cc +++ b/src/tools/dcpomatic_disk_writer.cc @@ -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; -- 2.30.2