Folder can be renamed with an open file inside the same folder from different client
parthasarathi.bl at gmail.com
Wed Oct 2 07:12:08 MDT 2013
For the delete operations in the above scenario we do get the access
denied, in that case we are storing the opened file information and if the
other client tries to delete the file then we say' its been used by other
user' and we deny to delete. So may be we can use of the same mechanism for
rename operations too.
On Wed, Oct 2, 2013 at 2:10 AM, Richard Sharpe
<realrichardsharpe at gmail.com>wrote:
> 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>
> >> > 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
> >> > client 2 wherein client 1 has opened a file under that directory, the
> >> > operation results in access denied. Samba also sends access denied
> >> > 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.
> Richard Sharpe
Thanks & Regards
More information about the samba-technical