1 Mar 2012 01:25
Re: layout return - final update ?
Marc Eshel <eshel <at> almaden.ibm.com>
2012-03-01 00:25:35 GMT
2012-03-01 00:25:35 GMT
Lets try to keep it simple. Can we agree that once the server returns a layout with return_on_closed == true for a file A (what ever way it is represented) to client B the serve will be allowed to invalidate the layouts on the last close of file A by client B. If you disagree please propose a clear and complete alternative. Marc. From: Rick Macklem <rmacklem <at> uoguelph.ca> To: Trond Myklebust <Trond.Myklebust <at> netapp.com> Cc: eshel <at> almaden.ibm.com, nfsv4 <at> ietf.org, david noveck <david.noveck <at> emc.com> Date: 02/29/2012 03:48 PM Subject: Re: [nfsv4] layout return - final update ? Trond Myklebust wrote: > On Wed, 2012-02-29 at 15:30 -0500, david.noveck <at> emc.com wrote: > > > Previously what we discussed was the last CLOSE for the > > > file/client > > pair. > > > > > > OK, but the proposed text you supplied is not clear on that point. > > > > > > > That said, I'm not sure about multiple filehandles representing > > > the(Continue reading)
Rick Macklem <rmacklem <at> uoguelph.ca> wrote:
Trond Myklebust wrote:
> On Feb 29, 2012, at 6:47 PM, Rick Macklem wrote:
>
> > Trond Myklebust wrote:
> >> On Wed, 2012-02-29 at 15:30 -0500, david.noveck <at> emc.com wrote:
> >>>> Previously what we discussed was the last CLOSE for the
> >>>> file/client
> >>> pair.
> >>>
> >>>
> >>> OK, but the proposed text you supplied is not clear on that point.
> >>>
> >>>
> >>>> That said, I'm not sure about multiple filehandles representing
> >>>> the
> >>> same file.
> >>>
> >>> Another issue that needs to be clarified in the text.
> >>
> >> We should do the same as we do for other state: LAYOUTs for
> >> different
> >> filehandles should be represented by different stateids and should
> >> not
> >> be combined.
> >>
> >> IOW: since you can't choose to CLOSE the file using either
Anyhow, given that all layout operations, as well as CLOSE, are done on a filehandle
we can safely refer to the filehandle as representing the file. Different filehandle
may represent the same inode (fsid:fileid) on the server but they'll be associated
with separate layout states.
> *> This approach seems valid but it complicates the case of layouts not marked as return_on_close that
survived a previous last CLOSE as these will not be affected now.*
>
> If we are talking about layout not marked return-on-close that were sent before the first
return-on-close layout, then I think that the text you proposed is exactly the same in this respect. Or am I
missing something here?
>
>
> *> Since we are talking about losing the layout on the last CLOSE from the client of that file a catch all
approach would be simpler.*
>
> I'm not sure that that is so. First of all, it is very natural/required for clients and servers to have data
structures representing open files, and linking return-on-close layout to these seems relatively
RSS Feed