summaryrefslogtreecommitdiff
path: root/ext4_utils
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2020-02-12 14:26:48 -0800
committerDavid Anderson <dvander@google.com>2020-02-12 14:30:52 -0800
commit1a1c16549ad898dc9ec84ec60d0210100158f7db (patch)
treed5eb12f880ccad84bec145efcaebc12ee3b4b80b /ext4_utils
parent2658a27ac27defed751ebffed305cdfef0cffdb3 (diff)
downloadextras-1a1c16549ad898dc9ec84ec60d0210100158f7db.tar.gz
mke2fs.conf: Don't include resize_inode by default.
This flag cause mke2fs to reserve a percentage of blocks as metadata for resizing the filesystem. This wastes a small amount of space (a few hundred KB), but more importantly, makes incremental diffs worse when using BaseFS. Since the number of reserved blocks can change with small differences to the image size, this can cause off-by-one issues leading to large sequences of moves. In a sample Virtual A/B simulation, this reduces the snapshot size by 200MB. Bug: 139201772 Test: debugfs -R stats <image> Change-Id: I57c1456356975dddbb5bcc12ea25ded189848568
Diffstat (limited to 'ext4_utils')
-rw-r--r--ext4_utils/mke2fs.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext4_utils/mke2fs.conf b/ext4_utils/mke2fs.conf
index abf0daed..8ea960da 100644
--- a/ext4_utils/mke2fs.conf
+++ b/ext4_utils/mke2fs.conf
@@ -1,5 +1,5 @@
[defaults]
- base_features = sparse_super,large_file,filetype,resize_inode,dir_index,ext_attr
+ base_features = sparse_super,large_file,filetype,dir_index,ext_attr
default_mntopts = acl,user_xattr
enable_periodic_fsck = 0
blocksize = 4096