aboutsummaryrefslogtreecommitdiff
path: root/sbin/camcontrol/camcontrol.c
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2002-09-06 18:16:26 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2002-09-06 18:16:26 +0000
commitf9cecca2d4c5844f3dbf339e7cc4616cc6e70cb8 (patch)
tree029773fc1e9d0d1ff069c1b881867887a3534490 /sbin/camcontrol/camcontrol.c
parentc23d234cce6b4fc5ca914f9e454843f56213ddcc (diff)
downloadsrc-f9cecca2d4c5844f3dbf339e7cc4616cc6e70cb8.tar.gz
src-f9cecca2d4c5844f3dbf339e7cc4616cc6e70cb8.zip
Add 'camcontrol load' as a complement to 'camcontrol eject'.
Approved by: ken MFC after: 4 weeks
Notes
Notes: svn path=/head/; revision=103033
Diffstat (limited to 'sbin/camcontrol/camcontrol.c')
-rw-r--r--sbin/camcontrol/camcontrol.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 5dbce82b5c47..99e3cba30840 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -116,6 +116,7 @@ struct camcontrol_opts option_table[] = {
{"inquiry", CAM_ARG_INQUIRY, "DSR"},
{"start", CAM_ARG_STARTSTOP | CAM_ARG_START_UNIT, NULL},
{"stop", CAM_ARG_STARTSTOP, NULL},
+ {"load", CAM_ARG_STARTSTOP | CAM_ARG_START_UNIT | CAM_ARG_EJECT, NULL},
{"eject", CAM_ARG_STARTSTOP | CAM_ARG_EJECT, NULL},
#endif /* MINIMALISTIC */
{"rescan", CAM_ARG_RESCAN, NULL},
@@ -3129,6 +3130,7 @@ usage(int verbose)
" camcontrol inquiry [dev_id][generic args] [-D] [-S] [-R]\n"
" camcontrol start [dev_id][generic args]\n"
" camcontrol stop [dev_id][generic args]\n"
+" camcontrol load [dev_id][generic args]\n"
" camcontrol eject [dev_id][generic args]\n"
#endif /* MINIMALISTIC */
" camcontrol rescan <all | bus[:target:lun]>\n"
@@ -3159,6 +3161,7 @@ usage(int verbose)
"inquiry send a SCSI inquiry command to the named device\n"
"start send a Start Unit command to the device\n"
"stop send a Stop Unit command to the device\n"
+"load send a Start Unit command to the device with the load bit set\n"
"eject send a Stop Unit command to the device with the eject bit set\n"
"rescan rescan all busses, the given bus, or bus:target:lun\n"
"reset reset all busses, the given bus, or bus:target:lun\n"