Print this page
re #12264 cr3916 Need to apply patch ncp3-gate/patches/fs-local-zfs-boot-nexenta to 4.0


  76         # the entries with the global option (the global entries are handled
  77         # later in another script if the cluster package is installed).
  78         #
  79         if [ -n "$qlist" ]; then
  80                 echo 'Checking UFS quotas: \c'
  81                 /usr/sbin/quotacheck -p $qlist
  82                 echo 'done.'
  83                 /usr/sbin/quotaon $qlist
  84         fi
  85 fi
  86 
  87 # Mount all ZFS filesystems.
  88 
  89 if [ -x /usr/sbin/zfs ]; then
  90         /usr/sbin/zfs mount -va >/dev/msglog 2>&1
  91         rc=$?
  92         if [ $rc -ne 0 ]; then
  93                 msg="WARNING: /usr/sbin/zfs mount -a failed: exit status $rc"
  94                 echo $msg
  95                 echo "$SMF_FMRI:" $msg >/dev/msglog
  96                 result=$SMF_EXIT_ERR_FATAL

  97         fi
  98 fi
  99 
 100 if [ $result = $SMF_EXIT_OK -a $mntretry -eq 1 ]
 101 then
 102         cd /; /sbin/mountall -l >/dev/msglog
 103         rc=$?
 104         if [ $rc -ne 0 ]; then
 105                 msg="WARNING: /sbin/mountall -l failed: exit status $rc"
 106                 echo $msg
 107                 echo "$SMF_FMRI:" $msg >/dev/msglog
 108                 result=$SMF_EXIT_ERR_FATAL
 109         fi
 110 fi
 111 
 112 # Add swap filesystems
 113 /sbin/swapadd >/dev/null 2>&1
 114 
 115 exit $result


  76         # the entries with the global option (the global entries are handled
  77         # later in another script if the cluster package is installed).
  78         #
  79         if [ -n "$qlist" ]; then
  80                 echo 'Checking UFS quotas: \c'
  81                 /usr/sbin/quotacheck -p $qlist
  82                 echo 'done.'
  83                 /usr/sbin/quotaon $qlist
  84         fi
  85 fi
  86 
  87 # Mount all ZFS filesystems.
  88 
  89 if [ -x /usr/sbin/zfs ]; then
  90         /usr/sbin/zfs mount -va >/dev/msglog 2>&1
  91         rc=$?
  92         if [ $rc -ne 0 ]; then
  93                 msg="WARNING: /usr/sbin/zfs mount -a failed: exit status $rc"
  94                 echo $msg
  95                 echo "$SMF_FMRI:" $msg >/dev/msglog
  96                 # we do not fail fs-local in nexenta due to simplified
  97                 # rootfs architecture...
  98         fi
  99 fi
 100 
 101 if [ $result = $SMF_EXIT_OK -a $mntretry -eq 1 ]
 102 then
 103         cd /; /sbin/mountall -l >/dev/msglog
 104         rc=$?
 105         if [ $rc -ne 0 ]; then
 106                 msg="WARNING: /sbin/mountall -l failed: exit status $rc"
 107                 echo $msg
 108                 echo "$SMF_FMRI:" $msg >/dev/msglog
 109                 result=$SMF_EXIT_ERR_FATAL
 110         fi
 111 fi
 112 
 113 # Add swap filesystems
 114 /sbin/swapadd >/dev/null 2>&1
 115 
 116 exit $result