summaryrefslogtreecommitdiff
path: root/mkfs/mkfs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 13:59:13 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 14:11:30 +0200
commit33d5e09ccbf2bafe3d06f615b11bf29d07f47784 (patch)
treed9240bdf940cda58bcbb1dfdb58b3006b7445117 /mkfs/mkfs.c
parent4b02470e6e8126918549d292cbed610a6cbfbf68 (diff)
Add gensquashfs option to read xattrs from input files
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index f0d1e73..b11dce0 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -81,6 +81,9 @@ static int read_fstree(fstree_t *fs, options_t *opt)
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);
}