[Bug 888830] Re: upload transfer on mounted smb share fails

msknight 888830 at bugs.launchpad.net
Sat Nov 12 13:13:20 UTC 2011


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
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/888830

Title:
  upload transfer on mounted smb share fails

Status in “util-linux” package in Ubuntu:
  New

Bug description:
  Server - OpenIndiana 151a Sept 2011.
  Client - Xubuntu 32 bit.

  SMB share from the server, (ZFS published) is mounted to the client.

  Any attempt to copy a file to the server, greater than around 100,000 bytes 
  results in the client reporting an I/O error. Failure occurs whether using "cp" or drag-n-drop in  Dolphin.

  A file of 91,738 bytes will transfer.
  A file of 103,857 will fail.

  Downloads from the SMB share work, regardless of file size.

  Clients version of mount is from "util-linux 2.19.1 (with libblkid and selinux 
  support)"

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: mount 2.19.1-2ubuntu3
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
  Uname: Linux 3.0.0-12-generic i686
  NonfreeKernelModules: nvidia
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  Date: Fri Nov 11 00:16:31 2011
  InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111011)
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: util-linux
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/888830/+subscriptions




More information about the foundations-bugs mailing list