[Rear-users] SF.net SVN: rear:[583] trunk/usr/share/rear

dag- at users.sourceforge.net dag- at users.sourceforge.net
Wed Jun 8 11:14:37 CEST 2011


Revision: 583
          http://rear.svn.sourceforge.net/rear/?rev=583&view=rev
Author:   dag-
Date:     2011-06-08 09:14:37 +0000 (Wed, 08 Jun 2011)

Log Message:
-----------
First step in cleaning up the label workflow

Modified Paths:
--------------
    trunk/usr/share/rear/format/USB/default/30_format_usb_disk.sh

Added Paths:
-----------
    trunk/usr/share/rear/format/
    trunk/usr/share/rear/lib/format-workflow.sh

Removed Paths:
-------------
    trunk/usr/share/rear/label/
    trunk/usr/share/rear/lib/label-workflow.sh
    trunk/usr/share/rear/lib/labeltape-workflow.sh

Modified: trunk/usr/share/rear/format/USB/default/30_format_usb_disk.sh
===================================================================
--- trunk/usr/share/rear/label/USB/default/30_format_usb_disk.sh	2011-06-07 15:09:13 UTC (rev 578)
+++ trunk/usr/share/rear/format/USB/default/30_format_usb_disk.sh	2011-06-08 09:14:37 UTC (rev 583)
@@ -1,11 +1,17 @@
 # $answer is filled by 20_check_usb_layout.sh
 if [ "$answer" == "Yes" ]; then
-	umount $REAL_USB_DEVICE >/dev/null 2>&1
+	umount $REAL_USB_DEVICE &>/dev/null
+
 	parted $RAW_USB_DEVICE mkpart primary 0 100%
 	StopIfError "Could not create a primary partition on '$REAL_USB_DEVICE'"
+
 	parted $RAW_USB_DEVICE set 1 boot on
 	StopIfError "Could not make primary partition boot-able on '$REAL_USB_DEVICE'"
 
-	mkfs.ext3 -L REAR-000 $REAL_USB_DEVICE 1>&8
+	mkfs.ext3 -L REAR-000 $REAL_USB_DEVICE >&8
 	StopIfError "Could not format '$REAL_USB_DEVICE' with ext3 layout"
+
+	tune2fs -c 0 -i 0 -o acl,journal_data,journal_data_ordered $REAL_USB_DEVICE >&8
+	StopIfError "Failed to change filesystem characteristics on '$REAL_USB_DEVICE'"
+
 fi

Copied: trunk/usr/share/rear/lib/format-workflow.sh (from rev 582, trunk/usr/share/rear/lib/label-workflow.sh)
===================================================================
--- trunk/usr/share/rear/lib/format-workflow.sh	                        (rev 0)
+++ trunk/usr/share/rear/lib/format-workflow.sh	2011-06-08 09:14:37 UTC (rev 583)
@@ -0,0 +1,19 @@
+# format-workflow.sh
+#
+
+WORKFLOW_format_DESCRIPTION="format and label media for use with rear"
+WORKFLOWS=( ${WORKFLOWS[@]} label )
+WORKFLOW_format () {
+	for arg in "${ARGS[@]}" ; do
+		key=OPT_"${arg%%=*}"
+		val="${arg#*=}"
+		declare $key="$val"
+		Log "Setting $key=$val"
+	done
+
+	SourceStage "format/tape"
+	SourceStage "format/USB"
+
+	SourceStage "cleanup"
+
+}

Deleted: trunk/usr/share/rear/lib/label-workflow.sh
===================================================================
--- trunk/usr/share/rear/lib/label-workflow.sh	2011-06-08 09:08:20 UTC (rev 582)
+++ trunk/usr/share/rear/lib/label-workflow.sh	2011-06-08 09:14:37 UTC (rev 583)
@@ -1,19 +0,0 @@
-# label-workflow.sh
-#
-
-WORKFLOW_label_DESCRIPTION="format and label media for use with rear"
-WORKFLOWS=( ${WORKFLOWS[@]} label )
-WORKFLOW_label () {
-	for arg in "${ARGS[@]}" ; do
-		key=OPT_"${arg%%=*}"
-		val="${arg#*=}"
-		declare $key="$val"
-		Log "Setting $key=$val"
-	done
-
-	SourceStage "label/tape"
-	SourceStage "label/USB"
-
-	SourceStage "cleanup"
-
-}

Deleted: trunk/usr/share/rear/lib/labeltape-workflow.sh
===================================================================
--- trunk/usr/share/rear/lib/labeltape-workflow.sh	2011-06-08 09:08:20 UTC (rev 582)
+++ trunk/usr/share/rear/lib/labeltape-workflow.sh	2011-06-08 09:14:37 UTC (rev 583)
@@ -1,18 +0,0 @@
-# labeltape-workflow.sh
-#
-
-WORKFLOW_labeltape_DESCRIPTION="format and label tape for use with rear"
-WORKFLOWS=( ${WORKFLOWS[@]} labeltape )
-WORKFLOW_labeltape () {
-	for arg in "${ARGS[@]}" ; do
-		key=OPT_"${arg%%=*}"
-		val="${arg#*=}"
-		declare $key="$val"
-		Log "Setting $key=$val"
-	done
-
-	SourceStage "label/tape"
-
-	SourceStage "cleanup"
-
-}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rear-users mailing list