Package org.jscsi.scsi.protocol.cdb

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


      return new Command(nexus, new TestUnitReady(), TaskAttribute.SIMPLE, 0, 0);
   }

   public static Command getReportLunsCommand(Nexus nexus)
   {
      return new Command(nexus, new ReportLuns(), TaskAttribute.SIMPLE, 0, 0);
   }
View Full Code Here


   @Override
   protected void execute() throws InterruptedException, SenseException
   {
      _logger.debug("executing ReportLuns task");

      ReportLuns cdb = (ReportLuns) getCommand().getCommandDescriptorBlock();
      ByteBuffer data = ByteBuffer.allocate((int) cdb.getAllocationLength());

      try
      {
         if (cdb.getSelectReport() == 0x01)
         {
            // SELECT REPORT 0x01
            // Report only well known logical units. Because this implementation does not
            // support well known logical units, zero LUs are returned.
            data.putLong(0); // 4-byte LUN LIST LENGTH = 0, 4-byte reserved field
View Full Code Here

TOP

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

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.