]> www.infradead.org Git - users/hch/xfsprogs.git/commitdiff
xfs: pass the attr value to put_listent when possible
authorAllison Henderson <allison.henderson@oracle.com>
Tue, 9 Jan 2024 17:39:21 +0000 (09:39 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 10 Apr 2024 00:21:30 +0000 (17:21 -0700)
Pass the attr value to put_listent when we have local xattrs or
shortform xattrs.

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/xfs_attr.h
libxfs/xfs_attr_sf.h

index d63305fc541553454b15749ef5a01ce6163e67de..cb5ca37000848c661c653b645303f3e46f4af090 100644 (file)
@@ -47,8 +47,9 @@ struct xfs_attrlist_cursor_kern {
 
 
 /* void; state communicated via *context */
-typedef void (*put_listent_func_t)(struct xfs_attr_list_context *, int,
-                             unsigned char *, int, int);
+typedef void (*put_listent_func_t)(struct xfs_attr_list_context *context,
+               int flags, unsigned char *name, int namelen, void *value,
+               int valuelen);
 
 struct xfs_attr_list_context {
        struct xfs_trans        *tp;
index bc44222230248678d2729b5dfc2f03242bb3c97a..73bdc0e5568251d1c95f7ef6db96ecaf2c54831b 100644 (file)
@@ -16,6 +16,7 @@ typedef struct xfs_attr_sf_sort {
        uint8_t         flags;          /* flags bits (see xfs_attr_leaf.h) */
        xfs_dahash_t    hash;           /* this entry's hash value */
        unsigned char   *name;          /* name value, pointer into buffer */
+       void            *value;
 } xfs_attr_sf_sort_t;
 
 #define XFS_ATTR_SF_ENTSIZE_MAX                        /* max space for name&value */ \