diff options
author | mdodd <mdodd@FreeBSD.org> | 2002-09-06 18:16:26 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2002-09-06 18:16:26 +0000 |
commit | 69903403e9731bd3d06399f0c89e5bfbcf6ab3c3 (patch) | |
tree | 029773fc1e9d0d1ff069c1b881867887a3534490 /sbin | |
parent | afb7f17e9677a446ee8901e93fbea079175d3106 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sbin/camcontrol/camcontrol.8 | 9 | ||||
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/sbin/camcontrol/camcontrol.8 b/sbin/camcontrol/camcontrol.8 index 5d1c9b1..c732db5 100644 --- a/sbin/camcontrol/camcontrol.8 +++ b/sbin/camcontrol/camcontrol.8 @@ -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 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" |