Commit Graph

23 Commits

Author SHA1 Message Date
Glen Barber
a5921bc365 Update share/examples/* to properly install /usr/share/examples.
As result of this, a new examples package is now created.

Note, this is only effective with 'SHARED=copies' (the default),
as the 'SHARED=symlinks' mechanism will create a symlink to the
source tree version of the file(s).

Sponsored by:	The FreeBSD Foundation
2016-05-10 00:51:50 +00:00
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
Ruslan Ermilov
262e143bd4 Adopt for modern FreeBSD.
Requested by:	az
2005-12-10 12:09:54 +00:00
Ruslan Ermilov
b122ac0407 Remove redundant (in FreeBSD) include. 2005-10-14 15:45:38 +00:00
Ruslan Ermilov
6b806d21d1 Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
Ruslan Ermilov
0a26e64fe7 Removed COPTS with equivalent CFLAGS.
While here, fixed setting of BINDIR.
2004-08-13 14:19:12 +00:00
Ruslan Ermilov
5203edcdc5 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
Ruslan Ermilov
d37ea99837 Removed trailing whitespace. 2004-07-02 19:07:33 +00:00
Ruslan Ermilov
959d6c24f6 Get rid of duplicates. 2003-09-14 13:41:59 +00:00
Matt Jacob
b52b9d56d4 Fix Makefiles to actually work. 2002-07-29 04:43:10 +00:00
Ruslan Ermilov
5521ff5a4d mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2). 2001-07-06 16:46:48 +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
Matt Jacob
60f2f4e3df Add a minimal example set of how to use the SES ioctls to monitor
SES/SAF-TE devices. It's usable enough (in chpmon) to be alerted as you'd
like to be if a powersupply goes south.
2000-01-15 22:47:17 +00:00