Print this page
6198 Let's EOL cachefs

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzonecfg/common/libzonecfg.c
          +++ new/usr/src/lib/libzonecfg/common/libzonecfg.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 2014 Gary Mills
  24   24   * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
       25 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  25   26   */
  26   27  
  27   28  #include <libsysevent.h>
  28   29  #include <pthread.h>
  29   30  #include <stdlib.h>
  30   31  #include <errno.h>
  31   32  #include <fnmatch.h>
  32   33  #include <strings.h>
  33   34  #include <unistd.h>
  34   35  #include <assert.h>
↓ open down ↓ 5775 lines elided ↑ open up ↑
5810 5811   */
5811 5812  boolean_t
5812 5813  zonecfg_valid_fs_type(const char *type)
5813 5814  {
5814 5815          /*
5815 5816           * We already know which FS types don't work.
5816 5817           */
5817 5818          if (strcmp(type, "proc") == 0 ||
5818 5819              strcmp(type, "mntfs") == 0 ||
5819 5820              strcmp(type, "autofs") == 0 ||
5820      -            strncmp(type, "nfs", sizeof ("nfs") - 1) == 0 ||
5821      -            strcmp(type, "cachefs") == 0)
     5821 +            strncmp(type, "nfs", sizeof ("nfs") - 1) == 0)
5822 5822                  return (B_FALSE);
5823 5823          /*
5824 5824           * The caller may do more detailed verification to make sure other
5825 5825           * aspects of this filesystem type make sense.
5826 5826           */
5827 5827          return (B_TRUE);
5828 5828  }
5829 5829  
5830 5830  /*
5831 5831   * Generally uninteresting rctl convenience functions.
↓ open down ↓ 2234 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX