Project

General

Profile

Bug #40425

[librgw]Can't get the correct the Unix file attribute of root node

Added by Kunyang Fan 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
06/19/2019
Due date:
% Done:

0%

Source:
Tags:
rgw
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

Using the function "rgw_mount2" to mount a bucket or root "/" and then calling the function "rgw_getAttr(fs, fs->root_fh)" to get stat mode will always get the same Unix stat mode (root/root rwxrwxrwx). The mounting root point's Unix attribute meta data may not get correctly.

Reproducing Step:
(1) NFS Server used the NFS-Ganesha in RGW mode and exported a root "/" to NFS client.
(2) NFS Client mounted the root folder and then created a folder(Bucket) "mount" with not root owner and group id and Unix mode rwxrwx___.
(3) Another NFS Client can see this folder(Bucket) "mount" with the same owner id, group id and Unix mode.
(4) NFS Server exported "/mount" and NFS clients mounted this exporting point. But NFS Clients saw the folder with root/root rwxrwxrwx.

The attachemnt is the NFS-Ganesha config file

ganesha.conf View - The attachemnt is the NFS-Ganesha config file (1.58 KB) Kunyang Fan, 06/19/2019 09:08 AM

Also available in: Atom PDF