Project

General

Profile

Actions

Bug #50055

open

nfs-ganesha exports the s3 bucket with quota, nfs-ganesha cannot obtain quota capacity

Added by Jiang Yu about 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When I use nfs-ganesha to export an s3 bucket with quota set, nfs-ganesha cannot obtain the quota capacity I want.

1. nfs-ganesha configuration file
root@yujiang-dev:~# cat /etc/ganesha/ganesha.conf
EXPORT {
Export_ID = 1;
Path = "testbucket";
Pseudo = "/testbucket";
Access_Type = RW;
Protocols = "3","4";
Transports = TCP;
FSAL {
Name = RGW;
User_Id = "yujiang";
Access_Key_Id="3DNM7Z57L4UXGDPMG3FU";
Secret_Access_Key = "rWsCjB0u7GF4uPXTTaE0BU4rfNP33OE2WufJBJEt";
}
}

RGW {
ceph_conf = "/etc/ceph/ceph.conf";
  1. for vstart cluster, name = "client.admin"
    name = "client.rgw.yujiang-dev";
    cluster = "ceph";
  2. init_args = "-d --debug-rgw=16";
    }

2. Then after the client mounts, when using df -Th, df cannot get the quota value I want.

the reason:
I check the code, when exporting to nfs-ganesha using cephfs, there is client_quota_df = true parameter to get the cephfs quota value.
( int Client::statfs(const char *path, struct statvfs *stbuf, const UserPerm& perms) )

But there is no such logic in rgw.
( int rgw_statfs(struct rgw_fs *rgw_fs, struct rgw_file_handle *parent_fh, struct rgw_statvfs *vfs_st, uint32_t flags) )

Actions #1

Updated by Neha Ojha about 3 years ago

  • Project changed from RADOS to rgw
Actions

Also available in: Atom PDF