[PC-BSD Commits] r14014 - pcbsd/current/build-files/src-patches

svn at pcbsd.org svn at pcbsd.org
Mon Nov 21 18:18:30 PST 2011


Author: kris
Date: 2011-11-21 18:18:30 -0800 (Mon, 21 Nov 2011)
New Revision: 14014

Modified:
   pcbsd/current/build-files/src-patches/patch-pc-sysinstall-zfs-export
Log:

Improve the patch a bit, make sure we don't get false positives by comparing the device name directly




Modified: pcbsd/current/build-files/src-patches/patch-pc-sysinstall-zfs-export
===================================================================
--- pcbsd/current/build-files/src-patches/patch-pc-sysinstall-zfs-export	2011-11-22 02:16:03 UTC (rev 14013)
+++ pcbsd/current/build-files/src-patches/patch-pc-sysinstall-zfs-export	2011-11-22 02:18:30 UTC (rev 14014)
@@ -30,8 +30,8 @@
    for i in `zpool list -H -o name`
    do
 -    zpool export -f ${i}
-+    zpool status ${i} | grep "ONLINE" | awk '{print $1}' | grep -q ${DISK}
-+    if [ $? -eq 0 ] ; then
++    ztst=`zpool status ${i} | grep "ONLINE" | awk '{print $1}' | grep -q ${DISK}`
++    if [ "$ztst" = "$DISK" ] ; then
 +      zpool export -f ${i}
 +    fi
    done



More information about the Commits mailing list