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

Diff of /trunk/src/GLIStorageDevice.py

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

Revision 310 Revision 311
415 def get_blocks(self): 415 def get_blocks(self):
416 return int(self._blocks) 416 return int(self._blocks)
417 417
418 def get_min_sectors_for_resize(self): 418 def get_min_sectors_for_resize(self):
419 if self.is_extended(): 419 if self.is_extended():
420 min_size = self._start
421 for part in self._device._partitions: 420# for part in self._device._partitions:
422 if part < 5: continue 421# if part < 5: continue
423 min_size = part.get_end() 422# min_size = part.get_end()
423 min_size = min([min_size] + [part.get_end() for part in self._device._partitions if part >= 5]) - self._start + 1
424 return min_size 424 return min_size
425 else: 425 else:
426 return self._min_sectors_for_resize 426 return self._min_sectors_for_resize
427 427
428 def get_max_sectors_for_resize(self): 428 def get_max_sectors_for_resize(self):

Legend:
Removed from v.310  
changed lines
  Added in v.311

  ViewVC Help
Powered by ViewVC 1.1.20