"Fossies" - the Fresh Open Source Software Archive

Member "sg3_utils-1.45r831/COVERAGE" (9 Sep 2019, 7192 Bytes) of package /linux/misc/sg3_utils-1.45r831.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "COVERAGE": 1.45r830_vs_1.45r831.

    1                         Command coverage
    2                         ================
    3 The following table lists SCSI commands in alphabetical order on the
    4 left and the sg3_utils (or related) utilities that implement invocations
    5 of them on the right. The second table lists supported ATA commands. The
    6 third table list supported NVMe commands.
    7 
    8 SCSI command        sg3_utils utilities that use this SCSI command
    9 ------------        -------------------------------------------------
   10 ATA COMMAND PASS-THROUGH(12)  sg_sat_identify, ++
   11 ATA COMMAND PASS-THROUGH(16)  sg_sat_identify, sg_sat_set_features,
   12                     sg_sat_phy_event, sg_sat_read_gplog ++
   13                     [sg_sat_chk_power, sg__sat_identify,
   14                      sg__sat_set_features, sg_sat_smart_rd_data
   15                      (previous four in the examples directory)]
   16 ATA COMMAND PASS-THROUGH(32)  sg_sat_identify, ++
   17 BACKGROUND CONTROL  sg_bg_ctl
   18 CLOSE ZONE          sg_zone
   19 COMPARE AND WRITE   sg_compare_and_write
   20 COPY OPERATION ABORT    ddptctl, ++
   21 EXTENDED COPY(LID1)    sg_xcopy, ddpt, ++
   22 GET CONFIGURATION   sg_get_config, ++
   23 GET LBA STATUS      sg_get_lba_status, ++
   24 GET PHYSICAL ELEMENT STATUS      sg_get_elem_status, ++
   25 GET STREAM STATUS   sg_stream_ctl
   26 INQUIRY             sg_dd, sg_format, sg_inq, sginfo,
   27                     sg_logs, sg_map('-i'), sg_modes, sg_opcodes,
   28                     sg_persist, sg_scan, sg_ses, sg_vpd ++
   29 FINISH ZONE         sg_zone
   30 FORMAT MEDIUM       sg_format, ++ [SSC]
   31 FORMAT UNIT         sg_format, ++ [SBC]
   32 LOG SELECT          sg_logs('-r' or '-select'), ++
   33 LOG SENSE           sg_logs, ++
   34 MODE SELECT(6)      sdparm, sg_wr_mode, sginfo, sg_format,
   35                     sg_emc_trespass, sg_rdac, ++
   36 MODE SELECT(10)     sdparm, sg_wr_mode, sginfo, sg_format,
   37                     sg_emc_trespass, sg_rdac, ++
   38 MODE SENSE(6)       sdparm, sg_modes, sg_wr_mode, sginfo, sg_format,
   39                     sg_senddiag('-e'), sg_rdac, ++
   40 MODE SENSE(10)      sdparm, sg_modes, sg_wr_mode, sginfo, sg_format,
   41                     sg_senddiag('-e'), sg_rdac, ++
   42 OPEN ZONE           sg_zone
   43 ORWRITE(16)         sg_write_x
   44 ORWRITE(32)         sg_write_x
   45 PERSISTENT RESERVE IN       sg_persist, ++
   46 PERSISTENT RESERVE OUT      sg_persist, ++
   47 POPULATE TOKEN      ddpt, ddptctl, ++
   48 PRE-FETCH(10)	    sg_seek
   49 PRE-FETCH(16)	    sg_seek
   50 PREVENT ALLOW MEDIUM REMOVAL        sg_prevent, ++
   51 READ(6)             sg_dd, sgm_dd, sgp_dd, sg_read
   52 READ(10)            sg_dd, sgm_dd, sgp_dd, sg_read
   53 READ(12)            sg_dd, sgm_dd, sgp_dd, sg_read
   54 READ(16)            sg_dd, sgm_dd, sgp_dd, sg_read
   55 READ ATTRUBUTE      sg_read_attr
   56 READ BLOCK LIMITS   sg_read_block_limits, ++
   57 READ BUFFER(10)     sg_rbuf, sg_test_rwbuf, sg_read_buffer, sg_safte, ++
   58 READ BUFFER(16)     sg_read_buffer
   59 READ CAPACITY(10)   sg_readcap, sg_dd, sgm_dd, sgp_dd, sg_format, ++
   60 READ CAPACITY(16)   sg_readcap, sg_dd, sgm_dd, sgp_dd, sg_format, ++
   61 READ DEFECT(10)     sginfo('-d' or '-G'), sg_reassign('-g'), smartmontools, ++
   62 READ DEFECT(12)     sginfo('-d' or '-G'), smartmontools
   63 READ LONG(10)       sg_read_long, sg_dd, ++
   64 READ LONG(16)       sg_read_long, ++
   65 READ MEDIA SERIAL NUMBER     sg_rmsn, ++
   66 REASSIGN BLOCKS     sg_reassign, ++
   67 RECEIVE COPY DATA(LID1)    sg_copy_results, ++
   68 RECEIVE COPY FAILURE DETAILS(LID1)    sg_copy_results, ++
   69 RECEIVE COPY OPERATING PARAMETERS    ddpt, sg_copy_results, sg_xcopy, ++
   70 RECEIVE COPY STATUS(LID1)    sg_copy_results, ++
   71 RECEIVE DIAGNOSTIC RESULTS  sg_senddiag, sg_ses, sg_ses_microcode ++
   72 RECEIVE ROD TOKEN INFORMATION    ddpt, ddptctl ++
   73 REPORT ALL ROD TOKENS    ddptctl ++
   74 REPORT IDENTIFYING INFORMATION  sg_ident, ++ (2)
   75 REPORT LUNS         sg_luns, ++
   76 REPORT REFERRALS    sg_referrals, ++
   77 REPORT SUPPORTED OPERATION CODES              sg_opcodes
   78 REPORT SUPPORTED TASK MANAGEMENT FUNCTIONS    sg_opcodes
   79 REPORT TARGET PORT GROUPS       sg_rtpg, sg_stpg ++
   80 REPORT TIMESTAMP    sg_timestamp
   81 REPORT ZONES        sg_rep_zones
   82 REQUEST SENSE       sg_requests, ++
   83 RESET WRITE POINTER sg_reset_wp
   84 SANITIZE            sg_sanitize
   85 SEEK(10)	    sg_seek ++
   86 SEND DIAGNOSTIC     sg_senddiag, sg_ses, sg_ses_microcode ++
   87 SEQUENTIALIZE ZONE  sg_zone
   88 SET IDENTIFYING INFORMATION  sg_ident, ++ (3)
   89 SET TARGET PORT GROUPS       sg_stpg, ++
   90 SET TIMESTAMP       sg_timestamp
   91 START STOP          sg_start, ++
   92 STREAM CONTROL      sg_stream_ctl
   93 SYNCHRONIZE CACHE(10)   sg_sync, sg_dd, sgm_dd, sgp_dd, ++
   94 SYNCHRONIZE CACHE(16)   sg_sync++
   95 TEST UNIT READY     sg_turs, sg_format, ++
   96 UNMAP               sg_unmap, ++
   97 VERIFY(10)          sg_verify, ++
   98 VERIFY(16)          sg_verify, ++
   99 WRITE(6)            sg_dd, sgm_dd, sgp_dd
  100 WRITE(10)           sg_dd, sgm_dd, sgp_dd
  101 WRITE(12)           sg_dd, sgm_dd, sgp_dd
  102 WRITE(16)           sg_dd, sgm_dd, sgp_dd, sg_write_x
  103 WRITE(32)           sg_write_x
  104 WRITE AND VERIFY(10)      sg_write_verify
  105 WRITE AND VERIFY(16)      sg_write_verify
  106 WRITE ATOMIC(16)    ddpt, sg_write_x
  107 WRITE ATOMIC(32)    sg_write_x
  108 WRITE BUFFER        sg_test_rwbuf, sg_write_buffer, ++
  109 WRITE LONG(10)      sg_write_long, ++
  110 WRITE LONG(16)      sg_write_long, ++
  111 WRITE SAME(10)      sg_write_same
  112 WRITE SAME(16)      sg_write_same, sg_write_x
  113 WRITE SAME(32)      sg_write_same, sg_write_x
  114 WRITE SCATTERED(16)    sg_write_x
  115 WRITE SCATTERED(32)    sg_write_x
  116 WRITE STREAM(16)    sg_write_x
  117 WRITE STREAM(32)    sg_write_x
  118 WRITE USING TOKEN   ddpt, ddptctl, ++
  119 <most commands>     sg_raw
  120 
  121 
  122 ATA command         sg3_utils utilities that use this (S)ATA command
  123 -----------         ------------------------------------------------
  124 CHECK POWER MODE    examples/sg_sat_chk_power
  125 IDENTIFY DEVICE     sg_inq, sg_scan, sg_sat_identify,
  126                     examples/sg__sat_identify
  127 IDENTIFY PACKET DEVICE     sg_inq, sg_sat_identify,
  128                     examples/sg__sat_identify
  129 READ LOG EXT        sg_sat_phy_event, examples/sg__sat_phy_event
  130                     sg_sat_read_gplog
  131 READ LOG DMA EXT    sg_sat_read_gplog
  132 SET FEATURES        sg_sat_set_features
  133                     examples/sg__sat_set_features
  134 SMART READ DATA     examples/sg_sat_smart_rd_data
  135 
  136 
  137 NVMe command        sg3_utils utilities that use this NVMe command
  138 ------------        ------------------------------------------------
  139 IDENTIFY            sg_inq
  140 SES READ            sg_senddiag, sg_ses (NVME-MI command)
  141 SES WRITE           sg_senddiag, sg_ses (NVME-MI command)
  142 Device self-test    [SNTL of SEND DIAGNOSTIC] sg_senddiag  
  143 Get features(power management) [SNTL of REQUEST SENSE] sg_requests
  144 
  145 
  146 ++  command wrapper found in sg_cmds_basic.c, sg_cmds_mmc.c  or
  147     sg_cmds_extra.c for this command
  148 (2) this command was known as REPORT DEVICE IDENTIFIER prior to spc4r07
  149 (3) this command was known as SET DEVICE IDENTIFIER prior to spc4r07
  150 
  151 Note that any SCSI command, including bi-directional and variable length
  152 commands (whose cdb size is > 16 bytes) can be issued by the sg_raw utility.
  153 
  154 The RECEIVE COPY * commands in SPC-4 were grouped as one command name
  155 with 4 service actions in SPC-3 and earlier. The single SPC-3 command
  156 name is RECEIVE COPY RESULTS. The two opcodes associated with all
  157 EXTENDED COPY commands are now known as THIRD PARTY COPY IN (0x84) and
  158 THIRD PARTY COPY IN (0x83).
  159 
  160 
  161 Douglas Gilbert
  162 28th August 2019