Commit Graph

12 Commits

Author SHA1 Message Date
Alexander Motin
6d2a1fbf23 Add API to obtain primary enclosure name and ID for /dev/sesX devices.
sesX device number may change between reboots, so to properly identify
the instance we need more data.  Name and ID reported here may mach ones
reported by SCSI device, but that is not really required by specs.

MFC after:	1 week
Sponsored by:	iXsystems, Inc.
2015-11-21 10:22:01 +00:00
Alexander Motin
a21345b401 Decode common state bits in getencstat output. 2012-11-06 01:29:26 +00:00
Alexander Motin
3364718004 Add -c option to sesd to make it clear enclosure status after reading it
in case if it is not permanent and was fixed.
2012-11-06 00:22:33 +00:00
Alexander Motin
23ec103f3f Rise priority of the informational messages from LOG_INFO to LOG_NOTICE,
same as used for OK status. Otherwise it looks strange when OK status is
reported, while informational is not.
2012-11-05 23:20:48 +00:00
Alexander Motin
8894a1ba65 Fix a minor typo. 2012-11-05 18:18:03 +00:00
Alexander Motin
f6ad3f237a MFprojects/zfsd:
Revamp the CAM enclosure services driver.
This updated driver uses an in-kernel daemon to track state changes and
publishes physical path location information\for disk elements into the
CAM device database.

Sponsored by:   Spectra Logic Corporation
Sponsored by:   iXsystems, Inc.
Submitted by:   gibbs, will, mav
2012-05-24 14:07:44 +00:00
Alexander Motin
34fca5da3c Change new constant names to ones used by OpenSolaris. 2011-05-27 03:44:47 +00:00
Alexander Motin
afceed6aef Oops, fix typo in r222336. 2011-05-27 03:30:23 +00:00
Alexander Motin
e13ca5c0a1 Add names for few more SES element types according SES-2 specification. 2011-05-27 03:23:39 +00:00
Xin LI
2804a96a50 Cleanup code to make it WARNS=6 clean:
- ANSIfy prototypes;
 - Add __unused for parameters that is not being currently used;
 - Add a header for subrountines being called from other modules.

Reviewed by:	mjacob
2009-11-04 23:36:23 +00:00
Xin LI
c2b1d5a3d6 Include string.h for prototype of strcmp(). 2009-11-04 21:12:33 +00:00
Matt Jacob
daf1cffce2 Update SES userland examples to something out of the toy stage.
Approved: jkh
2000-02-29 05:44:19 +00:00