mbox series

[v1,0/1] ceph: Fix incorrect statfs report

Message ID 20211109091041.121750-1-khiremat@redhat.com (mailing list archive)
Headers show
Series ceph: Fix incorrect statfs report | expand

Message

Kotresh Hiremath Ravishankar Nov. 9, 2021, 9:10 a.m. UTC
From: Kotresh HR <khiremat@redhat.com>

The statfs reports incorrect free/available space
for quota less then CEPH_BLOCK size (4M).

The approach chosen is to go with binary use/free
of full block instead of chosing the smaller block
size.

For quota size less than CEPH_BLOCK size, report
the total=used=CEPH_BLOCK,free=0 when quota is
full and total=free=CEPH_BLOCK, used=0 otherwise.

Kotresh HR (1):
  ceph: Fix incorrect statfs report for small quota

 fs/ceph/quota.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)