Print this page
6198 Let's EOL cachefs

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/initpkg/mountall.sh
          +++ new/usr/src/cmd/initpkg/mountall.sh
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17  # If applicable, add the following below this CDDL HEADER, with the
  18   18  # fields enclosed by brackets "[]" replaced with your own identifying
  19   19  # information: Portions Copyright [yyyy] [name of copyright owner]
  20   20  #
  21   21  # CDDL HEADER END
  22   22  #
  23   23  
  24   24  #
  25   25  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26   26  # Use is subject to license terms.
       27 +# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  27   28  #
  28   29  #       Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  29   30  #         All Rights Reserved
  30   31  #
  31   32  
  32   33  usage () {
  33   34          if [ -n "$1" ]; then
  34   35                  echo "mountall: $1" 1>&2
  35   36          fi
  36   37          echo "Usage:\nmountall [-F FSType] [-l|-r|-g] [file_system_table]" 1>&2
↓ open down ↓ 365 lines elided ↑ open up ↑
 402  403          /sbin/sh $ALTM          # run the saved mount commands
 403  404          /usr/bin/rm -f $ALTM
 404  405          exit
 405  406  fi
 406  407  
 407  408  if [ -n "$FSType" ]; then
 408  409          /sbin/mount -a -F $FSType
 409  410          exit
 410  411  fi
 411  412  
 412      -# Some remote filesystems (e.g. cachefs or autofs) shouldn't be be mounted
      413 +# Some remote filesystems (e.g. autofs) shouldn't be mounted
 413  414  # with mountall, so the list here is explicit (not from /etc/dfs/fstypes)
 414  415  if [ "$RFLAG" ]; then
 415  416          /sbin/mount -a -F nfs
 416  417          /sbin/mount -a -F smbfs
 417  418          exit
 418  419  fi
 419  420  
 420  421  if [ "$LFLAG" -o "$GFLAG" -o $err != 0 ]; then
 421  422          [ -z "$mntlist" ] || /sbin/mount -a $mntlist
 422  423          exit
 423  424  fi
 424  425  
 425  426  # else mount them all
 426  427  
 427  428  /sbin/mount -a
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX