git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fd284a
)
Need to set the tagging too so disk limits are enforceable.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Wed, 5 Dec 2007 14:17:26 +0000
(14:17 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Wed, 5 Dec 2007 14:17:26 +0000
(14:17 +0000)
src/planetlab.c
patch
|
blob
|
history
diff --git
a/src/planetlab.c
b/src/planetlab.c
index
293d0a7
..
1c6cbcc
100644
(file)
--- a/
src/planetlab.c
+++ b/
src/planetlab.c
@@
-57,7
+57,7
@@
create_context(xid_t ctx, uint64_t bcaps)
/* Create network context */
if (vc_net_create(ctx) == VC_NOCTX) {
if (errno == EEXIST)
/* Create network context */
if (vc_net_create(ctx) == VC_NOCTX) {
if (errno == EEXIST)
- goto
process
;
+ goto
tag
;
return -1;
}
return -1;
}
@@
-66,6
+66,11
@@
create_context(xid_t ctx, uint64_t bcaps)
if (vc_set_nflags(ctx, &vc_nf))
return -1;
if (vc_set_nflags(ctx, &vc_nf))
return -1;
+tag:
+ /* Create tag context */
+ if (vc_tag_create(ctx) == VC_NOCTX)
+ return -1;
+
process:
/*
* Create context info - this sets the STATE_SETUP and STATE_INIT flags.
process:
/*
* Create context info - this sets the STATE_SETUP and STATE_INIT flags.
@@
-157,7
+162,7
@@
pl_chcontext(xid_t ctx, uint64_t bcaps, const struct sliver_resources *slr)
migrate:
if (net_migrated || !vc_net_migrate(ctx))
{
migrate:
if (net_migrated || !vc_net_migrate(ctx))
{
- if (!vc_ctx_migrate(ctx, 0))
+ if (!vc_
tag_migrate(ctx) && !vc_
ctx_migrate(ctx, 0))
break; /* done */
net_migrated = 1;
}
break; /* done */
net_migrated = 1;
}