]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
ceph/005: verify correct statfs behaviour with quotas
authorLuís Henriques <lhenriques@suse.de>
Mon, 27 Jun 2022 10:26:31 +0000 (11:26 +0100)
committerZorro Lang <zlang@kernel.org>
Sat, 2 Jul 2022 13:30:23 +0000 (21:30 +0800)
commit56171bcb41d4225b54ab24aa4add4552b7aa6bee
tree1fe514661810231ad5d598d2a409b1addae9992e
parent6cbe7d91062df65f50c991c5606069e3854383bc
ceph/005: verify correct statfs behaviour with quotas

When using a directory with 'max_bytes' quota as a base for a mount,
statfs shall use that 'max_bytes' value as the total disk size.  That
value shall be used even when using subdirectory as base for the mount.

A bug was found where, when this subdirectory also had a 'max_files'
quota, the real filesystem size would be returned instead of the parent
'max_bytes' quota value.  This test case verifies this bug is fixed.

Signed-off-by: Luís Henriques <lhenriques@suse.de>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc
tests/ceph/005 [new file with mode: 0755]
tests/ceph/005.out [new file with mode: 0644]