Bug 870256
Summary: | Samba "store dos attributes" feature doesn't work with GlusterFS. | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Jeff Byers <jbyers> |
Component: | unclassified | Assignee: | Raghavendra Talur <rtalur> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.2.5 | CC: | fharshav, gluster-bugs, jbyers |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-16 20:27:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeff Byers
2012-10-25 23:44:19 UTC
Hello, The problem I was having with GlusterFS and Samba using the "store dos attributes" was a configuration error on my part. The Samba debug log indicated: [2012/11/05 17:42:34.265825, 8, pid=16066] smbd/dosmode.c:621(dos_mode) dos_mode: ./.. [2012/11/05 17:42:34.265932, 1, pid=16066] smbd/dosmode.c:247(get_ea_dos_attribute) get_ea_dos_attribute: Cannot get attribute from EA on file ./..: Error = Operation not supported From the code, when this error reading the Extended Attribute (EA) occurs, Samba turns the "store dos attributes" feature off. gitweb.samba.org - samba.git/blob - source3/smbd/dosmode.c http://gitweb.samba.org/?p=samba.git;a=blob;f=source3/smbd/dosmode.c#l242 241 sizeret = SMB_VFS_GETXATTR(conn, smb_fname->base_name, 242 SAMBA_XATTR_DOS_ATTRIB, attrstr, 243 sizeof(attrstr)); 244 if (sizeret == -1) { 245 if (errno == ENOSYS 247 || errno == ENOTSUP) { 249 ) { 251 DEBUG(1,("get_ea_dos_attribute: Cannot get attribute " 252 "from EA on file %s: Error = %s\n", 253 smb_fname_str_dbg(smb_fname), 254 strerror(errno))); 255 set_store_dos_attributes(SNUM(conn), False); What was happening was that Samba was trying to read the EA's from the root directory, but this was the GlusterFS mount point, so it didn't have any. The correct configuration is to have Samba use a sub- directory of the GlusterFS volume mount-point. The other problem I mentioned about the 'security' EA's not working with GlusterFS, but working with the bricks directly, does appear to be a problem with Samba: vfs_acl_xattr — Save NTFS-ACLs in Extended Attributes (EAs) http://www.samba.org/samba/docs/man/manpages-3/vfs_acl_xattr.8.html which prevents the Samba "vfs objects = acl_xattr" feature from being used -- it tries and fails to use 'security.NTACL' EA's. *** This bug has been marked as a duplicate of bug 1110018 *** |