'Return True if LV is currently open, False otherwise.'

def lv_is_open(self, name):

    cmd = (LVM.LVM_CMD_PREFIX + ['lvdisplay', '--noheading', '-C', '-o', 'Attr', ('%s/%s' % (self.vg_name, name))])
    (out, _err) = self._execute(root_helper=self._root_helper, run_as_root=True, *cmd)
    out = out.strip()
    if out:
        if (out[5] == 'o'):
            return True
    return False
