Print this page
re #8726 rb4027 Autogenerated iSCSI initiator IQN should use com.nexenta instead of com.sun

@@ -16,12 +16,14 @@
  * fields enclosed by brackets "[]" replaced with your own identifying
  * information: Portions Copyright [yyyy] [name of copyright owner]
  *
  * CDDL HEADER END
  */
+
 /*
  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
  */
 
 /*
  * ISCSID --
  *

@@ -1974,13 +1976,13 @@
 
 /*
  * set_initiator_name - set default initiator name and alias.
  *
  * This sets the default initiator name and alias.  The
- * initiator name is composed of sun's reverse domain name
- * and registration followed and a unique classifier.  This
- * classifier is the mac address of the first NIC in the
+ * initiator name is composed of vendor's reverse domain name
+ * and registration date followed by a unique classifier.
+ * This classifier is the mac address of the first NIC in the
  * host and a timestamp to make sure the classifier is
  * unique if the NIC is moved between hosts.  The alias
  * is just the hostname.
  */
 void

@@ -1996,13 +1998,12 @@
         if (iscsiboot_prop && iscsiboot_prop->boot_init.ini_name != NULL) {
                 (void) strncpy((char *)ihp->hba_name,
                     (const char *)iscsiboot_prop->boot_init.ini_name,
                     ISCSI_MAX_NAME_LEN);
         } else {
-                (void) snprintf((char *)ihp->hba_name,
-                    ISCSI_MAX_NAME_LEN,
-                    "iqn.1986-03.com.sun:01:");
+                (void) snprintf((char *)ihp->hba_name, ISCSI_MAX_NAME_LEN,
+                    "iqn.2005-07.com.nexenta:01:");
 
                 (void) localetheraddr(NULL, &eaddr);
                 for (i = 0; i <  ETHERADDRL; i++) {
                         (void) snprintf(val, sizeof (val), "%02x",
                             eaddr.ether_addr_octet[i]);