The last few sentences seem to be written assuming that that three will be only one
open file per fh/client pair. It seem that it says that if owner A opens a file and
Gets some layouts, then of owner B opens the same file then all the layout he gets should be
marked logr_return_on_close. Is that what is intended? And if so, when should
these be invalidated. On the first close, which the text seems to suggest? I think the
right direction, not having thought about it terribly much, is that logr_return_on_close
layouts are open-file-associated and if that is something that you can agree with, you
would b better off if the text said that explicitly.
From: nfsv4-bounces@... [mailto:nfsv4-bounces@...] On Behalf Of Marc Eshel
Sent: Tuesday, February 28, 2012 4:39 PM
Subject: [nfsv4] layout return - final update ?
Hopefully the final correction to the logr_return_on_close result field in
18.43.3 that should go into v4.1 errata.
section 18.43.3 say:
The logr_return_on_close result field is a directive to return the layout
before closing the file. When the metadata server sets this return value
to TRUE, it MUST be prepared to recall the layout in the case in which the
client fails to return the layout before close. For the metadata server
that knows a layout must be returned before a close of the file, this
return value can be used to communicate the desired behavior to the client
and thus remove one extra step from the client's and metadata server's
it should say:
The logr_return_on_close result field is a directive to return or forget
the layout before closing the file . When the metadata server sets this
return value to TRUE, the client MUST NOT use the layout after sending
the last CLOSE of that file. Any outstanding COMMIT to the data servers
or LAYOUTCOMMIT to the metadata server MUST be sent prior to closing the
file. This return value is used to communicate to the client that any
layout or segment of a layout that were given with logr_return_on_close
set to TRUE will result in the server invalidating all layouts of
layouttype4 of loga_layout_type for the file after it was closed. Once
the server returns logr_return_on_close set to TRUE to a client for a
given file it MUST set logr_return_on_close to TRUE for all subsequent
layouts or segments of layoutype4 of the respective loga_layout_type for
that file and client until that file is closed.
This directive will remove one or more extra steps from the client's and
metadata server's interaction.