Bug 1741734

Summary: gluster-smb:glusto-test access gluster by cifs test write report Device or resource busy
Product: [Community] GlusterFS Reporter: yinkui <13965432176>
Component: gluster-smbAssignee: bugs <bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1781486 1783232 (view as bug list) Environment:
Last Closed: 2019-08-21 14:00:32 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:
Bug Depends On:    
Bug Blocks: 1781486, 1783232    

Description yinkui 2019-08-16 02:05:58 UTC
Description of problem:
Write data Device or resource busy by client access volume when do gluster volume set testvol_distributed-replicated user.cifs on.

Version-Release number of selected component (if applicable):
gluster-6 extras/hook-scripts/start/post/S30samba-start.sh and ./extras/hook-scripts/set/post/S30samba-set.sh script

How reproducible:
enable gluster cifs and access volume by cifs. Smb client will report Device or resource busy when we echo or do cat command file

Steps to Reproduce:
1.create 2*(2+1) test volume
2.gluster v set test user.cifs on
3.On the client and mount test by cifs
4.create file and echo "11111" >> file, will report Device or resource busy.

Actual results:
can not write or read file

Expected results:
can write or read file as usual

Additional info:
smb client:
mount.cifs //10.10.51.22/gluster-testvol_dispersed /mnt/testvol_dispersed
cd /mnt/testvol_dispersed
cat file 
cat: file: Device or resource busy
echo "11111" >> file 
-bash: file: Device or resource busy

Comment 1 Worker Ant 2019-08-16 02:31:58 UTC
REVIEW: https://review.gluster.org/23240 (gluster-smb:add smb parameter when  access gluster by cifs) posted (#1) for review on master by None

Comment 2 Worker Ant 2019-08-21 14:00:32 UTC
REVIEW: https://review.gluster.org/23240 (gluster-smb:add smb parameter when  access gluster by cifs) merged (#4) on master by Amar Tumballi