repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NLM : add raw function for NLM4 CANCEL
[deb_libnfs.git]
/
nlm
/
nlm.x
diff --git
a/nlm/nlm.x
b/nlm/nlm.x
index ee86df5f4626f32a6a009995a0a09a4d2bfed0c5..bcbed9cfe96574eccae2f4eb25686f3a1954cdb8 100644
(file)
--- a/
nlm/nlm.x
+++ b/
nlm/nlm.x
@@
-1,7
+1,15
@@
/* based on rfc1813 and wireshark */
/* based on rfc1813 and wireshark */
-const COOKIESIZE = 4;
-typedef opaque nlm_cookie[COOKIESIZE];
+
+struct nlm_fh4 {
+ opaque data<>;
+};
+
+typedef string nlm4_oh<>;
+
+struct nlm_cookie {
+ opaque data<>;
+};
enum nlmstat4 {
NLM4_GRANTED = 0,
enum nlmstat4 {
NLM4_GRANTED = 0,
@@
-17,63
+25,78
@@
enum nlmstat4 {
};
struct nlm4_holder {
};
struct nlm4_holder {
- bool exclusive;
- unsigned int svid;
- n
etobj
oh;
+ bool
exclusive;
+ unsigned int
svid;
+ n
lm4_oh
oh;
unsigned hyper l_offset;
unsigned hyper l_len;
};
const NLM_MAXNAME = 256;
struct nlm4_lock {
unsigned hyper l_offset;
unsigned hyper l_len;
};
const NLM_MAXNAME = 256;
struct nlm4_lock {
- string caller_name<NLM_MAXNAME>;
-
netobj
fh;
- n
etobj
oh;
- unsigned int svid;
+ string
caller_name<NLM_MAXNAME>;
+
struct nlm_fh4
fh;
+ n
lm4_oh
oh;
+ unsigned int
svid;
unsigned hyper l_offset;
unsigned hyper l_len;
};
struct nlm4_share {
unsigned hyper l_offset;
unsigned hyper l_len;
};
struct nlm4_share {
- string caller_name<NLM_MAXNAME>;
-
netobj
fh;
- n
etobj
oh;
- unsigned int mode;
- unsigned int access;
+ string
caller_name<NLM_MAXNAME>;
+
struct nlm_fh4
fh;
+ n
lm4_oh
oh;
+ unsigned int
mode;
+ unsigned int
access;
};
};
-
-struct nlm4_testres_ok {
- nlm_cookie cookie;
+struct nlm4_testres_denied {
nlm4_holder holder;
};
nlm4_holder holder;
};
-union nlm4_testre
s switch (nlmstat4 nlm_
status) {
- case NLM4_
GRANT
ED:
- nlm4_testres_
ok
lock;
+union nlm4_testre
ply switch (nlmstat4
status) {
+ case NLM4_
DENI
ED:
+ nlm4_testres_
denied
lock;
default:
void;
};
default:
void;
};
-struct nlm4_testargs {
+struct NLM4_TESTres {
+ nlm_cookie cookie;
+ nlm4_testreply reply;
+};
+
+struct NLM4_TESTargs {
nlm_cookie cookie;
bool exclusive;
nlm4_lock lock;
};
nlm_cookie cookie;
bool exclusive;
nlm4_lock lock;
};
+struct NLM4_CANCres {
+ nlm_cookie cookie;
+ nlmstat4 status;
+};
+
+struct NLM4_CANCargs {
+ nlm_cookie cookie;
+ bool block;
+ bool exclusive;
+ nlm4_lock lock;
+};
+
program NLM_PROGRAM {
version NLM_V4 {
void
NLM4_NULL(void) = 0;
program NLM_PROGRAM {
version NLM_V4 {
void
NLM4_NULL(void) = 0;
-
nlm4_test
res
- NLM4_TEST(
nlm4_test
args) = 1;
+
NLM4_TEST
res
+ NLM4_TEST(
NLM4_TEST
args) = 1;
/* nlm4_res */
/* NLM4_LOCK(nlm4_lockargs) = 2; */
/* nlm4_res */
/* NLM4_LOCK(nlm4_lockargs) = 2; */
-/* nlm4_res */
-/* NLM4_CANCEL(nlm4_cancargs) = 3; */
+ NLM4_CANCres
+ NLM4_CANCEL(NLM4_CANCargs) = 3;
/* nlm4_res */
/* NLM4_UNLOCK(nlm4_unlockargs) = 4; */
/* nlm4_res */
/* NLM4_UNLOCK(nlm4_unlockargs) = 4; */
@@
-81,14
+104,14
@@
program NLM_PROGRAM {
/* nlm4_res */
/* NLM4_GRANTED(nlm4_testargs) = 5; */
/* nlm4_res */
/* NLM4_GRANTED(nlm4_testargs) = 5; */
-/* void */
-/* NLM4_TEST_MSG(nlm4_testargs) = 6; */
+ void
+ NLM4_TEST_MSG(NLM4_TESTargs) = 6;
/* void */
/* NLM4_LOCK_MSG(nlm4_lockargs) = 7; */
/* void */
/* NLM4_LOCK_MSG(nlm4_lockargs) = 7; */
-/* void */
-/* NLM4_CANCEL_MSG(nlm4_cancargs) = 8; */
+ void
+ NLM4_CANCEL_MSG(NLM4_CANCargs) = 8;
/* void */
/* NLM4_UNLOCK_MSG(nlm4_unlockargs) = 9; */
/* void */
/* NLM4_UNLOCK_MSG(nlm4_unlockargs) = 9; */
@@
-96,14
+119,14
@@
program NLM_PROGRAM {
/* void */
/* NLM4_GRANTED_MSG(nlm4_testargs) = 10; */
/* void */
/* NLM4_GRANTED_MSG(nlm4_testargs) = 10; */
-/* void */
-/* NLM4_TEST_RES(nlm4_testres) = 11; */
+ void
+ NLM4_TEST_RES(NLM4_TESTres) = 11;
/* void */
/* NLM4_LOCK_RES(nlm4_res) = 12; */
/* void */
/* NLM4_LOCK_RES(nlm4_res) = 12; */
-/* void */
-/* NLM4_CANCEL_RES(nlm4_res) = 13; */
+ void
+ NLM4_CANCEL_RES(NLM4_CANCres) = 13;
/* void */
/* NLM4_UNLOCK_RES(nlm4_res) = 14; */
/* void */
/* NLM4_UNLOCK_RES(nlm4_res) = 14; */