User Tools

Site Tools


ch10_handbook:data_retrieval

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ch10_handbook:data_retrieval [2014/04/13 20:07] bobch10_handbook:data_retrieval [2014/05/29 14:34] (current) bob
Line 1: Line 1:
 +~~ODT~~
 ===== DATA RETRIEVAL ===== ===== DATA RETRIEVAL =====
  
Line 35: Line 36:
    
 The SCSI INQUIRY command is used to query the SCSI device about its capabilities.  The SCSI INQUIRY command is used to query the SCSI device about its capabilities. 
-The structure for the INQUIRY CDB is shown in Figure 4-1. The structure for the Control field  +The structures for the INQUIRY CDB and the Control field are shown below
-is shown in Figure 4-2. The data download interface is required to support the standard  +
-INQUIRY response shown in Figure 4-3. Also required are the Supported Vital Product page,  +
-Unit Serial Number page, and Device Identification page.+
  
 <code> <code>
Line 72: Line 70:
 SCSI CDB Control field structure SCSI CDB Control field structure
 </b></center></html>  </b></center></html> 
 +
 +The data download interface is required to support the standard INQUIRY response shown in the structure below. Also required are the Supported Vital Product page, Unit Serial Number page, and Device Identification page.
  
 <code> <code>
Line 115: Line 115:
  
 The SCSI READ CAPACITY command is used to query the disk device about its size.  The SCSI READ CAPACITY command is used to query the disk device about its size. 
-The structure for the READ CAPACITY CDB is shown in Figure 4-4. This command returns  +The structure for the READ CAPACITY CDB is shown below
-the number of available logical blocks and the logical block size in bytes, shown in Figure 4-5.  +
-Note that returned values are big endian and must be byte swapped before they can be used on a  +
-little endian processor.+
  
 <code> <code>
Line 141: Line 138:
 </b></center></html>  </b></center></html> 
    
 +This command returns the number of available logical blocks and the logical block size in bytes, shown in the structure below.  Note that returned values are big endian and must be byte swapped before they can be used on a little endian processor.
 +
 <code> <code>
 struct SuCdbReadCapacityData  struct SuCdbReadCapacityData 
Line 156: Line 155:
 The SCSI protocol provides five different READ commands with various capabilities and sizes  The SCSI protocol provides five different READ commands with various capabilities and sizes 
 of the CDB. The Chapter 10 standard only requires the 10 byte variant of the READ command.  of the CDB. The Chapter 10 standard only requires the 10 byte variant of the READ command. 
-The structure for the READ CDB is shown in Figure 4-6. This command returns the data from +The structure for the READ CDB is shown below. This command returns the data from 
 the requested logical blocks. the requested logical blocks.
  
Line 314: Line 313:
 structure.  structure. 
    
-The SCSI_PASS_THROUGH structure is shown in Figure 4-7.+The SCSI_PASS_THROUGH structure is shown below.
  
 <code> <code>
Line 397: Line 396:
 be any arbitrary block number.  be any arbitrary block number. 
    
-A STANAG 4575 directory block has the structure shown in Figure 4-8. IRIG 106-03 +A STANAG 4575 directory block has the structure shown below. IRIG 106-03 
 and IRIG 106-04 defined the STANAG 4575 directory data as “little-endian.” Subsequent IRIG  and IRIG 106-04 defined the STANAG 4575 directory data as “little-endian.” Subsequent IRIG 
 106 versions have defined directory data as “big-endian.” Applications can test the  106 versions have defined directory data as “big-endian.” Applications can test the 
Line 403: Line 402:
 being used. If big-endian is being used, multi-byte values will need to be byte swapped before  being used. If big-endian is being used, multi-byte values will need to be byte swapped before 
 they can be used on a little endian processor such as an Intel x86 found in desktop computers.  they can be used on a little endian processor such as an Intel x86 found in desktop computers. 
-The various fields in the directory block are covered in detail in the Chapter 10 standard. The  +The various fields in the directory block are covered in detail in the Chapter 10 standard. 
-asuFileEntry[] array holds information about individual files. Its structure is shown in  +
-Figure 4-9. The size of the asuFileEntry[] array will vary depending on the disk block  +
-size. For a size of 512 bytes per disk block, the asuFileEntry[] array will have four  +
-elements.+
  
 <code> <code>
Line 427: Line 422:
 STANAG 4575 Directory Block structure STANAG 4575 Directory Block structure
 </b></center></html>  </b></center></html> 
 +
 +The asuFileEntry[] array holds information about individual files. Its structure is shown below. The size of the asuFileEntry[] array will vary depending on the disk block size. For a size of 512 bytes per disk block, the asuFileEntry[] array will have four 
 +elements.
  
 <code> <code>
Line 450: Line 448:
 and all file entries in that block are read and decoded. Then the next directory block, LBA equal  and all file entries in that block are read and decoded. Then the next directory block, LBA equal 
 to the value in uFwdLink, is read and decoded. Directory reading is finished when the  to the value in uFwdLink, is read and decoded. Directory reading is finished when the 
-uFwdLink equals the current LBA. This algorithm is shown in Figure 4-10+uFwdLink equals the current LBA. This algorithm is shown in below
  
-FIXME+{{ :ch10_handbook:stanag_directory_algorithm.png |}}
  
 <html><center><b> <html><center><b>
ch10_handbook/data_retrieval.1397437652.txt.gz · Last modified: 2014/04/13 20:07 by bob

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki