[PATCH pynfs 10/13] nfs4.1: fix COPY_NOTIFY args union arm name in XDR
Jeff Layton <[email protected]>
| Newsgroups | gmane.linux.nfs |
|---|---|
| Message-ID | <[email protected]> |
The nfs_argop4 union arm for OP_COPY_NOTIFY was named opoffload_notify, but nfs_ops derives the argop keyword from the operation name and so looks for opcopy_notify (which is also the name of the COPY_NOTIFY4res arm). Because of the mismatch, op.copy_notify() raised TypeError and the operation could not be constructed at all. Rename the arm to opcopy_notify to match, enabling op.copy_notify(). Signed-off-by: Jeff Layton <[email protected]> --- nfs4.1/xdrdef/nfs4.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfs4.1/xdrdef/nfs4.x b/nfs4.1/xdrdef/nfs4.x index f03eb538a298..e836aa684f9b 100644 --- a/nfs4.1/xdrdef/nfs4.x +++ b/nfs4.1/xdrdef/nfs4.x @@ -3346,7 +3346,7 @@ union nfs_argop4 switch (nfs_opnum4 argop) { /* Operations new to NFSv4.2 */ case OP_ALLOCATE: ALLOCATE4args opallocate; case OP_COPY: COPY4args opcopy; - case OP_COPY_NOTIFY: COPY_NOTIFY4args opoffload_notify; + case OP_COPY_NOTIFY: COPY_NOTIFY4args opcopy_notify; case OP_DEALLOCATE: DEALLOCATE4args opdeallocate; case OP_IO_ADVISE: IO_ADVISE4args opio_advise; case OP_LAYOUTERROR: LAYOUTERROR4args oplayouterror; -- 2.55.0