Examples of CDB


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

   @Test
   public void testRead12inFile()
   {
      _logger.debug("********** READ12 FILE **********");
      int lba = generateRandomLBA();
      CDB cdb = new Read12(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

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

   @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

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

   @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

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

   @Test
   public void testReadCapacity10inMemory()
   {
      _logger.debug("********** READ CAPACITY 10 MEMORY **********");
      CDB cdb = new ReadCapacity10(false, 0);
      this.submitMemoryTask(cdb, cmdRef);
      verifyInputBufferCapacity10();
      cmdRef++;
   }
View Full Code Here

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

   @Test
   public void testReadCapacity10inFile()
   {
      _logger.debug("********** READ CAPACITY 10 FILE **********");
      CDB cdb = new ReadCapacity10(false, 0);
      this.submitFileTask(cdb, cmdRef);
      verifyInputBufferCapacity10();
      cmdRef++;
   }
View Full Code Here

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

   @Test
   public void testReadCapacity16inMemory()
   {
      _logger.debug("********** READ CAPACITY 16 MEMORY **********");
      CDB cdb = new ReadCapacity16(32, false, 0);
      this.submitMemoryTask(cdb, cmdRef);
      verifyInputBufferCapacity16();
      cmdRef++;
   }
View Full Code Here

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

   @Test
   public void testReadCapacity16inFile()
   {
      _logger.debug("********** READ CAPACITY 16 FILE **********");
      CDB cdb = new ReadCapacity16(32, false, 0);
      this.submitFileTask(cdb, cmdRef);
      verifyInputBufferCapacity16();
      cmdRef++;
   }
View Full Code Here

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

   @Test
   public void testRequestSenseinMemory()
   {
      _logger.debug("********** REQUEST SENSE TEST - MEMORY **********");
      CDB cdb = new RequestSense(false, ALLOCATION_LENGTH);
      this.submitMemoryTask(cdb, cmdRef);
      verifyInputBuffer();
      cmdRef++;
   }
View Full Code Here

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

   @Test
   public void testRequestSenseinFile()
   {
      _logger.debug("********** REQUEST SENSE TEST - FILE **********");
      CDB cdb = new RequestSense(false, ALLOCATION_LENGTH);
      this.submitFileTask(cdb, cmdRef);
      verifyInputBuffer();
      cmdRef++;
   }
View Full Code Here

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

   @Test
   public void testWrite6inMemory()
   {
      _logger.debug("********** WRITE6 MEMORY **********");
      int lba = generateRandomLBA();
      CDB cdb = new Write6(false, true, lba, WRITE_BLOCKS);
      ByteBuffer data = this.createReadData(WRITE_BLOCKS * STORE_BLOCK_SIZE, cmdRef);
      this.submitMemoryTask(cdb, cmdRef);
      verifyDeviceBuffer(data, this.getMemoryBuffer(), lba);
      this.purgeReadData(cmdRef);
      this.purgeDeviceData();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.