rename parent directory and v2 lease breaks

Ralph Böhme rb at sernet.de
Fri Mar 6 23:32:53 MST 2015


On Fri, Mar 06, 2015 at 08:41:36PM -0600, Steve French wrote:
> On Wed, Mar 4, 2015 at 2:08 AM, Ralph Böhme <rb at sernet.de> wrote:
> 
> > On Wed, Mar 04, 2015 at 06:54:26AM +0100, Volker Lendecke wrote:
> > > On Tue, Mar 03, 2015 at 02:41:31PM -0600, Steve French wrote:
> > > > I was testing Samba 4.2 and noticed that renaming the parent directory
> > > > did not trigger a v2 lease break for files opened in that directory
> > > > (it looks like Windows does send one though).
> > > >
> > > > Shouldn't rename of the parent directory trigger a lease break for
> > > > open files in the directory?
> > >
> > > Yes, it should.
> >
> > Hm, I fail to find this in the doc, the only applicable rule I see is:
> >
> > * If Open.File.FileType is DirectoryFile, determine whether Open.File
> >   contains open files ...
> >
> > * If Open.File contains open files, the operation MUST be failed with
> >   STATUS_ACCESS_DENIED
> >
> > in MS-FSA 2.1.5.14.11. The pseudocode algo doesn't mention any lease
> > break triggering. Am I missing anything? Is this missing in the doc?
> >
> > See 3.3.1.4 of MS-SMB2
> 
> HANDLE caching permits one or more SMB2 clients to delay closing handles it
> holds open, or to defer sending opens. Before processing one of the
> following operations, the underlying
> object store MUST request that the server revoke HANDLE caching, and the
> object store MUST wait for acknowledgment before proceeding with the
> operation:
> HANDLE caching on a file:
>  A file is opened with an access or share mode incompatible with opens
> from different
> ClientIds or local applications as described in [MS-FSA] section 2.1.5.1.2.
>  The parent directory is being renamed.

ah, thanks!

-Ralph

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de


More information about the samba-technical mailing list