Bug 5667 - Error on delete file
Summary: Error on delete file
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: VFS (show other bugs)
Version: 3.0.28a
Hardware: x86 Windows XP
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2008-08-04 11:33 UTC by SEN (dead mail address)
Modified: 2020-10-03 23:28 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description SEN (dead mail address) 2008-08-04 11:33:30 UTC
Im create VFS module (convert from Samba 2.2.x to Samba 3.0.28a) in 
2.2.x all work ok.
Client: Windows XP
Server: Ubuntu 8.04
VFS: Level mode as Transparent or Opaque...

Im have a problem:
When Im try delete file in Explorer
if Im not change directory after connect VFS get UNLINK command,
if I try change folder and try delete from it, VFS cannt get UNLINK 

Volker Lendecke>The problem is that the file is open twice in that smbd. And
Volker Lendecke>until the second handle is closed, the file won't be
Volker Lendecke>deleted.
Why it occurs? I did not open file. I try delete it only(
In logs, all open files have close operation.
And all right, I can see that, if I delete file when new smb session begin, file are deleted correct.

In log level 10 delete command getet by samba from client...
And after this, other operation in Explorer with this opened folder sad 
that "Access Denied"

Volker Lendecke>That's expected. You get a DELETE_PENDING until all handles
Volker Lendecke>are closed.

Is it bug or my config problem? (Global config default for Ubuntu 8.04)
Comment 1 Björn Jacke 2020-10-03 23:28:18 UTC
if you still see issues with with with recent versions, please file a new bug report for that.