]> git.proxmox.com Git - mirror_zfs.git/blobdiff - lib/libzpool/kernel.c
OpenZFS 9075 - Improve ZFS pool import/load process and corrupted pool recovery
[mirror_zfs.git] / lib / libzpool / kernel.c
index 09e69ef6d28c3d5ae01fc691014632389db408a6..f3e84975c6db6eeb0341ca8189b136a1ce1f3b43 100644 (file)
@@ -297,6 +297,16 @@ rw_tryenter(krwlock_t *rwlp, krw_t rw)
        return (0);
 }
 
+/* ARGSUSED */
+uint32_t
+zone_get_hostid(void *zonep)
+{
+       /*
+        * We're emulating the system's hostid in userland.
+        */
+       return (strtoul(hw_serial, NULL, 10));
+}
+
 int
 rw_tryupgrade(krwlock_t *rwlp)
 {