Bug #50055
opennfs-ganesha exports the s3 bucket with quota, nfs-ganesha cannot obtain quota capacity
0%
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";
}
}
ceph_conf = "/etc/ceph/ceph.conf";
- for vstart cluster, name = "client.admin"
name = "client.rgw.yujiang-dev";
cluster = "ceph"; - 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) )