Project

General

Profile

Actions

Bug #56414

closed

mounting subvolume shows size/used bytes for entire fs, not subvolume

Added by Xiubo Li almost 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
libcephfs
Labels (FS):
quotas
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When mounting a subvolume at the base dir of the subvolume, the kernel client correctly shows the size/usage of a subvol:

Filesystem                                                                                            Size  Used Avail Use% Mounted on
xxx:6789:/volumes/_nogroup/4db8f9a6-926b-4306-8a6d-0e1b897c1d2f/d2ef5fea-040c-4ec1-b1bb-66073f9fc8ac  8.8T     0  8.8T   0% /cephfs

However if the client mounts a subdir of the subvolume, they see the size/usage of the entire cephfs:

Filesystem                                                                                                      Size  Used Avail Use% Mounted on
xxx:6789:/volumes/_nogroup/4db8f9a6-926b-4306-8a6d-0e1b897c1d2f/d2ef5fea-040c-4ec1-b1bb-66073f9fc8ac/my/subdir  1.3P  430T  860T  34% /var/lib/service

`ceph-fuse` does not have this behaviour -- mounting at a subdir below the subvolume shows the "correct" subvolume size and usage.


Related issues 1 (1 open0 closed)

Copied from Linux kernel client - Bug #55090: mounting subvolume shows size/used bytes for entire fs, not subvolumeNewLuis Henriques

Actions
Actions #1

Updated by Xiubo Li almost 2 years ago

  • Copied from Bug #55090: mounting subvolume shows size/used bytes for entire fs, not subvolume added
Actions #2

Updated by Xiubo Li almost 2 years ago

  • Status changed from New to In Progress

Hit the same issue in libcephfs.

Actions #3

Updated by Xiubo Li almost 2 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 46867
Actions #4

Updated by Xiubo Li almost 2 years ago

  • Pull request ID changed from 46867 to 46902
Actions #5

Updated by Rishabh Dave over 1 year ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF