Add 'camcontrol load' as a complement to 'camcontrol eject'.
Approved by: ken MFC after: 4 weeks
This commit is contained in:
parent
c23d234cce
commit
f9cecca2d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103033
@ -67,6 +67,10 @@
|
||||
.Op device id
|
||||
.Op generic args
|
||||
.Nm
|
||||
.Ic load
|
||||
.Op device id
|
||||
.Op generic args
|
||||
.Nm
|
||||
.Ic eject
|
||||
.Op device id
|
||||
.Op generic args
|
||||
@ -252,9 +256,12 @@ start bit set.
|
||||
.It Ic stop
|
||||
Send the SCSI Start/Stop Unit (0x1B) command to the given device with the
|
||||
start bit cleared.
|
||||
.It Ic load
|
||||
Send the SCSI Start/Stop Unit (0x1B) command to the given device with the
|
||||
start bit set and the load/eject bit set.
|
||||
.It Ic eject
|
||||
Send the SCSI Start/Stop Unit (0x1B) command to the given device with the
|
||||
start bit cleared and the eject bit set.
|
||||
start bit cleared and the load/eject bit set.
|
||||
.It Ic rescan
|
||||
Tell the kernel to scan all busses in the system (with the
|
||||
.Ar all
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user