diff options
author | mav <mav@FreeBSD.org> | 2014-07-15 17:26:43 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-07-15 17:26:43 +0000 |
commit | 2c6230a1adb4e420bb9bd3ba65643b39d8f987d1 (patch) | |
tree | e3ae25b7a9b252173ebb42fbddebc3e96724ec8f /sbin/camcontrol/camcontrol.h | |
parent | c0be426ce60674cc235ac3efb29fd8351ba70fe2 (diff) | |
download | FreeBSD-src-2c6230a1adb4e420bb9bd3ba65643b39d8f987d1.zip FreeBSD-src-2c6230a1adb4e420bb9bd3ba65643b39d8f987d1.tar.gz |
MFC r268240 (by ken):
Add persistent reservation support to camcontrol(8).
camcontrol(8) now supports a new 'persist' subcommand that allows users to
issue SCSI PERSISTENT RESERVE IN / OUT commands.
Diffstat (limited to 'sbin/camcontrol/camcontrol.h')
-rw-r--r-- | sbin/camcontrol/camcontrol.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sbin/camcontrol/camcontrol.h b/sbin/camcontrol/camcontrol.h index 616236a..7c249bf 100644 --- a/sbin/camcontrol/camcontrol.h +++ b/sbin/camcontrol/camcontrol.h @@ -30,6 +30,13 @@ #ifndef _CAMCONTROL_H #define _CAMCONTROL_H + +typedef enum { + CC_OR_NOT_FOUND, + CC_OR_AMBIGUOUS, + CC_OR_FOUND +} camcontrol_optret; + /* * get_hook: Structure for evaluating args in a callback. */ @@ -56,6 +63,9 @@ void mode_list(struct cam_device *device, int page_control, int dbd, int retry_count, int timeout); int scsidoinquiry(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout); +int scsipersist(struct cam_device *device, int argc, char **argv, + char *combinedopt, int retry_count, int timeout, int verbose, + int err_recover); char *cget(void *hook, char *name); int iget(void *hook, char *name); void arg_put(void *hook, int letter, void *arg, int count, char *name); |