From f0669d6c9e71dffa3f4104a202e3e1046c64021c Mon Sep 17 00:00:00 2001 From: alfred Date: Tue, 17 Apr 2001 20:45:23 +0000 Subject: Implement client side NFS locks. Obtained from: BSD/os Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org --- include/rpcsvc/nlm_prot.x | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/rpcsvc') diff --git a/include/rpcsvc/nlm_prot.x b/include/rpcsvc/nlm_prot.x index ba0ccf3..1f5722e 100644 --- a/include/rpcsvc/nlm_prot.x +++ b/include/rpcsvc/nlm_prot.x @@ -27,7 +27,8 @@ enum nlm_stats { nlm_denied = 1, nlm_denied_nolocks = 2, nlm_blocked = 3, - nlm_denied_grace_period = 4 + nlm_denied_grace_period = 4, + nlm_deadlck = 5 }; struct nlm_holder { @@ -147,7 +148,7 @@ struct nlm_notify { enum nlm4_stats { nlm4_granted = 0, nlm4_denied = 1, - nlm4_denied_nolock = 2, + nlm4_denied_nolocks = 2, nlm4_blocked = 3, nlm4_denied_grace_period = 4, nlm4_deadlck = 5, @@ -253,11 +254,17 @@ struct nlm_sm_status { opaque priv[16]; /* private data */ }; +struct nlm4_notify { + string name; + int32_t state; +}; + /* * Over-the-wire protocol used between the network lock managers */ program NLM_PROG { + version NLM_SM { void NLM_SM_NOTIFY(struct nlm_sm_status) = 1; } = 0; @@ -316,6 +323,6 @@ program NLM_PROG { nlm4_shareres NLM4_SHARE(nlm4_shareargs) = 20; nlm4_shareres NLM4_UNSHARE(nlm4_shareargs) = 21; nlm4_res NLM4_NM_LOCK(nlm4_lockargs) = 22; - void NLM4_FREE_ALL(nlm_notify) = 23; + void NLM4_FREE_ALL(nlm4_notify) = 23; } = 4; } = 100021; -- cgit v1.1