Project

General

Profile

Actions

Bug #73487

open

df reports incorrect values when mixed quotas are present

Added by Christopher Hoffman 5 months ago. Updated 4 months ago.

Status:
Pending Backport
Priority:
Normal
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Development
Backport:
tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client
Labels (FS):
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v20.3.0-4182-g0666c09738
Released In:
Upkeep Timestamp:
2025-11-17T09:14:22+00:00

Description

When there's mixed quota values on a filesystem, incorrect values are shown

For example take a dir tree as follows (filesystem mounted on /mnt/mycephfs):

/mnt/mycephfs/dir1
/mnt/mycephfs/dir1/dir2

Set the mixed quotas
setfattr -n ceph.quota.max_bytes -v 30G /mnt/mycephfs/dir1
setfattr -n ceph.quota.max_files -v 10000 /mnt/mycephfs/dir1/dir2

then consider these calls

df -h /mnt/mycephfs
Filesystem Size Used Avail Use% Mounted on
ceph-fuse 99G 0 99G 0% /mnt/mycephfs
df -h /mnt/mycephfs/dir1
Filesystem Size Used Avail Use% Mounted on
ceph-fuse 30G 0 30G 0% /mnt/mycephfs
df -h /mnt/mycephfs/dir1/dir2/
Filesystem Size Used Avail Use% Mounted on
ceph-fuse 99G 0 99G 0% /mnt/mycephfs

When the last df is ran, we should see 30G size and not filesystem size.


Related issues 2 (1 open1 closed)

Copied to CephFS - Backport #73870: squid: df reports incorrect values when mixed quotas are presentResolvedJos CollinActions
Copied to CephFS - Backport #73871: tentacle: df reports incorrect values when mixed quotas are presentQA TestingJos CollinActions
Actions #1

Updated by Christopher Hoffman 5 months ago

  • Pull request ID set to 65918
Actions #2

Updated by Venky Shankar 5 months ago

  • Category set to Correctness/Safety
  • Status changed from In Progress to Fix Under Review
  • Target version set to v21.0.0
  • Source set to Development
  • Backport set to tentacle,squid
  • Component(FS) Client added
Actions #3

Updated by Venky Shankar 4 months ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Upkeep Bot 4 months ago

  • Merge Commit set to 0666c097380ba85196a6a75f97cb152d8a1bb9b7
  • Fixed In set to v20.3.0-4182-g0666c09738
  • Upkeep Timestamp set to 2025-11-17T09:14:22+00:00
Actions #5

Updated by Upkeep Bot 4 months ago

  • Copied to Backport #73870: squid: df reports incorrect values when mixed quotas are present added
Actions #6

Updated by Upkeep Bot 4 months ago

  • Copied to Backport #73871: tentacle: df reports incorrect values when mixed quotas are present added
Actions #7

Updated by Upkeep Bot 4 months ago

  • Tags (freeform) set to backport_processed
Actions

Also available in: Atom PDF