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

Diff of /trunk/src/GLIStorageDevice.py

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

Revision 463 Revision 466
312 self._blocks = ((self._end - self._start) * self._device.get_cylinder_size()) / 512 312 self._blocks = ((self._end - self._start) * self._device.get_cylinder_size()) / 512
313 if existing: 313 if existing:
314 parted_part = device._parted_disk.get_partition(minor) 314 parted_part = device._parted_disk.get_partition(minor)
315 label_type = device._parted_disk.type.name 315 label_type = device._parted_disk.type.name
316 if label_type == "loop": 316 if label_type == "loop":
317 dev_node = device._device
318 else:
317 dev_node = device._device + str(minor) 319 dev_node = device._device + str(minor)
318 else:
319 dev_node = device._device
320 if type == "ntfs": 320 if type == "ntfs":
321 min_bytes = int(commands.getoutput("ntfsresize -f --info " + dev_node + " | grep -e '^You might resize' | sed -e 's/You might resize at //' -e 's/ bytes or .\+//'")) 321 min_bytes = int(commands.getoutput("ntfsresize -f --info " + dev_node + " | grep -e '^You might resize' | sed -e 's/You might resize at //' -e 's/ bytes or .\+//'"))
322 self._min_cylinders_for_resize = int(min_bytes / self._device._cylinder_bytes) + 1 322 self._min_cylinders_for_resize = int(min_bytes / self._device._cylinder_bytes) + 1
323 self._resizeable == True 323 self._resizeable == True
324 elif type == "ext2" or type == "ext3": 324 elif type == "ext2" or type == "ext3":

Legend:
Removed from v.463  
changed lines
  Added in v.466

  ViewVC Help
Powered by ViewVC 1.1.20