Project

General

Profile

Actions

Bug #40425

open

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

Added by Kunyang Fan almost 5 years ago.

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

0%

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

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


Files

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

No data to display

Actions

Also available in: Atom PDF