summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol/camcontrol.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-09-06 18:16:26 +0000
committermdodd <mdodd@FreeBSD.org>2002-09-06 18:16:26 +0000
commit69903403e9731bd3d06399f0c89e5bfbcf6ab3c3 (patch)
tree029773fc1e9d0d1ff069c1b881867887a3534490 /sbin/camcontrol/camcontrol.c
parentafb7f17e9677a446ee8901e93fbea079175d3106 (diff)
downloadFreeBSD-src-69903403e9731bd3d06399f0c89e5bfbcf6ab3c3.zip
FreeBSD-src-69903403e9731bd3d06399f0c89e5bfbcf6ab3c3.tar.gz
Add 'camcontrol load' as a complement to 'camcontrol eject'.
Approved by: ken MFC after: 4 weeks
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 5dbce82..99e3cba 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"
OpenPOWER on IntegriCloud