Print this page
5861 clean up obsolete init scripts

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 ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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      - * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       24 + * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  25   25   */
  26   26  
  27   27  /*
  28   28   * NFS specific functions
  29   29   */
  30   30  #include <stdio.h>
  31   31  #include <string.h>
  32   32  #include <ctype.h>
  33   33  #include <stdlib.h>
  34   34  #include <unistd.h>
↓ open down ↓ 1855 lines elided ↑ open up ↑
1890 1890                          sp[i].s_rootnames = NULL;
1891 1891                          (void) fill_security_from_secopts(&sp[i], sec);
1892 1892                          if (sec != NULL)
1893 1893                                  sa_free_derived_security(sec);
1894 1894                          if (sectype != NULL)
1895 1895                                  sa_free_attr_string(sectype);
1896 1896                  }
1897 1897          }
1898 1898          /*
1899 1899           * when we get here, we can do the exportfs system call and
1900      -         * initiate things. We probably want to enable the nfs.server
1901      -         * service first if it isn't running within SMF.
     1900 +         * initiate things. We probably want to enable the
     1901 +         * svc:/network/nfs/server service first if it isn't running.
1902 1902           */
1903      -        /* check nfs.server status and start if needed */
     1903 +        /* check svc:/network/nfs/server status and start if needed */
1904 1904          /* now add the share to the internal tables */
1905 1905          printarg(path, &export);
1906 1906          /*
1907 1907           * call the exportfs system call which is implemented
1908 1908           * via the nfssys() call as the EXPORTFS subfunction.
1909 1909           */
1910 1910          if (iszfs) {
1911 1911                  struct exportfs_args ea;
1912 1912                  share_t sh;
1913 1913                  char *str;
↓ open down ↓ 1303 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX