Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
xfsprogs.21555
xfsprogs-xfs_quota-display-warning-limits-when-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfsprogs-xfs_quota-display-warning-limits-when-printing-quota.patch of Package xfsprogs.21555
From 387a96e12a937c1b2ee29a0f2c52245d6a283078 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" <darrick.wong@oracle.com> Date: Mon, 24 Aug 2020 13:23:32 -0400 Subject: [PATCH] xfs_quota: display warning limits when printing quota type information Git-commit: 387a96e12a937c1b2ee29a0f2c52245d6a283078 Patch-mainline: v5.8.0-rc1 References: bsc#1189983 We should dump the default warning limits when we're printing quota information. 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> Acked-by: Anthony Iliopoulos <ailiop@suse.com> --- quota/state.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/quota/state.c b/quota/state.c index 7a595fc6d0bf..1627181dba16 100644 --- a/quota/state.c +++ b/quota/state.c @@ -130,6 +130,16 @@ state_timelimit( time_to_string(timelimit, VERBOSE_FLAG | ABSOLUTE_FLAG)); } +static void +state_warnlimit( + FILE *fp, + uint form, + uint16_t warnlimit) +{ + fprintf(fp, _("%s max warnings: %u\n"), + form_to_string(form), warnlimit); +} + /* * fs_quota_stat holds a subset of fs_quota_statv; this copies * the smaller into the larger, leaving any not-present fields @@ -218,7 +228,11 @@ state_quotafile_mount( sv.qs_flags & XFS_QUOTA_PDQ_ENFD); state_timelimit(fp, XFS_BLOCK_QUOTA, sv.qs_btimelimit); + state_warnlimit(fp, XFS_BLOCK_QUOTA, sv.qs_bwarnlimit); + state_timelimit(fp, XFS_INODE_QUOTA, sv.qs_itimelimit); + state_warnlimit(fp, XFS_INODE_QUOTA, sv.qs_iwarnlimit); + state_timelimit(fp, XFS_RTBLOCK_QUOTA, sv.qs_rtbtimelimit); } -- 2.33.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor