Added real life example to the README, minor fixups to disco and disco-fs-diff
This commit is contained in:
@@ -13,7 +13,8 @@ fi
|
||||
function colorize() {
|
||||
sed s/"^info:\(.*\)"/"${COLOR_CYAN}info:\1${COLOR_NORMAL}"/g |\
|
||||
sed s/"^warning: \(.*\)"/"${COLOR_YELLOW}warning: \1${COLOR_NORMAL}"/g |\
|
||||
sed s/"^error: \(.*\)"/"${COLOR_RED}error: \1${COLOR_NORMAL}"/g
|
||||
sed s/"^error: \(.*\)"/"${COLOR_RED}error: \1${COLOR_NORMAL}"/g |\
|
||||
sed s/"^report: \(.*\)"/"${COLOR_CYAN}report: \1${COLOR_NORMAL}"/g
|
||||
}
|
||||
|
||||
function report() {
|
||||
@@ -52,9 +53,9 @@ function dance() {
|
||||
do
|
||||
echo "info: Processing ${module}"
|
||||
NOOP="true" disco-ball template $module
|
||||
/usr/bin/time -f "$TIME" -o /var/disco/reports/_internal/diff disco-fs-diff
|
||||
NOOP=true /usr/bin/time -f "$TIME" -o /var/disco/reports/_internal/diff disco-fs-diff
|
||||
if [ "$NOOP" == "" ]; then
|
||||
rsync -aWH /var/disco/testfs/noop/* /
|
||||
rsync -aWH /var/disco/testfs/noop/scratchfs/. /.
|
||||
fi
|
||||
NOOP="$NOOP" disco-ball exec $module
|
||||
RETVAL=$?
|
||||
|
||||
@@ -11,6 +11,10 @@ fi
|
||||
|
||||
cd $DISCOROOT
|
||||
|
||||
CREATED=0
|
||||
DELETED=0
|
||||
MODIFIED=0
|
||||
|
||||
rsync --checksum --times --perms --owner --group -ani ./scratchfs/ ./rootfs/ |\
|
||||
grep -v ".unionfs.*/$" |\
|
||||
sed s/"\.\/scratchfs"/""/ |\
|
||||
|
||||
Reference in New Issue
Block a user