]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: scrub extended attributes
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 17 Nov 2017 04:11:32 +0000 (22:11 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 17 Nov 2017 04:11:32 +0000 (22:11 -0600)
Source kernel commit: eec0482e0829eab1da1be693e524c889dc4b168c

Scrub the hash tree, keys, and values in an extended attribute structure.
Refactor the attribute code to use the transaction if the caller supplied
one to avoid buffer deadocks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_fs.h

index c783de1f2abeb53e988aed07708fda849e45e80c..8c972a3c4ad591341960c3f75b05e3f09f1e8646 100644 (file)
@@ -520,9 +520,10 @@ struct xfs_scrub_metadata {
 #define XFS_SCRUB_TYPE_BMBTA   13      /* attr fork block mapping */
 #define XFS_SCRUB_TYPE_BMBTC   14      /* CoW fork block mapping */
 #define XFS_SCRUB_TYPE_DIR     15      /* directory */
+#define XFS_SCRUB_TYPE_XATTR   16      /* extended attribute */
 
 /* Number of scrub subcommands. */
-#define XFS_SCRUB_TYPE_NR      16
+#define XFS_SCRUB_TYPE_NR      17
 
 /* i: Repair this metadata. */
 #define XFS_SCRUB_IFLAG_REPAIR         (1 << 0)