/[gli]/trunk/src/GLIStorageDevice.py
Gentoo

Diff of /trunk/src/GLIStorageDevice.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 500 Revision 501
53 part_mb = int((parted_part.geom.end - parted_part.geom.start + 1) * self._sector_bytes / MEGABYTE) 53 part_mb = int((parted_part.geom.end - parted_part.geom.start + 1) * self._sector_bytes / MEGABYTE)
54 if parted_part.num >= 1: 54 if parted_part.num >= 1:
55 fs_type = "" 55 fs_type = ""
56 if parted_part.fs_type != None: fs_type = parted_part.fs_type.name 56 if parted_part.fs_type != None: fs_type = parted_part.fs_type.name
57 if parted_part.type == 2: fs_type = "extended" 57 if parted_part.type == 2: fs_type = "extended"
58 if archinfo[self._arch]['extended'] and parted_part.num > 4:
59 last_log_part = parted_part.num
60 else:
61 last_part = parted_part.num
58 self._partitions[int(parted_part.num)] = Partition(self, parted_part.num, part_mb, parted_part.geom.start, parted_part.geom.end, fs_type, format=False, existing=True) 62 self._partitions[int(parted_part.num)] = Partition(self, parted_part.num, part_mb, parted_part.geom.start, parted_part.geom.end, fs_type, format=False, existing=True)
59 elif parted_part.type_name == "free": 63 elif parted_part.type_name == "free":
60 parent_part = self.get_partition_at(parted_part.geom.start, ignore_extended=0) 64 parent_part = self.get_partition_at(parted_part.geom.start, ignore_extended=0)
61 if parent_part: 65 if parent_part:
62 self._partitions[Decimal(str(float(last_log_part+0.9)))] = Partition(self, Decimal(str(float(last_log_part+0.9))), part_mb, parted_part.geom.start, parted_part.geom.end, "free", format=False, existing=False) 66 self._partitions[Decimal(str(float(last_log_part+0.9)))] = Partition(self, Decimal(str(float(last_log_part+0.9))), part_mb, parted_part.geom.start, parted_part.geom.end, "free", format=False, existing=False)

Legend:
Removed from v.500  
changed lines
  Added in v.501

  ViewVC Help
Powered by ViewVC 1.1.20