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