diff options
author | Eric Sandeen <sandeen@redhat.com> | 2020-05-14 12:17:29 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-05-14 12:17:29 +0200 |
commit | be96da2353669d433b0abddb85b26ccaf35e3451 (patch) | |
tree | d6cddb52ba2db3ad5b942f8b4906345cd5b6a2f0 | |
parent | fdd774bf08e56872ae4c0420e0f01efa25e715d6 (diff) | |
download | linuxquota-be96da2353669d433b0abddb85b26ccaf35e3451.tar.gz |
quota-tools: Set FS_DQ_TIMER_MASK for individual xfs grace times
xfs quota code doesn't currently allow increasing an individual
user's grace time, but kernel patches are in development for this.
In order for setquota to be able to send this update via
setquota -T, we need to add the FS_DQ_TIMER_MASK when we are trying
to update the grace times on an individual user's dquot.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | quotaio_xfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quotaio_xfs.c b/quotaio_xfs.c index b22c7b4..a4d6f67 100644 --- a/quotaio_xfs.c +++ b/quotaio_xfs.c @@ -166,6 +166,8 @@ static int xfs_commit_dquot(struct dquot *dquot, int flags) xdqblk.d_fieldmask |= FS_DQ_BCOUNT; } else { xdqblk.d_fieldmask |= FS_DQ_LIMIT_MASK; + if (flags & COMMIT_TIMES) /* indiv grace period */ + xdqblk.d_fieldmask |= FS_DQ_TIMER_MASK; } qcmd = QCMD(Q_XFS_SETQLIM, h->qh_type); |