Skip to content

Commit

Permalink
lockd: Fix comment about NLMv3 backwards compatibility
Browse files Browse the repository at this point in the history
NLMv2 is completely different protocol than NLMv1 and NLMv3, and in
original Sun implementation is used for RPC loopback callbacks from statd
to lockd services. Linux does not use nor does not implement NLMv2.

Hence, NLMv3 is not backward compatible with NLMv2. But NLMv3 is backward
compatible with NLMv1. Fix comment.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
  • Loading branch information
Pali Rohár authored and Chuck Lever committed Nov 19, 2024
1 parent b9376c7 commit 2dc84a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/lockd/clntxdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
/*
* linux/fs/lockd/clntxdr.c
*
* XDR functions to encode/decode NLM version 3 RPC arguments and results.
* NLM version 3 is backwards compatible with NLM versions 1 and 2.
* XDR functions to encode/decode NLM version 1 and 3 RPC
* arguments and results. NLM version 2 is not specified
* by a standard, thus it is not implemented.
*
* NLM client-side only.
*
Expand Down

0 comments on commit 2dc84a7

Please sign in to comment.