All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/1] ceph: Fix incorrect statfs report
@ 2021-11-09  9:10 khiremat
  2021-11-09  9:10 ` [PATCH v1 1/1] ceph: Fix incorrect statfs report for small quota khiremat
  0 siblings, 1 reply; 4+ messages in thread
From: khiremat @ 2021-11-09  9:10 UTC (permalink / raw)
  To: jlayton; +Cc: idryomov, pdonnell, vshankar, xiubli, ceph-devel, Kotresh HR

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(+)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-09 17:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09  9:10 [PATCH v1 0/1] ceph: Fix incorrect statfs report khiremat
2021-11-09  9:10 ` [PATCH v1 1/1] ceph: Fix incorrect statfs report for small quota khiremat
2021-11-09 14:43   ` Luís Henriques
2021-11-09 17:02   ` Jeff Layton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.