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

Diff of /trunk/src/GLIStorageDevice.py

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

Revision 596 Revision 616
95 for part in ips: 95 for part in ips:
96 tmppart = ips[part] 96 tmppart = ips[part]
97 existing = False 97 existing = False
98 if tmppart['origminor'] and not tmppart['format']: 98 if tmppart['origminor'] and not tmppart['format']:
99 existing = True 99 existing = True
100 self._partitions[tmppart['minor']] = Partition(self, tmppart['minor'], tmppart['mb'], tmppart['start'], tmppart['end'], tmppart['type'], format=tmppart['format'], origminor=tmppart['origminor'], existing=existing, mountpoint=tmppart['mountpoint'], mountopts=['mountopts']) 100 self._partitions[tmppart['minor']] = Partition(self, tmppart['minor'], tmppart['mb'], tmppart['start'], tmppart['end'], tmppart['type'], format=tmppart['format'], origminor=tmppart['origminor'], existing=existing, mountpoint=tmppart['mountpoint'], mountopts=tmppart['mountopts'])
101 101
102 ## 102 ##
103 # Returns name of device (e.g. /dev/hda) being represented 103 # Returns name of device (e.g. /dev/hda) being represented
104 def get_device(self): 104 def get_device(self):
105 return self._device 105 return self._device
474 label_type = device._parted_disk.type.name 474 label_type = device._parted_disk.type.name
475 if label_type == "loop": 475 if label_type == "loop":
476 dev_node = device._device 476 dev_node = device._device
477 else: 477 else:
478 dev_node = device._device + str(self._orig_minor) 478 dev_node = device._device + str(self._orig_minor)
479 print "dev_node = " + dev_node 479# print "dev_node = " + dev_node
480 if type == "ntfs": 480 if type == "ntfs":
481 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 .\+//'")) 481 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 .\+//'"))
482 self._min_mb_for_resize = int(min_bytes / MEGABYTE) + 1 482 self._min_mb_for_resize = int(min_bytes / MEGABYTE) + 1
483 self._resizeable = True 483 self._resizeable = True
484 elif type == "ext2" or type == "ext3": 484 elif type == "ext2" or type == "ext3":

Legend:
Removed from v.596  
changed lines
  Added in v.616

  ViewVC Help
Powered by ViewVC 1.1.20