git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ca5311
)
PL2445 Use -b option to du to avoid rounding errors.
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 12 Nov 2004 18:44:09 +0000
(18:44 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Fri, 12 Nov 2004 18:44:09 +0000
(18:44 +0000)
scripts/vuseradd
patch
|
blob
|
history
diff --git
a/scripts/vuseradd
b/scripts/vuseradd
index
18c45cc
..
36a0f95
100755
(executable)
--- a/
scripts/vuseradd
+++ b/
scripts/vuseradd
@@
-4,7
+4,7
@@
#
# Copyright (c) 2004 The Trustees of Princeton University (Trustees).
#
#
# Copyright (c) 2004 The Trustees of Princeton University (Trustees).
#
-# $Id: vuseradd,v 1.1
4 2004/10/20 21:45:15 mef
Exp $
+# $Id: vuseradd,v 1.1
5 2004/11/06 16:10:42 mlhuang
Exp $
#
: ${UTIL_VSERVER_VARS:=$(dirname $0)/util-vserver-vars}
#
: ${UTIL_VSERVER_VARS:=$(dirname $0)/util-vserver-vars}
@@
-55,8
+55,8
@@
if [ ! -d "$VROOTDIR/$NAME" ] ; then
RETVAL=$?
# move it to .vcache when complete
if [ $RETVAL -ne 0 ] || \
RETVAL=$?
# move it to .vcache when complete
if [ $RETVAL -ne 0 ] || \
- [ $(du -s "$TMP" | awk "{ print \$1 }") -lt \
- $(du -s "$VROOTDIR/vserver-reference" | awk "{ print \$1 }") ] ; then
+ [ $(du -
b -
s "$TMP" | awk "{ print \$1 }") -lt \
+ $(du -
b -
s "$VROOTDIR/vserver-reference" | awk "{ print \$1 }") ] ; then
echo "Error $RETVAL building $VROOTDIR/$NAME"
chattr -R -i "$TMP"
rm -rf "$TMP"
echo "Error $RETVAL building $VROOTDIR/$NAME"
chattr -R -i "$TMP"
rm -rf "$TMP"