Added real life example to the README, minor fixups to disco and disco-fs-diff

This commit is contained in:
2012-08-17 22:21:29 -04:00
parent 4c6d422395
commit 134ef11120
3 changed files with 333 additions and 29 deletions

View File

@@ -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=$?

View File

@@ -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"/""/ |\