620 typedef struct xfs_attr_leaf_name_local {
621 __be16 valuelen; /* number of bytes in value */
622 __u8 namelen; /* length of name bytes */
623 __u8 nameval[1]; /* name/value bytes */
624 } xfs_attr_leaf_name_local_t;
625
626 typedef struct xfs_attr_leaf_name_remote {
627 __be32 valueblk; /* block number of value bytes */
628 __be32 valuelen; /* number of bytes in value */
629 __u8 namelen; /* length of name bytes */
630 __u8 name[1]; /* name bytes */
631 } xfs_attr_leaf_name_remote_t;
Also, worth noting is that these fake flex-arrays are currently being used as arguments in calls to memcpy():
fs/xfs/libxfs/xfs_da_format.h:
Also, worth noting is that these fake flex-arrays are currently being used as arguments in calls to memcpy():
fs/xfs/libxfs/xfs_attr_leaf.c: