[PC-BSD Commits] r2455 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Mon Jul 28 05:24:26 PDT 2008


Author: kris
Date: 2008-07-28 05:24:25 -0700 (Mon, 28 Jul 2008)
New Revision: 2455

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FormatPartition.sh
Log:

Make sure we stop *all* the journals on a drive, not just ones ending in .journal



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FormatPartition.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FormatPartition.sh	2008-07-27 15:56:49 UTC (rev 2454)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FormatPartition.sh	2008-07-28 12:24:25 UTC (rev 2455)
@@ -13,11 +13,11 @@
 slice=${2}
 
 # Check if we need to shutdown any journals on this drive
-ls /dev/${1}${2}*.journal >/dev/null 2>/dev/null
+ls /dev/${1}${2}*.journal* >/dev/null 2>/dev/null
 if [ "$?" = "0" ]
 then
    cd /dev
-   for i in `ls ${1}${2}*.journal`
+   for i in `ls ${1}${2}*.journal*`
    do
      gjournal stop ${i}
    done



More information about the Commits mailing list