]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Correct size calculation for create reply length
authorFrank Sorenson <sorenson@redhat.com>
Mon, 8 Mar 2021 18:12:13 +0000 (12:12 -0600)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Mar 2021 18:40:12 +0000 (13:40 -0500)
commit0cd8144dc45d78f08e47b6cbe507f92a65791dec
treeff0e47993c212c64c296eea96f00fb8fe02b085e
parent63f6e1e770b8b500142872b5e9074c571557a612
NFS: Correct size calculation for create reply length

CREATE requests return a post_op_fh3, rather than nfs_fh3. The
post_op_fh3 includes an extra word to indicate 'handle_follows'.

Without that additional word, create fails when full 64-byte
filehandles are in use.

Add NFS3_post_op_fh_sz, and correct the size calculation for
NFS3_createres_sz.

Signed-off-by: Frank Sorenson <sorenson@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs3xdr.c