Print this page
6198 Let's EOL cachefs

@@ -25,11 +25,11 @@
 /*
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 /*
- * Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  */
 
 #include        <stdio.h>
 #include        <stdio_ext.h>
 #include        <limits.h>

@@ -137,19 +137,10 @@
 int     lofsfail;               /* count of failures of lofs mounts */
 int     exitcode;
 int     aflg, cflg, fflg, Fflg, gflg, oflg, pflg, rflg, vflg, Vflg, mflg, Oflg,
         dashflg, questflg, dflg, qflg;
 
-/*
- * Currently, mounting cachefs instances simultaneously uncovers various
- * problems.  For the short term, we serialize cachefs activity while we fix
- * these cachefs bugs.
- */
-#define CACHEFS_BUG
-#ifdef  CACHEFS_BUG
-int     cachefs_running;        /* parallel cachefs not supported yet */
-#endif
 
 /*
  * Each vfsent_t describes a vfstab entry.  It is used to manage and cleanup
  * each child that performs the particular mount for the entry.
  */

@@ -1293,19 +1284,10 @@
                         ;
 
                 while (nrun >= maxrun && (dowait() != -1))      /* throttle */
                         ;
 
-#ifdef  CACHEFS_BUG
-                if (vp->v.vfs_fstype &&
-                    (strcmp(vp->v.vfs_fstype, "cachefs") == 0)) {
-                        while (cachefs_running && (dowait() != -1))
-                                ;
-                        cachefs_running = 1;
-                }
-#endif
-
                 if ((child = fork()) == -1) {
                         perror("fork");
                         cleanup(-1);
                         /* not reached */
                 }

@@ -1472,15 +1454,10 @@
                 lofscnt--;
                 if (ret)
                         lofsfail++;
         }
 
-#ifdef CACHEFS_BUG
-        if (vp->v.vfs_fstype && (strcmp(vp->v.vfs_fstype, "cachefs") == 0))
-                cachefs_running = 0;
-#endif
-
         vp->exitcode = ret;
         return (ret);
 }