summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-30 01:23:51 +0200
committerCarl Hetherington <cth@carlh.net>2020-04-30 01:23:51 +0200
commit28689d3795390e24b2a63e9d3a8df25be6b05f51 (patch)
treef76dba7fd9a1993a298b7ba041d47258a7e0f9e2
parent56caa542a558a3e261a3da4773c9ed3e66e262ab (diff)
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.
-rw-r--r--src/tools/dcpomatic_disk_writer.cc2
1 files changed, 1 insertions, 1 deletions
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;