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

Diff of /trunk/src/GLIStorageDevice.py

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

Revision 627 Revision 628
169 # @param end End sector (only used for existing partitions) 169 # @param end End sector (only used for existing partitions)
170 # @param type Partition type (ext2, ext3, fat32, linux-swap, free, extended, etc.) 170 # @param type Partition type (ext2, ext3, fat32, linux-swap, free, extended, etc.)
171 # @param mountpoint='' Partition mountpoint 171 # @param mountpoint='' Partition mountpoint
172 # @param mountopts='' Partition mount options 172 # @param mountopts='' Partition mount options
173 def add_partition(self, free_minor, mb, start, end, type, mountpoint='', mountopts=''): 173 def add_partition(self, free_minor, mb, start, end, type, mountpoint='', mountopts=''):
174 free_minor = free_minor
175 new_minor = int(free_minor) + 1 174 new_minor = int(free_minor) + 1
176 if self._partitions.has_key(new_minor): 175 if self._partitions.has_key(new_minor):
177 parts = self._partitions.keys() 176 parts = self._partitions.keys()
178 parts.sort() 177 parts.sort()
179 parts.reverse() 178 parts.reverse()

Legend:
Removed from v.627  
changed lines
  Added in v.628

  ViewVC Help
Powered by ViewVC 1.1.20