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

Diff of /trunk/src/GLIStorageDevice.py

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

Revision 639 Revision 640
82 last_log_part = parted_part.num 82 last_log_part = parted_part.num
83 else: 83 else:
84 last_part = parted_part.num 84 last_part = parted_part.num
85 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) 85 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)
86 elif parted_part.type_name == "free": 86 elif parted_part.type_name == "free":
87 parent_part = self.get_partition_at(parted_part.geom.start, ignore_extended=0) 87# parent_part = self.get_partition_at(parted_part.geom.start, ignore_extended=0)
88 if parent_part: 88# if parent_part:
89 if self.get_extended_partition() and parted_part.geom.start >= self._partitions[self.get_extended()].get_start() and parted_part.geom.end <= self._partitions[self.get_extended()].get_end():
89 self._partitions[last_log_part+FREE_MINOR_FRAC_LOG] = Partition(self, last_log_part+FREE_MINOR_FRAC_LOG, part_mb, parted_part.geom.start, parted_part.geom.end, "free", format=False, existing=False) 90 self._partitions[last_log_part+FREE_MINOR_FRAC_LOG] = Partition(self, last_log_part+FREE_MINOR_FRAC_LOG, part_mb, parted_part.geom.start, parted_part.geom.end, "free", format=False, existing=False)
90 last_log_part += 1 91 last_log_part += 1
91 else: 92 else:
92 self._partitions[last_part+FREE_MINOR_FRAC_PRI] = Partition(self, last_part+FREE_MINOR_FRAC_PRI, part_mb, parted_part.geom.start, parted_part.geom.end, "free", format=False, existing=False) 93 self._partitions[last_part+FREE_MINOR_FRAC_PRI] = Partition(self, last_part+FREE_MINOR_FRAC_PRI, part_mb, parted_part.geom.start, parted_part.geom.end, "free", format=False, existing=False)
93 last_part += 1 94 last_part += 1

Legend:
Removed from v.639  
changed lines
  Added in v.640

  ViewVC Help
Powered by ViewVC 1.1.20