diff options
author | Jeff Darcy <jdarcy@redhat.com> | 2014-04-28 14:18:50 +0000 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2014-04-28 14:18:50 +0000 |
commit | e139b4d0ba2286c0d4d44ba81260c2b287016019 (patch) | |
tree | 0a21f0761528e0f79da0a9f67106eb128ace0cf7 /rpc/xdr/src/nlm4.x | |
parent | 73b60c87ca7f62517a8466431f5a8cf167589c8c (diff) | |
parent | f2bac9f9d5b9956969ddd25a54bc636b82f6923e (diff) |
Conflicts:
rpc/xdr/src/glusterfs3-xdr.c
rpc/xdr/src/glusterfs3-xdr.h
xlators/features/changelog/src/Makefile.am
xlators/features/changelog/src/changelog-helpers.h
xlators/features/changelog/src/changelog.c
xlators/mgmt/glusterd/src/glusterd-sm.c
Change-Id: I9972a5e6184503477eb77a8b56c50a4db4eec3e2
Diffstat (limited to 'rpc/xdr/src/nlm4.x')
-rw-r--r-- | rpc/xdr/src/nlm4.x | 154 |
1 files changed, 0 insertions, 154 deletions
diff --git a/rpc/xdr/src/nlm4.x b/rpc/xdr/src/nlm4.x deleted file mode 100644 index e22ac99f2..000000000 --- a/rpc/xdr/src/nlm4.x +++ /dev/null @@ -1,154 +0,0 @@ -/* - Copyright (c) 2007-2012 Red Hat, Inc. <http://www.redhat.com> - This file is part of GlusterFS. - - This file is licensed to you under your choice of the GNU Lesser - General Public License, version 3 or any later version (LGPLv3 or - later), or the GNU General Public License, version 2 (GPLv2), in all - cases as published by the Free Software Foundation. -*/ - -/* .x file defined as according to the RFC */ - -const MAXNETOBJ_SZ = 1024; -const LM_MAXSTRLEN = 1024; -const MAXNAMELEN = 1025; - -typedef opaque netobj<MAXNETOBJ_SZ>; - -#ifdef RPC_HDR -%/* -% * The following enums are actually bit encoded for efficient -% * boolean algebra.... DON'T change them..... -% */ -#endif -enum fsh_mode { - fsm_DN = 0, /* deny none */ - fsm_DR = 1, /* deny read */ - fsm_DW = 2, /* deny write */ - fsm_DRW = 3 /* deny read/write */ -}; - -enum fsh_access { - fsa_NONE = 0, /* for completeness */ - fsa_R = 1, /* read only */ - fsa_W = 2, /* write only */ - fsa_RW = 3 /* read/write */ -}; - -#ifdef RPC_HDR -%/* definitions for NLM version 4 */ -#endif -enum nlm4_stats { - nlm4_granted = 0, - nlm4_denied = 1, - nlm4_denied_nolock = 2, - nlm4_blocked = 3, - nlm4_denied_grace_period = 4, - nlm4_deadlck = 5, - nlm4_rofs = 6, - nlm4_stale_fh = 7, - nlm4_fbig = 8, - nlm4_failed = 9 -}; - -struct nlm4_stat { - nlm4_stats stat; -}; - -struct nlm4_holder { - bool exclusive; - u_int32_t svid; - netobj oh; - u_int64_t l_offset; - u_int64_t l_len; -}; - -struct nlm4_lock { - string caller_name<LM_MAXSTRLEN>; - netobj fh; - netobj oh; - u_int32_t svid; - u_int64_t l_offset; - u_int64_t l_len; -}; - -struct nlm4_share { - string caller_name<LM_MAXSTRLEN>; - netobj fh; - netobj oh; - fsh_mode mode; - fsh_access access; -}; - -union nlm4_testrply switch (nlm4_stats stat) { - case nlm_denied: - struct nlm4_holder holder; - default: - void; -}; - -struct nlm4_testres { - netobj cookie; - nlm4_testrply stat; -}; - -struct nlm4_testargs { - netobj cookie; - bool exclusive; - struct nlm4_lock alock; -}; - -struct nlm4_res { - netobj cookie; - nlm4_stat stat; -}; - -struct nlm4_lockargs { - netobj cookie; - bool block; - bool exclusive; - struct nlm4_lock alock; - bool reclaim; /* used for recovering locks */ - int state; /* specify local status monitor state */ -}; - -struct nlm4_cancargs { - netobj cookie; - bool block; - bool exclusive; - struct nlm4_lock alock; -}; - -struct nlm4_unlockargs { - netobj cookie; - struct nlm4_lock alock; -}; - -struct nlm4_shareargs { - netobj cookie; - nlm4_share share; - bool reclaim; -}; - -struct nlm4_shareres { - netobj cookie; - nlm4_stats stat; - int sequence; -}; - -struct nlm4_freeallargs { - string name<LM_MAXSTRLEN>; /* client hostname */ - uint32 state; /* unused */ -}; - -/* - * argument for the procedure called by rpc.statd when a monitored host - * status change. - * XXX assumes LM_MAXSTRLEN == SM_MAXSTRLEN - */ -struct nlm_sm_status { - string mon_name<LM_MAXSTRLEN>; /* name of host */ - int state; /* new state */ - opaque priv[16]; /* private data */ -}; |