Show
Ignore:
Timestamp:
08/07/08 16:35:15 (4 months ago)
Author:
kris
Message:

Fixed what should be all problems when using gjournal, either going from journaling to UFS+S or going to UFS regular. Now it the scripts correctly stop gjournal, which allows bsdlabel to work properly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.FormatPartition.sh

    r2559 r2560  
    1010device=${1} 
    1111 
    12 # Get the Slice Number 
     12# Get the full Slice Number (Example /dev/ad0s1) 
    1313slice=${2} 
    1414 
     15# Get the device name without the /dev on it 
     16rawslice="`echo ${2} | cut -d '/' -f 3`" 
    1517 
    1618# Check if we need to shutdown any journals on this partition 
    17 ls ${2}*.journal* >/dev/null 2>/dev/null 
     19ls ${slice}*.journal* >/dev/null 2>/dev/null 
    1820if [ "$?" = "0" ] 
    1921then 
    2022   cd /dev 
    21    for i in `ls ${2}*.journal*` 
     23   for i in `ls ${rawslice}*.journal` 
    2224   do 
    23      gjournal stop ${i} 
    24      gjournal clear ${i} 
     25     # Get rid of the .journal extension now 
     26     rawjournal="`echo ${i} | cut -d '.' -f 1`" 
     27     gjournal stop -f ${rawjournal} 
     28     gjournal clear ${rawjournal} 
    2529   done 
    2630fi