Blame SOURCES/xfsprogs-5.10.0-libfrog-list-the-bigtime-feature-when-reporting-geom.patch

f49185
From 0160c1490d4b49889c9ed01a39f760cba762eac5 Mon Sep 17 00:00:00 2001
f49185
From: "Darrick J. Wong" <darrick.wong@oracle.com>
f49185
Date: Fri, 20 Nov 2020 17:03:28 -0500
f49185
Subject: [PATCH] libfrog: list the bigtime feature when reporting geometry
f49185
f49185
When we're reporting on a filesystem's geometry, report if the bigtime
f49185
feature is enabled on this filesystem.
f49185
f49185
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
f49185
Reviewed-by: Christoph Hellwig <hch@lst.de>
f49185
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
f49185
---
f49185
f49185
diff --git a/libfrog/fsgeom.c b/libfrog/fsgeom.c
f49185
index 8879d16..ddacd59 100644
f49185
--- a/libfrog/fsgeom.c
f49185
+++ b/libfrog/fsgeom.c
f49185
@@ -25,6 +25,7 @@ xfs_report_geom(
f49185
 	int			spinodes;
f49185
 	int			rmapbt_enabled;
f49185
 	int			reflink_enabled;
f49185
+	int			bigtime_enabled;
f49185
 
f49185
 	isint = geo->logstart > 0;
f49185
 	lazycount = geo->flags & XFS_FSOP_GEOM_FLAGS_LAZYSB ? 1 : 0;
f49185
@@ -40,12 +41,13 @@ xfs_report_geom(
f49185
 	spinodes = geo->flags & XFS_FSOP_GEOM_FLAGS_SPINODES ? 1 : 0;
f49185
 	rmapbt_enabled = geo->flags & XFS_FSOP_GEOM_FLAGS_RMAPBT ? 1 : 0;
f49185
 	reflink_enabled = geo->flags & XFS_FSOP_GEOM_FLAGS_REFLINK ? 1 : 0;
f49185
+	bigtime_enabled = geo->flags & XFS_FSOP_GEOM_FLAGS_BIGTIME ? 1 : 0;
f49185
 
f49185
 	printf(_(
f49185
 "meta-data=%-22s isize=%-6d agcount=%u, agsize=%u blks\n"
f49185
 "         =%-22s sectsz=%-5u attr=%u, projid32bit=%u\n"
f49185
 "         =%-22s crc=%-8u finobt=%u, sparse=%u, rmapbt=%u\n"
f49185
-"         =%-22s reflink=%u\n"
f49185
+"         =%-22s reflink=%-4u bigtime=%u\n"
f49185
 "data     =%-22s bsize=%-6u blocks=%llu, imaxpct=%u\n"
f49185
 "         =%-22s sunit=%-6u swidth=%u blks\n"
f49185
 "naming   =version %-14u bsize=%-6u ascii-ci=%d, ftype=%d\n"
f49185
@@ -55,7 +57,7 @@ xfs_report_geom(
f49185
 		mntpoint, geo->inodesize, geo->agcount, geo->agblocks,
f49185
 		"", geo->sectsize, attrversion, projid32bit,
f49185
 		"", crcs_enabled, finobt_enabled, spinodes, rmapbt_enabled,
f49185
-		"", reflink_enabled,
f49185
+		"", reflink_enabled, bigtime_enabled,
f49185
 		"", geo->blocksize, (unsigned long long)geo->datablocks,
f49185
 			geo->imaxpct,
f49185
 		"", geo->sunit, geo->swidth,
f49185
diff --git a/libxfs/libxfs_api_defs.h b/libxfs/libxfs_api_defs.h
f49185
index 00f367e..a0452c2 100644
f49185
--- a/libxfs/libxfs_api_defs.h
f49185
+++ b/libxfs/libxfs_api_defs.h
f49185
@@ -115,6 +115,7 @@
f49185
 #define xfs_calc_dquots_per_chunk	libxfs_calc_dquots_per_chunk
f49185
 #define xfs_dquot_verify		libxfs_dquot_verify
f49185
 #define xfs_dqblk_repair		libxfs_dqblk_repair
f49185
+#define xfs_dquot_from_disk_ts		libxfs_dquot_from_disk_ts
f49185
 
f49185
 #define xfs_symlink_blocks		libxfs_symlink_blocks
f49185
 #define xfs_symlink_hdr_ok		libxfs_symlink_hdr_ok