diff options
author | Kenneth D. Merry <ken@FreeBSD.org> | 2016-12-01 22:20:27 +0000 |
---|---|---|
committer | Kenneth D. Merry <ken@FreeBSD.org> | 2016-12-01 22:20:27 +0000 |
commit | 28db0a5e740c9929ce560572efee40099428a246 (patch) | |
tree | 5df4ff924590f9ee9567d1882590971b28d450ee /sbin/camcontrol/Makefile | |
parent | 710542df20ed68759eb8370402305eef8f68ffe5 (diff) | |
download | src-28db0a5e740c9929ce560572efee40099428a246.tar.gz src-28db0a5e740c9929ce560572efee40099428a246.zip |
Add SCSI REPORT TIMESTAMP and SET TIMESTAMP support.
This adds support to camcontrol(8) and libcam(3) for getting and setting
the time on SCSI protocol drives. This is more commonly found on tape
drives, but is a SPC (SCSI Primary Commands) command, and may be found
on any device that speaks SCSI.
The new camcontrol timestamp subcommand allows getting the current device
time or setting the time to the current system time or any arbitrary time.
sbin/camcontrol/Makefile:
Add timestamp.c.
sbin/camcontrol/camcontrol.8:
Document the new timestamp subcommand.
sbin/camcontrol/camcontrol.c:
Add the timestamp subcommand to camcontrol.
sbin/camcontrol/camcontrol.h:
Add the timestamp() function prototype.
sbin/camcontrol/timestamp.c:
Timestamp setting and reporting functionality.
sys/cam/scsi/scsi_all.c:
Add two new CCB building functions, scsi_set_timestamp() and
scsi_report_timestamp(). Also, add a new helper function,
scsi_create_timestamp().
sys/cam/scsi/scsi_all.h:
Add CDB and parameter data for the the set and report timestamp
commands.
Add function declarations for the new CCB building and helper
functions.
Submitted by: Sam Klopsch
Sponsored by: Spectra Logic
MFC After: 2 weeks
Notes
Notes:
svn path=/head/; revision=309374
Diffstat (limited to 'sbin/camcontrol/Makefile')
-rw-r--r-- | sbin/camcontrol/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/camcontrol/Makefile b/sbin/camcontrol/Makefile index dc9320ac3170..a1ad69309c79 100644 --- a/sbin/camcontrol/Makefile +++ b/sbin/camcontrol/Makefile @@ -4,7 +4,7 @@ PACKAGE=runtime PROG= camcontrol SRCS= camcontrol.c util.c .if !defined(RELEASE_CRUNCH) -SRCS+= attrib.c epc.c fwdownload.c modeedit.c persist.c progress.c zone.c +SRCS+= attrib.c epc.c fwdownload.c modeedit.c persist.c progress.c timestamp.c zone.c .else CFLAGS+= -DMINIMALISTIC .endif |