[PATCH] Fix bug 9412 - SMB2 server doesn't support recvfile.

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Apr 8 01:55:56 MDT 2014


On Thu, Apr 03, 2014 at 07:36:28PM +0800, Jones wrote:
> 2014-04-01 20:30 GMT+08:00 Volker Lendecke <Volker.Lendecke at sernet.de>:
> 
> > Can you send me a more complete strace? I haven't followed,
> > but have you tried "strict locking = no" and "posix locking
> > = no"?
> >
> 
> Hello Volker,
> 
> Today checkout samba-master and build again (2014/Apr/03),
> and the attached tarball including 2 strace log with diff setup,
> 1) 20140403_posix_locking_no__strict_locking_no.log
> 2) 20140403_posix_locking_yes__strict_locking_auto.log
> 
> If this is no good to attach tgz file i would like to try other method,
> thanks.

Thanks!

There's a set of syscalls I don't quite understand:

poll([{fd=6, events=POLLIN|POLLHUP}, {fd=10, events=POLLIN|POLLHUP}, {fd=30, events=POLLIN|POLLHUP, revents=POLLIN}, {fd=31, events=POLLIN|POLLHUP, revents=POLLIN}], 4, 1989) = 2
ioctl(30, FIONREAD, [32])               = 0
read(30, "\1\0\0\0\2\0\0\0\0\0\0\0\20\0\0\0iobw.tst\0\0\0\0\0\0\0"..., 32) = 32
gettimeofday({1396527541, 800061}, NULL) = 0
gettimeofday({1396527541, 800077}, NULL) = 0

This comes in after every write call (that by the way
translates into normal read/write syscalls, which seems not
very efficient). There is no hint what fd 30 is, my
assumption is that it is inotify. Can you try setting
"kernel change notify = no" just for a test to see if it
makes a difference?

With best regards,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de


More information about the samba-technical mailing list