[Bug 1572132] Re: SMB driver (SMBv2) does not show all files when mounting a windows top level share

Andreas Hasenack andreas at canonical.com
Tue Jun 27 19:03:17 UTC 2017


Curious indeed. I can reproduce this on xenial mounting a share from a
windows 7 enterprise VM:

With vers 2.1 (same with 2.0):
root at nsn7:~# l /c
total 3,0G
drwxr-xr-x  2 andreas andreas 4,0K Jun 12 16:58 .
drwxr-xr-x 33 root    root    4,0K Jun 27 15:56 ..
-rwxr-xr-x  1 andreas andreas   24 Jun 10  2009 autoexec.bat
-rwxr-xr-x  1 andreas andreas   10 Jun 10  2009 config.sys
drwxr-xr-x  2 andreas andreas 4,0K Out 23  2013 Documents and Settings
-rwxr-xr-x  1 andreas andreas 3,0G Jun 27 15:45 pagefile.sys
drwxr-xr-x  2 andreas andreas    0 Jul 13  2009 PerfLogs
drwxr-xr-x  2 andreas andreas    0 Jun 12 16:10 ProgramData
dr-xr-xr-x  2 andreas andreas    0 Jun 12 21:05 Program Files
drwxr-xr-x  2 andreas andreas    0 Out 23  2013 Recovery
drwxr-xr-x  2 andreas andreas    0 Nov 26  2014 System Volume Information
dr-xr-xr-x  2 andreas andreas    0 Out 23  2013 Users
drwxr-xr-x  2 andreas andreas    0 Out 23  2013 Wallpaper
drwxr-xr-x  2 andreas andreas    0 Jun 12 16:53 Windows
root at nsn7:~# mount|grep cifs
//10.0.7.128/c on /c type cifs (rw,relatime,vers=2.1,sec=ntlmssp,cache=strict,username=IEUser,domain=WORKGROUP,uid=1000,forceuid,gid=1000,forcegid,addr=10.0.7.128,file_mode=0755,dir_mode=0755,nounix,mapposix,rsize=1048576,wsize=1048576,actimeo=1)


Without the vers= parameter we get two extra directories: "Arquivos de Programas RFB" and "$Recycle.Bin":
root at nsn7:~# l /c
total 3,0G
drwxr-xr-x  2 andreas andreas 4,0K Jun 12 16:58 .
drwxr-xr-x 33 root    root    4,0K Jun 27 15:56 ..
drwxr-xr-x  2 andreas andreas    0 Jun 12 20:52 Arquivos de Programas RFB
-rwxr-xr-x  1 andreas andreas   24 Jun 10  2009 autoexec.bat
-rwxr-xr-x  1 andreas andreas   10 Jun 10  2009 config.sys
drwxr-xr-x  2 andreas andreas    0 Jul 14  2009 Documents and Settings
-rwxr-xr-x  1 andreas andreas 3,0G Jun 27 15:45 pagefile.sys
drwxr-xr-x  2 andreas andreas    0 Jul 13  2009 PerfLogs
drwxr-xr-x  2 andreas andreas    0 Jun 12 16:10 ProgramData
dr-xr-xr-x  2 andreas andreas    0 Jun 12 21:05 Program Files
drwxr-xr-x  2 andreas andreas    0 Out 23  2013 Recovery
drwxr-xr-x  2 andreas andreas    0 Out 23  2013 $Recycle.Bin
drwxr-xr-x  2 andreas andreas    0 Nov 26  2014 System Volume Information
dr-xr-xr-x  2 andreas andreas    0 Out 23  2013 Users
drwxr-xr-x  2 andreas andreas    0 Out 23  2013 Wallpaper
drwxr-xr-x  2 andreas andreas    0 Jun 12 16:53 Windows
# mount|grep cifs
//10.0.7.128/c on /c type cifs (rw,relatime,vers=1.0,cache=strict,username=IEUser,domain=WORKGROUP,uid=1000,forceuid,gid=1000,forcegid,addr=10.0.7.128,file_mode=0755,dir_mode=0755,nounix,serverino,mapposix,rsize=61440,wsize=65536,actimeo=1)


** Changed in: samba (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1572132

Title:
  SMB driver (SMBv2) does not show all files when mounting a windows top
  level share

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When using the SMBv2 Protocol to mount a top level windows share (such
  as C:\) not all files (or directories) are shown that exist  on the
  server side. Exactly 2 files are always missing...

  Steps to reproduce:
  On a windows7 PC (or Server) e.g. C:\ must be published as Share (must be top level share - a subfolder like C:\data\ seems to work)

  sudo mount -t cifs //SERVER/SHARE_NAME /mnt -o
  domain=DOMAIN_NAME,username=${USER},uid=1000,gid=1000,nounix,vers=2.0

  As a result always 2 Files (or directories) are missing in the mounted
  directory of the ubuntu installation.

  Seems to be a kernel bug (source tree: linux/fs/cifs).

  The ubuntu versions I have checked:
  Ubuntu 14.04LTS amd64
  Ubuntu 15.10 amd64
  Ubuntu 16.04 amd64

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: ubuntu-release-upgrader-core 1:16.04.12
  ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
  Uname: Linux 4.4.0-18-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  CrashDB: ubuntu
  CurrentDesktop: KDE
  Date: Tue Apr 19 14:50:02 2016
  InstallationDate: Installed on 2016-04-19 (0 days ago)
  InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160417.1)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  Symptom: ubuntu-release-upgrader
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list