cifs vers >1.0 issue deleting non-empty folder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cifs-utils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
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,
$ mount
//server/pw on /home/us2000/cifs type cifs (rw,relatime,
$ 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/
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: | linux (Ubuntu) → cifs-utils (Ubuntu) |