def _get_size(self): self._check_self() if self.is_block: return (get_blockdev_size(self._parse_info('File')) * int(self._parse_info('SectorSize'))) else: return int(self._parse_info('Size'))
def _get_size(self): # udev_path doesn't work here, what if LV gets renamed? return get_blockdev_size(self._parse_info('device')) * int(self._parse_info('SectorSize'))