Skip to content

Instantly share code, notes, and snippets.

@cholcombe973
Created May 17, 2016 16:32
Show Gist options
  • Save cholcombe973/96ced58add90320b740123b5c066740d to your computer and use it in GitHub Desktop.
Save cholcombe973/96ced58add90320b740123b5c066740d to your computer and use it in GitHub Desktop.
/* This file has definition of few XDR structures which are
* not captured in any section specific file */
typedef unsigned hyper u_quad_t;
struct auth_glusterfs_parms_v2 {
int pid;
unsigned int uid;
unsigned int gid;
unsigned int groups<>;
opaque lk_owner<>;
};
struct auth_glusterfs_parms {
hyper lk_owner;
unsigned int pid;
unsigned int uid;
unsigned int gid;
unsigned int ngrps;
unsigned int groups[16];
};
struct gf_dump_req {
hyper gfs_id;
};
struct gf_prog_detail {
string progname<>;
hyper prognum;
hyper progver;
gf_prog_detail *next;
};
struct gf_dump_rsp {
hyper gfs_id;
int op_ret;
int op_errno;
gf_prog_detail *prog;
};
struct gf_common_rsp {
int op_ret;
int op_errno;
opaque xdata<>; /* Extra data */
} ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment