diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-11 17:22:02 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-11 17:22:30 +0200 |
commit | c472d86a770e896339b1ac200ca913676bf38526 (patch) | |
tree | bc7b75efdaf2aa5a75e439656d071bc2567bf6c4 /mkfs/mkfs.c | |
parent | 33d5e09ccbf2bafe3d06f615b11bf29d07f47784 (diff) |
cleanup: replace gensquashfs bool options for dir scan with flags
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r-- | mkfs/mkfs.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c index b11dce0..8ee2268 100644 --- a/mkfs/mkfs.c +++ b/mkfs/mkfs.c @@ -68,24 +68,11 @@ static int pack_files(data_writer_t *data, fstree_t *fs, options_t *opt) static int read_fstree(fstree_t *fs, options_t *opt) { - unsigned int flags; FILE *fp; int ret; - if (opt->infile == NULL) { - flags = 0; - - if (opt->keep_time) - flags |= DIR_SCAN_KEEP_TIME; - - if (opt->one_filesystem) - flags |= DIR_SCAN_ONE_FILESYSTEM; - - if (opt->keep_xattr) - flags |= DIR_SCAN_READ_XATTR; - - return fstree_from_dir(fs, opt->packdir, flags); - } + if (opt->infile == NULL) + return fstree_from_dir(fs, opt->packdir, opt->dirscan_flags); fp = fopen(opt->infile, "rb"); if (fp == NULL) { |