]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd4: store correct client minorversion for >=4.2
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 7 May 2013 15:57:52 +0000 (11:57 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 13 May 2013 14:11:45 +0000 (10:11 -0400)
commit6fd3f7a2b0b096face704312d788269e40a698ba
tree813343718bf8df56efbef3f30313f55ccfad3e7b
parentb14e6629275ef4268027c46df1490ffea419a1b8
nfsd4: store correct client minorversion for >=4.2

This code assumes that any client using exchange_id is using NFSv4.1,
but with the introduction of 4.2 that will no longer true.

This main effect of this is that client callbacks will use the same
minorversion as that used on the exchange_id.

Note that clients are forbidden from mixing 4.1 and 4.2 compounds.  (See
rfc 5661, section 2.7, #13: "A client MUST NOT attempt to use a stateid,
filehandle, or similar returned object from the COMPOUND procedure with
minor version X for another COMPOUND procedure with minor version Y,
where X != Y.")  However, we do not currently attempt to enforce this
except in the case of mixing zero minor version with non-zero minor
versions.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c