erofs-utils: mkfs: add support to issue directory data separately
PATCH 1/1 erofs-utils: mkfs: add support to issue directory data separately
Especially since compressed directory data could be in the packing inode, it would be better to compress them together.
It improves the overall compressed directory access performance.
Signed-off-by Gao Xiang <[email protected]>
--- include/erofs/importer.h | 2 ++ lib/inode.c | 68 ++++++++++++++++++++++++++++++++++++---- mkfs/main.c | 6 ++-- 3 files changed, 68 insertions(+), 8 deletions(-)
include/erofs/importer.h +2 -0
@@ -44,6 +44,8 @@ struct erofs_importer_params {char force_inodeversion;bool ignore_mtime;bool no_datainline; +/* Issue directory data (except inline data) separately from regular inodes */ +bool grouped_dirdata;bool hard_dereference;bool ovlfs_strip;bool dot_omitted;
lib/inode.c +62 -6
99 lines not on this page · raw message
mkfs/main.c +4 -2
@@ -1410,10 +1410,12 @@ static int mkfs_parse_options_cfg(struct erofs_importer_params *params, tarerofs_decoder =EROFS_IOS_DECODER_GZRAN ;break ;case 536 : -if (!optarg ||strcmp (optarg,"1" )) +if (!optarg ||strcmp (optarg,"1" )) { params->compress_dir = true; -else + params->grouped_dirdata = true; + }else { params->compress_dir = false; + }break ;case 537 :if (!optarg ||strcmp (optarg,"1" ))
Signature · 1 line
2.43.5