Project

General

Profile

Actions

Bug #73487

closed
CH CH

df reports incorrect values when mixed quotas are present

Bug #73487: df reports incorrect values when mixed quotas are present

Added by Christopher Hoffman about 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
Correctness/Safety
Target version:
Due date:
% 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):
Fixed In:
v20.3.0-4182-g0666c09738
Released In:
v21.2.0~1683
Upkeep Timestamp:
2026-10-24T02:06:28+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 (0 open — 2 closed)

Copied to CephFS - Backport #73870: squid: df reports incorrect values when mixed quotas are presentResolvedJos Collin

Actions
Copied to CephFS - Backport #73871: tentacle: df reports incorrect values when mixed quotas are presentResolvedJos Collin

Actions

CH Updated by Christopher Hoffman about 1 year ago Actions #1

  • Pull request ID set to 65918

VS Updated by Venky Shankar about 1 year ago Actions #2

  • 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

VS Updated by Venky Shankar about 1 year ago Actions #3

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot about 1 year ago Actions #4

  • 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

UB Updated by Upkeep Bot about 1 year ago Actions #5

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

UB Updated by Upkeep Bot about 1 year ago Actions #6

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

UB Updated by Upkeep Bot about 1 year ago Actions #7

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #8

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-17T09:14:22+00:00 to 2026-08-27T18:23:11+00:00

UB Updated by Upkeep Bot 3 months ago Actions #9

  • Status changed from Backporting to Resolved
  • Upkeep Timestamp changed from 2026-08-27T18:23:11+00:00 to 2026-09-11T01:22:25+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #10

  • Released In set to v21.2.0~1683
  • Upkeep Timestamp changed from 2026-09-11T01:22:25+00:00 to 2026-10-24T02:06:28+00:00
Actions

Also available in: PDF Atom