[Bug 1477678] [NEW] cifs vers >1.0 issue deleting non-empty folder

Launchpad Bug Tracker 1477678 at bugs.launchpad.net
Thu Jul 23 16:57:16 UTC 2015


You have been subscribed to a public bug:

Deleting a *non empty* folder on a cifs share won't work with cifs>1.0 as expected.
Deleting files and empty folders step by step works.
Tested in LXTerminal and PCManFM.

LXTerminal:
$ sudo mount //server/pw ~/cifs -t cifs -o "defaults,uid=us2000,gid=data,file_mode=0700,dir_mode=0700,credentials=/home/us2000/.smb/smbdata,vers=2.0"

$ mount
//server/pw on /home/us2000/cifs type cifs (rw,relatime,vers=2.0,sec=ntlmssp,cache=strict,username=smbdata,domain=K,uid=1000,forceuid,gid=1003,forcegid,addr=192.168.0.5,file_mode=0700,dir_mode=0700,nounix,serverino,rsize=65536,wsize=65536,actimeo=1)

$ mkdir -p ~/cifs/1/2
$ rmdir ~/cifs/1; echo $?
0
$ ls -la ~/cifs
drwx------ 2 us2000 data      0 Jul 23 18:38 .
drwxr-xr-x 1 us2000 us2000 1046 Jul 23 18:34 ..
drwx------ 2 us2000 data      0 Jul 23 18:37 1
$ rmdir ~/cifs/1/2
$ rmdir ~/cifs/1
$ ls -la ~/cifs
drwx------ 2 us2000 data      0 Jul 23 18:38 .
drwxr-xr-x 1 us2000 us2000 1046 Jul 23 18:34 ..


Deleting in GUI with PCManFM even strange:
the deleted folder is removed from listing in PCManFM on the first glance, but is after F5 again present.


Mounting with cifs vers 1.0 has no problem:
Deletion in PCManFM works fine, LXterminal gives on non-empty folder:
$ rmdir ~/cifs/1
rmdir: failed to remove ‘/home/us2000/cifs/1’: Directory not empty


Distributor ID:	Ubuntu
Description:	Ubuntu 15.04
Release:	15.04
Codename:	vivid
cifs-utils	2:6.0-1ubuntu2      amd64 
kernel		3.19.0-23-generic

** Affects: cifs-utils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
cifs vers >1.0 issue deleting non-empty folder
https://bugs.launchpad.net/bugs/1477678
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to cifs-utils in Ubuntu.



More information about the foundations-bugs mailing list