Print this page
7569 statd support to run on a fixed port
Portions contributed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
7577 mountd support to run on a fixed port
Portions contributed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libshare/nfs/libshare_nfs.c
          +++ new/usr/src/lib/libshare/nfs/libshare_nfs.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2016 Nexenta Systems, Inc.
       25 + * Copyright (c) 2014, 2016 by Delphix. All rights reserved.
  25   26   */
  26   27  
  27   28  /*
  28   29   * NFS specific functions
  29   30   */
  30   31  #include <stdio.h>
  31   32  #include <string.h>
  32   33  #include <ctype.h>
  33   34  #include <stdlib.h>
  34   35  #include <unistd.h>
↓ open down ↓ 2520 lines elided ↑ open up ↑
2555 2556              "device", PROTO_OPT_NFSD_DEVICE,
2556 2557              OPT_TYPE_STRING, NULL, SVC_NFSD, 0, 0},
2557 2558  #define PROTO_OPT_MOUNTD_LISTEN_BACKLOG         15
2558 2559          {"mountd_listen_backlog",
2559 2560              "mountd_listen_backlog", PROTO_OPT_MOUNTD_LISTEN_BACKLOG,
2560 2561              OPT_TYPE_NUMBER, 64, SVC_NFSD|SVC_MOUNTD, 1, INT32_MAX},
2561 2562  #define PROTO_OPT_MOUNTD_MAX_THREADS            16
2562 2563          {"mountd_max_threads",
2563 2564              "mountd_max_threads", PROTO_OPT_MOUNTD_MAX_THREADS,
2564 2565              OPT_TYPE_NUMBER, 16, SVC_NFSD|SVC_MOUNTD, 1, INT32_MAX},
     2566 +#define PROTO_OPT_MOUNTD_PORT                   17
     2567 +        {"mountd_port",
     2568 +            "mountd_port", PROTO_OPT_MOUNTD_PORT,
     2569 +            OPT_TYPE_NUMBER, 0, SVC_MOUNTD, 1, UINT16_MAX},
     2570 +#define PROTO_OPT_STATD_PORT                    18
     2571 +        {"statd_port",
     2572 +            "statd_port", PROTO_OPT_STATD_PORT,
     2573 +            OPT_TYPE_NUMBER, 0, SVC_STATD, 1, UINT16_MAX},
2565 2574          {NULL}
2566 2575  };
2567 2576  
2568 2577  /*
2569 2578   * the protoset holds the defined options so we don't have to read
2570 2579   * them multiple times
2571 2580   */
2572 2581  static sa_protocol_properties_t protoset;
2573 2582  
2574 2583  static int
↓ open down ↓ 659 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX