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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/nfs/nfs_log.h
          +++ new/usr/src/uts/common/nfs/nfs_log.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   * and limitations under the License.
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
       22 +
  22   23  /*
  23   24   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   25   * Use is subject to license terms.
  25   26   */
  26   27  
       28 +/*
       29 + * Copyright 2018 Nexenta Systems, Inc.
       30 + */
       31 +
  27   32  #ifndef _NFS_LOG_H
  28   33  #define _NFS_LOG_H
  29   34  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   35  #ifdef  __cplusplus
  33   36  extern "C" {
  34   37  #endif
  35   38  
  36   39  #include <nfs/nfs.h>
  37   40  #include <nfs/export.h>
  38   41  #include <rpc/rpc.h>
  39   42  
  40   43  #define LOG_MODE                0600    /* open log with these permissions */
  41   44  #define LOG_INPROG_STRING       "_log_in_process"
↓ open down ↓ 605 lines elided ↑ open up ↑
 647  650  
 648  651  extern void     nfslog_init();
 649  652  extern int      nfslog_setup(struct exportinfo *);
 650  653  extern void     nfslog_disable(struct exportinfo *);
 651  654  /*PRINTFLIKE2*/
 652  655  extern void     nfslog_dprint(const int, const char *fmt, ...)
 653  656          __KPRINTFLIKE(2);
 654  657  extern void     *nfslog_record_alloc(struct exportinfo *, int,
 655  658                  void **, int);
 656  659  extern void     nfslog_record_free(void *, void *, size_t);
 657      -extern struct   exportinfo *nfslog_get_exi(struct exportinfo *,
      660 +extern struct   exportinfo *nfslog_get_exi(nfs_export_t *, struct exportinfo *,
 658  661                  struct svc_req *, caddr_t, unsigned int *);
 659  662  extern void     nfslog_write_record(struct exportinfo *, struct svc_req *,
 660  663                  caddr_t, caddr_t, cred_t *, struct netbuf *, unsigned int,
 661  664                  unsigned int);
 662  665  
 663  666  extern struct log_buffer *nfslog_buffer_list;
 664  667  
 665  668  /*
 666  669   * Logging debug macro; expands to nothing for non-debug kernels.
 667  670   */
↓ open down ↓ 13 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX