Exemplo n.º 1
0
    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'))
Exemplo n.º 2
0
    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'))
Exemplo n.º 3
0
 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'))
Exemplo n.º 4
0
 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'))