Bug 1062674
Summary: | Write is failing on a cifs mount with samba-4.1.3-2.fc20 + glusterfs samba vfs plugin | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Lalatendu Mohanty <lmohanty> |
Component: | gluster-smb | Assignee: | Ira Cooper <ira> |
Status: | CLOSED NOTABUG | QA Contact: | Lalatendu Mohanty <lmohanty> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 3.4.2 | CC: | jbyers |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-02-10 11:13:52 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
Lalatendu Mohanty
2014-02-07 16:46:55 UTC
It seems i saw the issue because of below function. ( in upstream Samba code, source3/modules/vfs_glusterfs.c) static int vfs_gluster_kernel_flock(struct vfs_handle_struct *handle, files_struct *fsp, uint32 share_mode, uint32_t access_mask) { errno = ENOSYS; return -1; } vfs_gluster_kernel_flock returns -1 as GlusterFS does not support kernel_flock_fn of Samba After using "kernel share modes = No" for the share (in smb.conf), write seems work fine. [testvol] comment = For samba share of volume smb-vol-2 path = / read only = No guest ok = Yes kernel share modes = No vfs objects = glusterfs glusterfs:loglevel = 10 glusterfs:logfile = /var/log/samba/glusterfs-smb-vol-2.%M.log glusterfs:volume = testvol Below email thread in Samba technical have same point as mentioned above during the code review of GlusterFS vfs plugin for Samba. https://groups.google.com/forum/#!topic/mailing.unix.samba-technical/F5410XINM1U |