23 Commits

Author SHA1 Message Date
gjb
214f3b8bf1 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
mav
1ad504c2e1 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
mav
48bd765ad7 Decode common state bits in getencstat output. 2012-11-06 01:29:26 +00:00
mav
e4e311dc37 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
mav
7eac5be108 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
mav
ea4fbae890 Fix a minor typo. 2012-11-05 18:18:03 +00:00
mav
96f3e42ce2 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
mav
73bcdbfb76 Change new constant names to ones used by OpenSolaris. 2011-05-27 03:44:47 +00:00
mav
7af31eed34 Oops, fix typo in r222336. 2011-05-27 03:30:23 +00:00
mav
44b4091060 Add names for few more SES element types according SES-2 specification. 2011-05-27 03:23:39 +00:00
delphij
16733ea919 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
delphij
0dbcd15dd2 Include string.h for prototype of strcmp(). 2009-11-04 21:12:33 +00:00
ru
b7b8dddecb Adopt for modern FreeBSD.
Requested by:	az
2005-12-10 12:09:54 +00:00
ru
9b58b9148d Remove redundant (in FreeBSD) include. 2005-10-14 15:45:38 +00:00
ru
114ea39c76 Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
ru
bab4dcbeed Removed COPTS with equivalent CFLAGS.
While here, fixed setting of BINDIR.
2004-08-13 14:19:12 +00:00
ru
1cf1598667 Mechanically kill hard sentence breaks and double whitespaces. 2004-07-03 18:29:24 +00:00
ru
4b39413aeb Removed trailing whitespace. 2004-07-02 19:07:33 +00:00
ru
cc9d2aeb39 Get rid of duplicates. 2003-09-14 13:41:59 +00:00
mjacob
74b8087e82 Fix Makefiles to actually work. 2002-07-29 04:43:10 +00:00
ru
05e503d80a mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2). 2001-07-06 16:46:48 +00:00
mjacob
c21e819825 Update SES userland examples to something out of the toy stage.
Approved: jkh
2000-02-29 05:44:19 +00:00
mjacob
e721b60166 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