Print this page
6198 Let's EOL cachefs

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/swapgeneric.c
          +++ new/usr/src/uts/common/os/swapgeneric.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  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 (c) 1982, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  23   24   */
  24   25  
  25   26  /*
  26   27   * Configure root, swap and dump devices.
  27   28   */
  28   29  
  29   30  #include <sys/types.h>
  30   31  #include <sys/param.h>
  31   32  #include <sys/sysmacros.h>
  32   33  #include <sys/signal.h>
↓ open down ↓ 592 lines elided ↑ open up ↑
 625  626   *
 626  627   * If we are booting via NFS we currently have these options:
 627  628   *      nfs -   dynamically choose NFS V2. V3, or V4 (default)
 628  629   *      nfs2 -  force NFS V2
 629  630   *      nfs3 -  force NFS V3
 630  631   *      nfs4 -  force NFS V4
 631  632   * Because we need to maintain backward compatibility with the naming
 632  633   * convention that the NFS V2 filesystem name is "nfs" (see vfs_conf.c)
 633  634   * we need to map "nfs" => "nfsdyn" and "nfs2" => "nfs".  The dynamic
 634  635   * nfs module will map the type back to either "nfs", "nfs3", or "nfs4".
 635      - * This is only for root filesystems, all other uses such as cachefs
 636      - * will expect that "nfs" == NFS V2.
      636 + * This is only for root filesystems, all other uses will expect
      637 + * that "nfs" == NFS V2.
 637  638   *
 638  639   * If the filesystem isn't already loaded, vfs_getvfssw() will load
 639  640   * it for us, but if (at the time we call it) modrootloaded is
 640  641   * still not set, it won't run the filesystems _init routine (and
 641  642   * implicitly it won't run the filesystems vsw_init() entry either).
 642  643   * We do that explicitly in rootconf().
 643  644   */
 644  645  static struct vfssw *
 645  646  getfstype(char *askfor, char *fsname, size_t fsnamelen)
 646  647  {
↓ open down ↓ 565 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX