Print this page
6198 Let's EOL cachefs

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/lvm/libmeta/common/meta_mount.c
          +++ new/usr/src/lib/lvm/libmeta/common/meta_mount.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   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  24   25   */
  25   26  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27   27  
  28   28  /*
  29   29   * return mount association with meta device
  30   30   */
  31   31  
  32   32  #include <meta.h>
  33   33  
  34   34  #include <sys/mnttab.h>
  35   35  
  36   36  #include "meta_lib_prv.h"
↓ open down ↓ 29 lines elided ↑ open up ↑
  66   66                  if ((m.mnt_special == NULL) || (m.mnt_mountp == NULL))
  67   67                          continue;
  68   68  
  69   69                  if (m.mnt_mountp[0] != '/')
  70   70                          continue;
  71   71  
  72   72                  if ((strcmp(m.mnt_fstype, "nfs") == 0) ||
  73   73                      (strcmp(m.mnt_fstype, "autofs") == 0) ||
  74   74                      (strcmp(m.mnt_fstype, "proc") == 0) ||
  75   75                      (strcmp(m.mnt_fstype, "tmpfs") == 0) ||
  76      -                    (strcmp(m.mnt_fstype, "cachefs") == 0) ||
  77   76                      (strcmp(m.mnt_fstype, "lofs") == 0) ||
  78   77                      (strcmp(m.mnt_fstype, "rfs") == 0) ||
  79   78                      (strcmp(m.mnt_fstype, "fd") == 0))
  80   79                          continue;
  81   80  
  82   81                  (void) strcpy(mnt_mountp, m.mnt_mountp);
  83   82                  (void) strcpy(mnt_special, m.mnt_special);
  84   83                  if ((mnp = metaname(&sp, mnt_special, UNKNOWN, ep)) == NULL) {
  85   84                          mdclrerror(ep);
  86   85                          continue;
  87   86                  }
  88   87  
  89   88                  if (np->dev == mnp->dev) {
  90   89                          mountp = mnt_mountp;
  91   90                  }
  92   91          }
  93   92  
  94   93          /* return success, if found */
  95   94          return (mountp? Strdup(mountp): NULL);
  96   95  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX