]> Git Repo - linux.git/commit
NFSv4.2: Fix detection of "Proxying of Times" server support
authorRoi Azarzar <[email protected]>
Sun, 15 Sep 2024 10:27:35 +0000 (10:27 +0000)
committerAnna Schumaker <[email protected]>
Mon, 23 Sep 2024 19:03:13 +0000 (15:03 -0400)
commit615e693b14ba22e1332c3bd5a4e038284bbc3e07
treecb634dba4aa86ae95a28352d583af635f033d7f0
parentaf94dca79b1296a6db7b8b47cd43be8e94fce8bb
NFSv4.2: Fix detection of "Proxying of Times" server support

According to draft-ietf-nfsv4-delstid-07:
   If a server informs the client via the fattr4_open_arguments
   attribute that it supports
   OPEN_ARGS_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS and it returns a valid
   delegation stateid for an OPEN operation which sets the
   OPEN4_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS flag, then it MUST query the
   client via a CB_GETATTR for the fattr4_time_deleg_access (see
   Section 5.2) attribute and fattr4_time_deleg_modify attribute (see
   Section 5.2).

Thus, we should look that the server supports proxying of times via
OPEN4_SHARE_ACCESS_WANT_DELEG_TIMESTAMPS.

We want to be extra pedantic and continue to check that FATTR4_TIME_DELEG_ACCESS
and FATTR4_TIME_DELEG_MODIFY are set. The server needs to expose both for the
client to correctly detect "Proxying of Times" support.

Signed-off-by: Roi Azarzar <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Fixes: dcb3c20f7419 ("NFSv4: Add a capability for delegated attributes")
Signed-off-by: Anna Schumaker <[email protected]>
fs/nfs/nfs4proc.c
This page took 0.043563 seconds and 4 git commands to generate.