Bug 11655 - NT_STATUS_NETWORK_BUSY / nfsd(4) LEASE READ lock
Summary: NT_STATUS_NETWORK_BUSY / nfsd(4) LEASE READ lock
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.1.17
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-30 10:16 UTC by Michael Baldauf
Modified: 2015-12-30 21:12 UTC (History)
1 user (show)

See Also:


Attachments
Logfile (4.14 MB, text/plain)
2015-12-30 10:16 UTC, Michael Baldauf
no flags Details
smb.conf (7.36 KB, text/plain)
2015-12-30 10:17 UTC, Michael Baldauf
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Baldauf 2015-12-30 10:16:23 UTC
Created attachment 11751 [details]
Logfile

I setup a NFS4 / SMB fileserver:
uname –a: Debian 3.16.7-ckt20-1+deb8u1 (2015-12-14) x86_64 GNU/Linux 
nmbd –version: Version 4.1.17-Debian
Filesystem: ext4

nfsv4 /etc/exports
/export/fs-test    (anonuid=1100,ro,async,no_wdelay,no_root_squash,insecure_locks)

/etc/fstab
proc                    /proc   proc    nodev,noexec,nosuid     0       0
/data/fs-test   /export/fs-test bind    bind    0

smb.conf
[fs-ro]
	directory mode = 775
	force directory mode = 775
	locking = no
	create mode = 775
	writeable = yes
	path = /data/fs-ro
	force create mode = 775
	comment = fs-ro comment
	wide links = no
	hide dot files = no
	oplocks = no

[fs-test]
	path = /data/fs-test
	copy = fs-ro 


When the nfs share is accessed, the kernel creates locks:
lslocks
…
nfsd              660 LEASE    0B READ  0     0   0 /export/fs-test
nfsd              660 LEASE    0B READ  0     0   0 /export/fs-test
...

When files are written to the SMB share fs-test, the Windows 7 Client reports an error.
Samba log (Debuglevel=10) reports
[2015/12/30 10:41:52.350764, 10, pid=5402, effective(1001, 100), real(1001, 0)] ../source3/smbd/open.c:4094(create_file_unixpath)
  create_file_unixpath: NT_STATUS_NETWORK_BUSY

The problem does not occur
- when lslocks does not show read locks
- NFSV3 is used
Comment 1 Michael Baldauf 2015-12-30 10:17:17 UTC
Created attachment 11752 [details]
smb.conf