Bug 762107 (GLUSTER-375) - Stat fails on a samba mount
Summary: Stat fails on a samba mount
Keywords:
Status: CLOSED WONTFIX
Alias: GLUSTER-375
Product: GlusterFS
Classification: Community
Component: posix
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Vikas Gorur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: GLUSTER-386
TreeView+ depends on / blocked
 
Reported: 2009-11-12 03:06 UTC by Raghavendra G
Modified: 2009-11-25 07:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.