aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2024-01-09 09:40:34 -0800
committerDarrick J. Wong <djwong@kernel.org>2024-05-10 17:22:24 -0700
commit9b00ae809ee120aed5ac8c7e5cb11c2231b99744 (patch)
treec206d76f22459b8f3599919964eb6130c90fd9d1
parent92d72ffd12acf49f0740ad060b72c2a18c8ae12d (diff)
downloadxfsprogs-dev-realtime-quotas.tar.gz
xfs_quota: report warning limits for realtime space quotasrealtime-quotas_2024-05-10realtime-quotas
Report the number of warnings that a user will get for exceeding the soft limit of a realtime volume. Signed-off-by: Darrick J. Wong <djwong@kernel.org>
-rw-r--r--include/xqm.h5
-rw-r--r--quota/state.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/include/xqm.h b/include/xqm.h
index 573441db98..045af9b67f 100644
--- a/include/xqm.h
+++ b/include/xqm.h
@@ -184,7 +184,10 @@ struct fs_quota_statv {
__s32 qs_rtbtimelimit;/* limit for rt blks timer */
__u16 qs_bwarnlimit; /* limit for num warnings */
__u16 qs_iwarnlimit; /* limit for num warnings */
- __u64 qs_pad2[8]; /* for future proofing */
+ __u16 qs_rtbwarnlimit;/* limit for rt blks warnings */
+ __u16 qs_pad3;
+ __u32 qs_pad4;
+ __u64 qs_pad2[7]; /* for future proofing */
};
#endif /* __XQM_H__ */
diff --git a/quota/state.c b/quota/state.c
index 260ef51db1..43fb700f9a 100644
--- a/quota/state.c
+++ b/quota/state.c
@@ -244,6 +244,7 @@ state_quotafile_stat(
state_warnlimit(fp, XFS_INODE_QUOTA, sv->qs_iwarnlimit);
state_timelimit(fp, XFS_RTBLOCK_QUOTA, sv->qs_rtbtimelimit);
+ state_warnlimit(fp, XFS_RTBLOCK_QUOTA, sv->qs_rtbwarnlimit);
}
static void