diff options
Diffstat (limited to 'tools/getfattr.c')
-rw-r--r-- | tools/getfattr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/getfattr.c b/tools/getfattr.c index 1c0ba21..abdd0d4 100644 --- a/tools/getfattr.c +++ b/tools/getfattr.c @@ -46,6 +46,7 @@ struct option long_options[] = { { "only-values", 0, 0, 'v' }, { "no-dereference", 0, 0, 'h' }, { "absolute-names", 0, 0, 'a' }, + { "one-file-system", 0, 0, 1 }, { "recursive", 0, 0, 'R' }, { "logical", 0, 0, 'L' }, { "physical", 0, 0, 'P' }, @@ -390,6 +391,7 @@ void help(void) " --match=pattern only get attributes with names matching pattern\n" " --only-values print the bare values only\n" " -h, --no-dereference do not dereference symbolic links\n" +" --one-file-system skip files on different filesystems\n" " --absolute-names don't strip leading '/' in pathnames\n" " -R, --recursive recurse into subdirectories\n" " -L, --logical logical walk, follow symbolic links\n" @@ -465,6 +467,10 @@ int main(int argc, char *argv[]) walk_flags |= WALK_TREE_RECURSIVE; break; + case 1: /* one filesystem */ + walk_flags |= WALK_TREE_ONE_FILESYSTEM; + break; + case 'V': printf("%s " VERSION "\n", progname); return 0; |