コード例 #1
0
    def getlbastatus(self, lba, **kwargs):
        """
        Returns a GetLBAStatus Instance

        :param lba: starting lba
        :param kwargs: a dict with key/value pairs
                       alloc_len = 16384: size of requested datain
        :return: a GetLBAStatus instance
        """
        opcode = next(get_opcode(self.device.opcodes, '9E'))
        cmd = GetLBAStatus(opcode, lba, **kwargs)
        self.execute(cmd)
        cmd.unmarshall()
        return cmd
コード例 #2
0
ファイル: scsi.py プロジェクト: rosjat/python-scsi
    def getlbastatus(self,
                     lba,
                     **kwargs):
        """
        Returns a GetLBAStatus Instance

        :param lba: starting lba
        :param kwargs: a dict with key/value pairs
                       alloc_len = 16384: size of requested datain
        :return: a GetLBAStatus instance
        """
        opcode = next(get_opcode(self.device.opcodes, '9E'))
        cmd = GetLBAStatus(opcode,
                           lba,
                           **kwargs)
        self.execute(cmd)
        cmd.unmarshall()
        return cmd