"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/rpc/xdr/src/rpc-common-xdr.x" (16 Sep 2020, 1368 Bytes) of package /linux/misc/glusterfs-8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Copyright (c) 2012 Red Hat, Inc. <http://www.redhat.com>
    3  * This file is part of GlusterFS.
    4  *
    5  * This file is licensed to you under your choice of the GNU Lesser
    6  * General Public License, version 3 or any later version (LGPLv3 or
    7  * later), or the GNU General Public License, version 2 (GPLv2), in all
    8  * cases as published by the Free Software Foundation.
    9  */
   10 
   11 #ifdef RPC_XDR
   12 %#include "rpc-pragmas.h"
   13 #endif
   14 %#include <glusterfs/glusterfs-fops.h>
   15 
   16 /* This file has definition of few XDR structures which are
   17  * not captured in any section specific file */
   18 
   19 %#include "xdr-common.h"
   20 
   21 struct auth_glusterfs_parms_v2 {
   22         int pid;
   23         unsigned int uid;
   24         unsigned int gid;
   25         unsigned int groups<>;
   26         opaque lk_owner<>;
   27 };
   28 
   29 struct auth_glusterfs_parms {
   30         u_quad_t lk_owner;
   31         unsigned int pid;
   32         unsigned int uid;
   33     unsigned int gid;
   34     unsigned int ngrps;
   35     unsigned groups[16];
   36 };
   37 
   38 struct gf_dump_req {
   39     u_quad_t gfs_id;
   40 };
   41 
   42 struct gf_statedump {
   43     unsigned int pid;
   44 };
   45 
   46 struct gf_prog_detail {
   47     string progname<>;
   48     u_quad_t prognum;
   49     u_quad_t progver;
   50     struct gf_prog_detail *next;
   51 };
   52 
   53 
   54 struct gf_dump_rsp {
   55         u_quad_t gfs_id;
   56         int op_ret;
   57     int op_errno;
   58     struct gf_prog_detail *prog;
   59 };
   60 
   61 
   62 struct gf_common_rsp {
   63        int    op_ret;
   64        int    op_errno;
   65        opaque   xdata<>; /* Extra data */
   66 } ;