From: Ronnie Sahlberg Date: Sat, 10 Mar 2012 11:19:06 +0000 (+1100) Subject: NLM the cookie is always present in NLM replies and it is the first blob X-Git-Tag: upstream/1.9.6^2~260 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2faefcac23a1e1d5c600688a87753aae8cab2f14;p=deb_libnfs.git NLM the cookie is always present in NLM replies and it is the first blob --- diff --git a/nlm/nlm.x b/nlm/nlm.x index e8a2880..fb0d061 100644 --- a/nlm/nlm.x +++ b/nlm/nlm.x @@ -51,18 +51,22 @@ struct nlm4_share { }; -struct nlm4_testres_ok { - nlm_cookie cookie; +struct nlm4_testres_denied { nlm4_holder holder; }; -union NLM4_TESTres switch (nlmstat4 status) { - case NLM4_GRANTED: - nlm4_testres_ok lock; +union nlm4_testreply switch (nlmstat4 status) { + case NLM4_DENIED: + nlm4_testres_denied lock; default: void; }; +struct NLM4_TESTres { + nlm_cookie cookie; + nlm4_testreply reply; +}; + struct NLM4_TESTargs { nlm_cookie cookie; bool exclusive;