X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_ctxmigrate-v21.hc;h=a972027562022b2e5fc5fa7d25bfd44faa97829f;hb=952de6648abd3d7192f97f3335c016df365b3ae0;hp=355a7a1e6565e41d4e8e4432b69a3dbacaec1eee;hpb=9bbe41ab46077aed94fd7483cf6bc1e2857e12e5;p=util-vserver.git diff --git a/lib/syscall_ctxmigrate-v21.hc b/lib/syscall_ctxmigrate-v21.hc index 355a7a1..a972027 100644 --- a/lib/syscall_ctxmigrate-v21.hc +++ b/lib/syscall_ctxmigrate-v21.hc @@ -22,14 +22,9 @@ #endif static inline ALWAYSINLINE int -vc_ctx_migrate_spaces(xid_t xid) +vc_ctx_migrate_spaces(xid_t xid, uint_least64_t flags) { - int ret = vc_getXIDType(xid); - if (ret == vcTYPE_STATIC || ret == vcTYPE_DYNAMIC) { - ret = vc_enter_namespace(xid, vc_get_space_mask() & ~(CLONE_NEWNS|CLONE_FS)); - if (ret) - return ret; - } + struct vcmd_ctx_migrate data = { .flagword = flags }; - return vserver(VCMD_ctx_migrate_v0, CTX_USER2KERNEL(xid), NULL); + return vserver(VCMD_ctx_migrate_v1, CTX_USER2KERNEL(xid), &data); }