Package org.jscsi.scsi.protocol.cdb

Examples of org.jscsi.scsi.protocol.cdb.Read16


                  this.cmdRef, 0);
      this.transport.createReadData(NUM_BLOCKS_TRANSFER * STORE_BLOCK_SIZE, this.cmdRef);
      lu.enqueue(this.transport, cmd1);
      this.cmdRef++;

      CDB cdb2 = new Read16(0, false, false, false, false, false, 10, NUM_BLOCKS_TRANSFER);
      Command cmd2 =
            new Command(this.transport.createNexus(this.cmdRef), cdb2, TaskAttribute.ORDERED,
                  this.cmdRef, 0);
      lu.enqueue(this.transport, cmd2);

View Full Code Here


   }

   private void performRead16(int lba, int numBlocks, ByteBuffer expectedData)
   {
      _logger.debug("********** READ16 MEMORY **********");
      CDB cdb = new Read16(0, false, false, false, false, false, lba, numBlocks);
      this.submitMemoryTask(cdb, cmdRef);
      verifyInputBuffer(numBlocks, expectedData);
      this.purgeDeviceData();
      cmdRef++;
   }
View Full Code Here

   @Test
   public void testRead16inMemory()
   {
      _logger.debug("********** READ16 MEMORY **********");
      int lba = generateRandomLBA();
      CDB cdb = new Read16(0, false, false, false, false, false, lba, READ_BLOCKS);
      ByteBuffer data =
            this.writeDeviceData(lba * STORE_BLOCK_SIZE, READ_BLOCKS * STORE_BLOCK_SIZE, cmdRef);
      this.submitMemoryTask(cdb, cmdRef);
      verifyInputBuffer(data);
      this.purgeDeviceData();
View Full Code Here

   @Test
   public void testRead16inFile()
   {
      _logger.debug("********** READ16 FILE **********");
      int lba = generateRandomLBA();
      CDB cdb = new Read16(0, false, false, false, false, false, lba, READ_BLOCKS);
      ByteBuffer data =
            this.writeDeviceData(lba * STORE_BLOCK_SIZE, READ_BLOCKS * STORE_BLOCK_SIZE, cmdRef);
      this.submitFileTask(cdb, cmdRef);
      verifyInputBuffer(data);
      this.purgeDeviceData();
View Full Code Here

TOP

Related Classes of org.jscsi.scsi.protocol.cdb.Read16

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.