Print this page
NEX-3705 Need to update libses with LID/USN code from sesctld
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/scsi/plugins/ses/libses/common/libses.h
          +++ new/usr/src/lib/scsi/plugins/ses/libses/common/libses.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _FRAMEWORK_LIBSES_H
  27   28  #define _FRAMEWORK_LIBSES_H
  28   29  
  29   30  #ifdef  __cplusplus
  30   31  extern "C" {
  31   32  #endif
  32   33  
  33   34  /*
  34   35   * These are properties attached to the root target node of the enclosure, and
  35   36   * represent the SCSI inquiry data.
  36   37   */
  37   38  #define SCSI_PROP_VENDOR                "scsi-inquiry-vendor"
  38   39  #define SCSI_PROP_PRODUCT               "scsi-inquiry-product"
  39   40  #define SCSI_PROP_REVISION              "scsi-inquiry-revision"
       41 +#define SCSI_PROP_LID                   "scsi-inquiry-lu-naa-designator"
       42 +#define SCSI_PROP_USN                   "scsi-inquiry-unit-serial-number"
  40   43  
  41   44  /*
  42   45   * This property provides a human-readable name for the element type.  This is
  43   46   * constant, and not derived from the enclosure data.
  44   47   */
  45   48  #define LIBSES_PROP_ELEMENT_TYPE_NAME   "libses-element-type-name"
  46   49  
  47   50  /*
  48   51   * The following properties can be added to any node.  There is no provision in
  49   52   * the specification for these properties, but they can be derived from vendor
↓ open down ↓ 41 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX