Bug #73487
opendf reports incorrect values when mixed quotas are present
0%
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.
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
Updated by Venky Shankar 4 months ago
- Status changed from Fix Under Review to Pending Backport
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
Updated by Upkeep Bot 4 months ago
- Copied to Backport #73870: squid: df reports incorrect values when mixed quotas are present added
Updated by Upkeep Bot 4 months ago
- Copied to Backport #73871: tentacle: df reports incorrect values when mixed quotas are present added