The problem is not exactly clear from your email, but I suspect this is
a duplicate of this bug that was recently reported:
https://bugzilla.samba.org/show_bug.cgi?id=8559
I don't think we're really doing anything non-standard. IIUC, the
problem is a bit of a gap in the spec. CAP_LARGE_WRITE_ANDX allows you
to exceed the server's MaxBufferSize when sending a write. What the
spec does not mention however is how much larger you're allowed to go.
When I did the patches to allow cifs.ko to do larger and async writes,
I made them as big as possible since that's generally better for
performance. The wsize you see here is as many 4k pages as we can fit
into a write request w/o going over the 2^17-1 limit mandated by
RFC1002. Most servers (including Windows) are OK with this.
The problem of course is that some servers (namely Solaris's in-kernel
CIFS server) apparently do not handle writes this large and will throw
back INVALID_PARAMETER errors. Perhaps Gordon could clarify what
Solaris doesn't like about those write requests?
If we're violating the spec, then we certainly want to fix that, but I
don't see anything right offhand that's truly wrong...
Either way, I recently proposed a patch upstream to set the default
wsize to 65536 to better align with what windows does. I think that's
the safest thing to do here. If you mount with wsize=65536 it will
probably work around the problem for now.
--
Jeff Layton
** Bug watch added: Samba Bugzilla #8559
https://bugzilla.samba.org/show_bug.cgi?id=8559
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/888830
Title:
upload transfer on mounted smb share fails
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/888830/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs