]> granicus.if.org Git - spl/commitdiff
Add crgetzoneid() stub
authorChris Dunlop <chris@onthe.net.au>
Thu, 2 Apr 2015 12:17:26 +0000 (23:17 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 2 Apr 2015 16:49:55 +0000 (09:49 -0700)
Illumos 3897 introduces a dependency on crgetzoneid(). Stub it out until
such time as zones are implemented.

References:
  https://www.illumos.org/issues/3897
  https://github.com/illumos/illumos-gate/commit/fb7001f

Signed-off-by: Chris Dunlop <chris@onthe.net.au>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #444

include/sys/zone.h

index 6b7a1c65f2e08b9c504f3330261c00b791d7b0e8..5a3c0869f56b7f6fd81b9d47d374cc1bb4bb2726 100644 (file)
 
 #include <sys/byteorder.h>
 
-#define zone_dataset_visible(x, y)                      (1)
-#define INGLOBALZONE(z)                                 (1)
+#define        GLOBAL_ZONEID                   0
+
+#define        zone_dataset_visible(x, y)      (1)
+#define        crgetzoneid(x)                  (GLOBAL_ZONEID)
+#define        INGLOBALZONE(z)                 (1)
 
 #endif /* SPL_ZONE_H */