Print this page
11083 support NFS server in zone
Portions contributed by: Dan Kruchinin <dan.kruchinin@nexenta.com>
Portions contributed by: Stepan Zastupov <stepan.zastupov@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
Portions contributed by: Mike Zeller <mike@mikezeller.net>
Portions contributed by: Dan McDonald <danmcd@joyent.com>
Portions contributed by: Gordon Ross <gordon.w.ross@gmail.com>
Portions contributed by: Vitaliy Gusev <gusev.vitaliy@gmail.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Jason King <jbk@joyent.com>
Reviewed by: C Fraire <cfraire@me.com>
Change-Id: I22f289d357503f9b48a0bc2482cc4328a6d43d16


  56         int       dis_ressz;            /* size of results */
  57         void      (*dis_resfree)();     /* frees space allocated by proc */
  58         int       dis_flags;            /* flags, see below */
  59         void      *(*dis_getfh)();      /* returns the fhandle for the req */
  60 } rpcdisp_t;
  61 
  62 #define RPC_IDEMPOTENT  0x1     /* idempotent or not */
  63 /*
  64  * Be very careful about which NFS procedures get the RPC_ALLOWANON bit.
  65  * Right now, if this bit is on, we ignore the results of per NFS request
  66  * access control.
  67  */
  68 #define RPC_ALLOWANON   0x2     /* allow anonymous access */
  69 #define RPC_MAPRESP     0x4     /* use mapped response buffer */
  70 #define RPC_AVOIDWORK   0x8     /* do work avoidance for dups */
  71 #define RPC_PUBLICFH_OK 0x10    /* allow use of public filehandle */
  72 
  73 typedef struct rpc_disptable {
  74         int dis_nprocs;
  75         char **dis_procnames;
  76         kstat_named_t **dis_proccntp;
  77         struct rpcdisp *dis_table;
  78 } rpc_disptable_t;
  79 
  80 void    rpc_null(caddr_t *, caddr_t *, struct exportinfo *, struct svc_req *,
  81     cred_t *, bool_t);
  82 
  83 #ifdef  __cplusplus
  84 }
  85 #endif
  86 
  87 #endif /* _NFS_DISPATCH_H */


  56         int       dis_ressz;            /* size of results */
  57         void      (*dis_resfree)();     /* frees space allocated by proc */
  58         int       dis_flags;            /* flags, see below */
  59         void      *(*dis_getfh)();      /* returns the fhandle for the req */
  60 } rpcdisp_t;
  61 
  62 #define RPC_IDEMPOTENT  0x1     /* idempotent or not */
  63 /*
  64  * Be very careful about which NFS procedures get the RPC_ALLOWANON bit.
  65  * Right now, if this bit is on, we ignore the results of per NFS request
  66  * access control.
  67  */
  68 #define RPC_ALLOWANON   0x2     /* allow anonymous access */
  69 #define RPC_MAPRESP     0x4     /* use mapped response buffer */
  70 #define RPC_AVOIDWORK   0x8     /* do work avoidance for dups */
  71 #define RPC_PUBLICFH_OK 0x10    /* allow use of public filehandle */
  72 
  73 typedef struct rpc_disptable {
  74         int dis_nprocs;
  75         char **dis_procnames;

  76         struct rpcdisp *dis_table;
  77 } rpc_disptable_t;
  78 
  79 void    rpc_null(caddr_t *, caddr_t *, struct exportinfo *, struct svc_req *,
  80     cred_t *, bool_t);
  81 
  82 #ifdef  __cplusplus
  83 }
  84 #endif
  85 
  86 #endif /* _NFS_DISPATCH_H */