Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount.kshlib
          +++ new/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount.kshlib
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26   26  
  27   27  #
  28      -# Copyright (c) 2016 by Delphix. All rights reserved.
       28 +# Copyright (c) 2017 by Delphix. All rights reserved.
  29   29  #
  30   30  
  31   31  . $STF_SUITE/include/libtest.shlib
  32   32  . $STF_SUITE/tests/functional/cli_root/zfs_mount/zfs_mount.cfg
  33   33  
  34   34  function force_unmount #dev
  35   35  {
  36   36          typeset dev=$1
  37   37  
  38   38          ismounted $dev
↓ open down ↓ 38 lines elided ↑ open up ↑
  77   77  
  78   78          datasetexists $pool/$fs && \
  79   79                  log_must cleanup_filesystem $pool $fs
  80   80  
  81   81          rmdir $mntpoint > /dev/null 2>&1
  82   82          if [[ ! -d $mntpoint ]]; then
  83   83                  log_must mkdir -p $mntpoint
  84   84          fi
  85   85  
  86   86          case "$type" in
  87      -                'ctr')  log_must zfs create $pool/$fs
  88      -                        log_must zfs set mountpoint=$mntpoint $pool/$fs
       87 +                'ctr')  log_must zfs create -o mountpoint=$mntpoint $pool/$fs
  89   88                          ;;
  90   89                  'vol')  log_must zfs create -V $VOLSIZE $pool/$fs
  91   90                          ;;
  92      -                *)      log_must zfs create $pool/$fs
  93      -                        log_must zfs set mountpoint=$mntpoint $pool/$fs
       91 +                *)      log_must zfs create -o mountpoint=$mntpoint $pool/$fs
  94   92                          ;;
  95   93          esac
  96   94  
  97   95          return 0
  98   96  }
  99   97  
 100   98  # Destroy ( fs | container | vol ) with the given parameters.
 101   99  function cleanup_filesystem #pool #fs
 102  100  {
 103  101          typeset pool=$1
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX