locktype field in OP_LOCKU

J. Bruce Fields bfields at fieldses.org
Fri Jun 27 11:32:03 EDT 2008


On Fri, Jun 27, 2008 at 11:09:52AM +0200, DENIEL Philippe wrote:
> Hi,
> 
> regarding the LOCKU operation, I can find this in the RFC3530
> 
>        The LOCKU operation unlocks the record lock specified by the
>        parameters. The client may set the locktype field to any value that
>        is legal for the nfs_lock_type4 enumerated type, and the server MUST
>        accept any legal value for locktype. Any legal value for locktype has
>        no effect on the success or failure of the LOCKU operation.
> 
> In fact, it seems that whatever the value stored in locktype, there is 
> no actual impact on the success of failure of the operation. But this 
> field exists, so there is a reason for this.

I don't think so.

> What was it designed for ?

It may be just a mistake that wasn't discovered till after people
thought it was too late to change the xdr.

--b.


More information about the NFSv4 mailing list