Bug 762107 (GLUSTER-375)

Summary: Stat fails on a samba mount
Product: [Community] GlusterFS Reporter: Raghavendra G <raghavendra>
Component: posixAssignee: Vikas Gorur <vikas>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 762118    

Description Raghavendra G 2009-11-12 03:06:38 UTC
The device exported by smbd is for non-root user. smbd is running on a booster with only posix translator. posix_stat involves storing the inode generation number as an extended attribute. Since setattr is not permitted for non-root user, the operation fails.

Comment 1 Vikas Gorur 2009-11-16 08:41:00 UTC
Can you check if replacing this line:

posix.c:250   ret = snprintf (gen_key, 1024, "trusted.%s.gen", this->name);

with

posix.c:250   ret = snprintf (gen_key, 1024, "user.%s.gen", this->name);

fixes the problem? You'll also need to mount the backend filesystem with the "user_xattr" option.

If this works, we can think about making "user." the default namespace for the generation number.

Comment 2 Vikas Gorur 2009-11-25 04:27:15 UTC
Although this problem could be fixed by changing the namespace to "user" from "trusted", doing so would pollute the user's xattr namespace. As this problem will only happen in the narrow case of libglusterfsclient+posix, marking as WONTFIX for now.