summaryrefslogtreecommitdiff
path: root/mkfs/options.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 17:22:02 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 17:22:30 +0200
commitc472d86a770e896339b1ac200ca913676bf38526 (patch)
treebc7b75efdaf2aa5a75e439656d071bc2567bf6c4 /mkfs/options.c
parent33d5e09ccbf2bafe3d06f615b11bf29d07f47784 (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/options.c')
-rw-r--r--mkfs/options.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mkfs/options.c b/mkfs/options.c
index 2778a9e..6fe5e55 100644
--- a/mkfs/options.c
+++ b/mkfs/options.c
@@ -147,9 +147,7 @@ void process_command_line(options_t *opt, int argc, char **argv)
opt->compressor = compressor_get_default();
opt->blksz = SQFS_DEFAULT_BLOCK_SIZE;
opt->devblksz = SQFS_DEVBLK_SIZE;
- opt->keep_xattr = false;
- opt->keep_time = false;
- opt->one_filesystem = false;
+ opt->dirscan_flags = 0;
opt->exportable = false;
opt->quiet = false;
opt->infile = NULL;
@@ -195,15 +193,15 @@ void process_command_line(options_t *opt, int argc, char **argv)
opt->fs_defaults = optarg;
break;
case 'k':
- opt->keep_time = true;
+ opt->dirscan_flags |= DIR_SCAN_KEEP_TIME;
break;
#ifdef HAVE_SYS_XATTR_H
case 'x':
- opt->keep_xattr = true;
+ opt->dirscan_flags |= DIR_SCAN_READ_XATTR;
break;
#endif
case 'o':
- opt->one_filesystem = true;
+ opt->dirscan_flags |= DIR_SCAN_ONE_FILESYSTEM;
break;
case 'e':
opt->exportable = true;