Print this page
OS-192 zone_create() warning on headnode

@@ -20,10 +20,11 @@
  */
 
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ * Copyright 2011 Joyent Inc.  All rights reserved.
  */
 
 #include "lint.h"
 #include <sys/types.h>
 #include <sys/syscall.h>

@@ -37,11 +38,12 @@
 #include <errno.h>
 
 zoneid_t
 zone_create(const char *name, const char *root, const struct priv_set *privs,
     const char *rctls, size_t rctlsz, const char *zfs, size_t zfssz,
-    int *extended_error, int match, int doi, const bslabel_t *label, int flags)
+    int *extended_error, int match, int doi, const bslabel_t *label, int flags,
+    zoneid_t zone_did)
 {
         zone_def  zd;
         priv_data_t *d;
 
         LOADPRIVDATA(d);

@@ -57,10 +59,11 @@
         zd.extended_error = extended_error;
         zd.match = match;
         zd.doi = doi;
         zd.label = label;
         zd.flags = flags;
+        zd.zone_did = zone_did;
 
         return ((zoneid_t)syscall(SYS_zone, ZONE_CREATE, &zd));
 }
 
 int