summaryrefslogtreecommitdiff
path: root/src/core/procedures/partial-disks
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-02-22 17:29:59 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2009-02-22 17:29:59 +0100
commit71f5510aaaa20ae5ae9c773dca12028bd96aafdf (patch)
treec3dee60f77a5c2954bf0a9a4e73befd0b916460e /src/core/procedures/partial-disks
parentf9126402b343aea8f2766bc16c10577b833b6703 (diff)
parentf4bd7c36b44da0c9a5985868aa8b0183cd4414c8 (diff)
pull in a shitload of fixes and some features from the experimental branch
Diffstat (limited to 'src/core/procedures/partial-disks')
-rw-r--r--src/core/procedures/partial-disks32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/core/procedures/partial-disks b/src/core/procedures/partial-disks
new file mode 100644
index 0000000..8f17e33
--- /dev/null
+++ b/src/core/procedures/partial-disks
@@ -0,0 +1,32 @@
+#!/bin/bash
+depend_procedure core base
+
+var_OPTS_STRING="o:"
+var_ARGS_USAGE="-o process/rollback: Operation: process the blockdevice layer or roll it back?"
+
+process_args ()
+{
+ if [ "$1" = '-o' ]
+ then
+ [ "$2" != process -a "$2" != rollback ] && die_error "You must specify 'process' or 'rollback'"
+ OPERATION=$2
+ else
+ usage
+ exit 5
+ fi
+}
+
+
+start_process ()
+{
+ [ -z "$OPERATION" ] && usage && exit 5
+
+ if [ "$OPERATION" = process ]
+ then
+ process_disks
+ process_filesystems
+ elif [ "$OPERATION" = rollback ]
+ then
+ rollback_filesystems
+ fi
+} \ No newline at end of file