All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs_io/lsattr: expose FS_XFLAG_HASATTR flag
@ 2019-11-06  5:58 Amir Goldstein
  2019-11-06 16:01 ` Darrick J. Wong
  2019-11-08  6:50 ` Darrick J. Wong
  0 siblings, 2 replies; 9+ messages in thread
From: Amir Goldstein @ 2019-11-06  5:58 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: Darrick J . Wong, linux-xfs

For efficient check if file has xattrs.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
---
 io/attr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/io/attr.c b/io/attr.c
index b713d017..ba88ef16 100644
--- a/io/attr.c
+++ b/io/attr.c
@@ -37,6 +37,7 @@ static struct xflags {
 	{ FS_XFLAG_FILESTREAM,		"S", "filestream"	},
 	{ FS_XFLAG_DAX,			"x", "dax"		},
 	{ FS_XFLAG_COWEXTSIZE,		"C", "cowextsize"	},
+	{ FS_XFLAG_HASATTR,		"X", "has-xattr"	},
 	{ 0, NULL, NULL }
 };
 #define CHATTR_XFLAG_LIST	"r"/*p*/"iasAdtPneEfSxC"
@@ -65,6 +66,7 @@ lsattr_help(void)
 " S -- enable filestreams allocator for this directory\n"
 " x -- Use direct access (DAX) for data in this file\n"
 " C -- for files with shared blocks, observe the inode CoW extent size value\n"
+" X -- file has extended attributes (cannot be changed using chattr)\n"
 "\n"
 " Options:\n"
 " -R -- recursively descend (useful when current file is a directory)\n"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-11-08 13:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06  5:58 [PATCH] xfs_io/lsattr: expose FS_XFLAG_HASATTR flag Amir Goldstein
2019-11-06 16:01 ` Darrick J. Wong
2019-11-06 18:29   ` Amir Goldstein
2019-11-06 18:45     ` Eric Sandeen
2019-11-06 18:52       ` Darrick J. Wong
2019-11-06 18:53         ` Eric Sandeen
2019-11-06 19:07           ` Darrick J. Wong
2019-11-08  6:50 ` Darrick J. Wong
2019-11-08 13:39   ` Eric Sandeen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.