Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ func Make(ctx context.Context, rootfsPath string, sizeMb int64, blockSize int64)
cmd := exec.CommandContext(ctx,
"mkfs.ext4",
"-O", strings.Join([]string{
// Matches the final ext4 features used by tar2ext4 tool.
// But enables resize_inode, sparse_super (required for resize_inode),
// has_journal, and metadata_csum are kept as defaults.
// Explicit feature list for the rootfs. Defaults (resize_inode,
// sparse_super, has_journal, metadata_csum) are kept; we toggle
// only what we want to add or strip below.
"^64bit",
"^dir_index",
"^dir_nlink",
Expand All @@ -54,6 +54,8 @@ func Make(ctx context.Context, rootfsPath string, sizeMb int64, blockSize int64)
"filetype",
"flex_bg",
"huge_file",
// Pack file data <~160 B inside the inode to avoid a 4 KiB data block per tiny file.
"inline_data",
Comment thread
ValentaTomas marked this conversation as resolved.
"large_file",
"sparse_super2",
}, ","),
Expand Down
Loading