def __init__(self, scsi, lba, nb, data, wrprotect=0, anchor=False,
              unmap=False, ndob=False, group=0):
     SCSICommand.__init__(self, scsi, 0 if ndob else scsi.blocksize, 0)
     self.dataout = None if ndob else data
     self.cdb = self.build_cdb(lba, nb, wrprotect, anchor, unmap,
                               ndob, group)
     self.execute()
 def __init__(self, scsi):
     """
     initialize a new instance
     :param scsi: a SCSI instance
     """
     SCSICommand.__init__(self, scsi, 0, 0)
     self.cdb = self.build_cdb()
     self.execute()
 def __init__(self, scsi):
     """
     initialize a new instance
     :param scsi: a SCSI instance
     """
     SCSICommand.__init__(self, scsi, 0, 0)
     self.cdb = self.build_cdb()
     self.execute()
    def __init__(self, scsi, lba, alloclen=16384):
        """
        initialize a new instance

        :param scsi: a SCSI instance
        :param alloclen: the max number of bytes allocated for the data_in buffer
        """
        SCSICommand.__init__(self, scsi, 0, alloclen)
        self.cdb = self.build_cdb(lba, alloclen)
        self.execute()
    def __init__(self, scsi, alloclen=8):
        """
        initialize a new instance

        :param scsi: a SCSI instance
        :param alloclen: the max number of bytes allocated for the data_in buffer
        """
        SCSICommand.__init__(self, scsi, 0, alloclen)
        self.cdb = self.build_cdb(alloclen)
        self.execute()
    def __init__(self, scsi, evpd=0, page_code=0, alloclen=96):
        """
        initialize a new instance

        :param scsi: a SCSI instance
        :param evpd: the byte to enable or disable vital product data
        :param page_code: the page code for the vpd page
        :param alloclen: the max number of bytes allocated for the data_in buffer
        """
        SCSICommand.__init__(self, scsi, 0, alloclen)
        self._evpd = evpd
        self.cdb = self.build_cdb(evpd, page_code, alloclen)
        self.execute()
    def __init__(self, scsi, evpd=0, page_code=0, alloclen=96):
        """
        initialize a new instance

        :param scsi: a SCSI instance
        :param evpd: the byte to enable or disable vital product data
        :param page_code: the page code for the vpd page
        :param alloclen: the max number of bytes allocated for the data_in buffer
        """
        SCSICommand.__init__(self, scsi, 0, alloclen)
        self._evpd = evpd
        self.cdb = self.build_cdb(evpd, page_code, alloclen)
        self.execute()
 def __init__(self,
              scsi,
              lba,
              nb,
              data,
              wrprotect=0,
              anchor=False,
              unmap=False,
              group=0):
     SCSICommand.__init__(self, scsi, scsi.blocksize, 0)
     self.dataout = data
     self.cdb = self.build_cdb(lba, nb, wrprotect, anchor, unmap, group)
     self.execute()
    def __init__(self, scsi, start, num, element_type=readelementstatus_enums.ELEMENT_TYPE.ALL,
                 voltag=0, curdata=1, dvcid=0, alloclen=16384):
        """
        initialize a new instance

        :param scsi: a SCSI instance
        :param start: first element to return
        :param num: number of elements to return
        :param element_type: type of element to return data for
        :param voltag
        :param curdata
        :param dvcid
        :param alloclen: the max number of bytes allocated for the data_in buffer
        """
        SCSICommand.__init__(self, scsi, 0, alloclen)
        self.cdb = self.build_cdb(start, num, element_type, voltag, curdata,
                                  dvcid, alloclen)
        self.execute()
 def __init__(self, scsi, lba, tl, data, **kwargs):
     SCSICommand.__init__(self, scsi, scsi.blocksize * tl, 0)
     self.dataout = data
     self.cdb = self.build_cdb(lba, tl, **kwargs)
     self.execute()
 def __init__(self, scsi, lba, tl, **kwargs):
     SCSICommand.__init__(self, scsi, 0, scsi.blocksize * tl)
     self.cdb = self.build_cdb(lba, tl, **kwargs)
     self.execute()
Exemple #12
0
 def __init__(self, scsi, lba, tl, data, **kwargs):
     SCSICommand.__init__(self, scsi, scsi.blocksize * tl, 0)
     self.dataout = data
     self.cdb = self.build_cdb(lba, tl, **kwargs)
     self.execute()
Exemple #13
0
 def __init__(self, scsi, lba, tl, **kwargs):
     SCSICommand.__init__(self, scsi, 0, scsi.blocksize * tl)
     self.cdb = self.build_cdb(lba, tl, **kwargs)
     self.execute()