usr/src/uts/common/fs/zfs/spa.c
changeset 4178 ad95fd86760b
parent 4070 4390ea390a1e
child 4309 3dfde0f4662d
--- a/usr/src/uts/common/fs/zfs/spa.c	Mon May 07 11:20:02 2007 -0700
+++ b/usr/src/uts/common/fs/zfs/spa.c	Mon May 07 16:01:39 2007 -0700
@@ -589,7 +589,8 @@
 			    ZPOOL_CONFIG_HOSTNAME, &hostname) == 0);
 
 			(void) ddi_strtoul(hw_serial, NULL, 10, &myhostid);
-			if ((unsigned long)hostid != myhostid) {
+			if (hostid != 0 && myhostid != 0 &&
+			    (unsigned long)hostid != myhostid) {
 				cmn_err(CE_WARN, "pool '%s' could not be "
 				    "loaded as it was last accessed by "
 				    "another system (host: %s hostid: 0x%lx).  "