'Return info of the Thin Image volume pair.'

def _get_thin_copy_info(self, ldev):

    result = self.run_raidcom('get', 'snapshot', '-ldev_id', ldev)
    if (not result[1]):
        return (None, None)
    line = result[1].splitlines()[1].split()
    is_psus = (_STATUS_TABLE.get(line[2]) == PSUS)
    if (line[1] == 'P-VOL'):
        (pvol, svol) = (ldev, int(line[6]))
    else:
        (pvol, svol) = (int(line[6]), ldev)
    LOG.debug('Thin    copy    pair    status.    (P-VOL:    %(pvol)s,    S-VOL:    %(svol)s,    status:    %(status)s)', {'pvol': pvol, 'svol': svol, 'status': line[2]})
    return (pvol, [{'ldev': svol, 'is_thin': True, 'is_psus': is_psus}])
