]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_quota: allow individual timer extension
authorEric Sandeen <sandeen@redhat.com>
Tue, 26 May 2020 18:36:26 +0000 (14:36 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 26 May 2020 18:36:26 +0000 (14:36 -0400)
commit36dc471cc9bb17868b79cf8dea8151b207387539
treeb9396defc1e2f580b055ba4c066c45d4bb7c26d5
parent67a73d6139d0336eb7ced05bd78a26b57f408187
xfs_quota: allow individual timer extension

The only grace period which can be set via xfs_quota today is for id 0,
i.e. the default grace period for all users.  However, setting an
individual grace period is useful; for example:

 Alice has a soft quota of 100 inodes, and a hard quota of 200 inodes
 Alice uses 150 inodes, and enters a short grace period
 Alice really needs to use those 150 inodes past the grace period
 The administrator extends Alice's grace period until next Monday

vfs quota users such as ext4 can do this today, with setquota -T

xfs_quota can now accept an optional user id or name (symmetric with
how warn limits are specified), in which case that user's grace period
is extended to expire the given amount of time from now().

To maintain compatibility with old command lines, if none of
[-d|id|name] are specified, default limits are set as before.

(kernelspace requires updates to enable all this as well.)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
man/man8/xfs_quota.8
quota/edit.c