Folder can be renamed with an open file inside the same folder from different client
realrichardsharpe at gmail.com
Tue Oct 1 14:40:16 MDT 2013
On Tue, Oct 1, 2013 at 11:57 AM, Volker Lendecke
<Volker.Lendecke at sernet.de> wrote:
> On Tue, Oct 01, 2013 at 07:01:26AM -0700, Richard Sharpe wrote:
>> On Tue, Oct 1, 2013 at 4:16 AM, Shilpa K <shilpa.krishnareddy at gmail.com> wrote:
>> > Hello,
>> > Renaming a folder succeeds in the following scenario when it should
>> > actually fail:
>> > 1. Client 1 has opened the file temp.doc which is present in the
>> > directory TESTDIR
>> > 2. Client 2 tries to rename the directory TESTDIR to DIR1 and it
>> > succeeds.
>> > On the other hand, if the windows client tries to rename a directory from
>> > client 2 wherein client 1 has opened a file under that directory, the
>> > operation results in access denied. Samba also sends access denied error
>> > when we try to rename the directory from the same client where the file is
>> > opened under it.
>> OK, this sounds like a bug. Please file a bug in bugzilla.samba.org.
> It is a bug. It's just really hard to fix efficiently given
> our inode-based databases.
Yes, I agree that it is hard to fix. Perhaps we should store these
things using a hash of the path with a second key being the hash of
the file name, or something like that.
More information about the samba-technical