Skip to content

Commit

Permalink
Add crgetzoneid() stub
Browse files Browse the repository at this point in the history
Illumos 3897 introduces a dependency on crgetzoneid(). Stub it out until
such time as zones are implemented.

References:
  https://www.illumos.org/issues/3897
  illumos/illumos-gate@fb7001f

Signed-off-by: Chris Dunlop <chris@onthe.net.au>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#444
  • Loading branch information
chrisrd authored and behlendorf committed Apr 2, 2015
1 parent fade6b0 commit c089961
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/sys/zone.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@

#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 */

0 comments on commit c089961

Please sign in to comment.