git://git.onelab.eu
/
util-vserver-pl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow independent setting of CPU reservation and CPU share
[util-vserver-pl.git]
/
scripts
/
vuseradd
diff --git
a/scripts/vuseradd
b/scripts/vuseradd
index
aa1210b
..
0e2c8a0
100755
(executable)
--- a/
scripts/vuseradd
+++ b/
scripts/vuseradd
@@
-5,7
+5,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2004-2006 The Trustees of Princeton University
#
-# $Id
: vuseradd,v 1.28 2007/07/05 19:05:14 dhozac Exp
$
+# $Id$
#
: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
#
: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
@@
-94,10
+94,10
@@
if [ ! -d $__CONFDIR/$NAME ] ; then
echo persistent > $DIR/nflags
# Set up the scheduler
echo persistent > $DIR/nflags
# Set up the scheduler
- echo 100
0
> $DIR/sched/interval
+ echo 100 > $DIR/sched/interval
echo 1000 > $DIR/sched/interval2
echo 0 > $DIR/sched/fill-rate
echo 1000 > $DIR/sched/interval2
echo 0 > $DIR/sched/fill-rate
- echo
32
> $DIR/sched/fill-rate2
+ echo
1
> $DIR/sched/fill-rate2
touch $DIR/sched/idle-time
echo 100 > $DIR/sched/tokens
echo 50 > $DIR/sched/tokens-min
touch $DIR/sched/idle-time
echo 100 > $DIR/sched/tokens
echo 50 > $DIR/sched/tokens-min
@@
-109,6
+109,9
@@
if [ ! -d $__CONFDIR/$NAME ] ; then
echo -1 > $DIR/dlimits/0/inodes_total
echo -1 > $DIR/dlimits/0/space_total
echo -1 > $DIR/dlimits/0/inodes_total
echo -1 > $DIR/dlimits/0/space_total
+ # Disable mount namespaces
+ touch $DIR/nonamespace
+
# Remove the basically empty guest directory
rm -rf $__DEFAULT_VSERVERDIR/$NAME
# Move the guest back
# Remove the basically empty guest directory
rm -rf $__DEFAULT_VSERVERDIR/$NAME
# Move the guest back