Lines Matching full:name
138 """ Allow partition table access via name as well as by
142 if x.name == item:
172 def find_by_name(self, name): argument
174 if p.name == name:
183 # check on duplicate name
184 names = [p.name for p in self]
187 # print sorted duplicate partitions by name
189 print('A list of partitions that have the same name:')
190 for p in sorted(self, key=lambda x:x.name):
191 if len(duplicates.intersection([p.name])) != 0:
245 '# Name, Type, SubType, Offset, Size, Flags']
258 # dictionary maps flag name (as used in CSV flags list, property name)
269 self.name = ''
284 res.name = fields[0]
302 return self.name == other.name and self.type == other.type \
309 … return "PartitionDefinition('%s', 0x%x, 0x%x, %s, %s)" % (self.name, self.type, self.subtype or 0,
313 …return "Part '%s' %d/%d @ 0x%x size 0x%x" % (self.name, self.type, self.subtype, self.offset or -1…
360 if self.name in TYPES and TYPES.get(self.name, '') != self.type:
361 …critical("WARNING: Partition has name '%s' which is a partition type, but does not match this part…
362 'type (0x%x). Mistake in partition table?' % (self.name, self.type))
366 …if self.name in all_subtype_names and SUBTYPES.get(self.type, {}).get(self.name, '') != self.subty…
367 … critical("WARNING: Partition has name '%s' which is a partition subtype, but this partition has "
368 …matching type 0x%x and subtype 0x%x. Mistake in partition table?' % (self.name, self.type, self.su…
378 res.size, res.name, flags) = struct.unpack(cls.STRUCT_FORMAT, b)
379 if b'\x00' in res.name: # strip null byte padding from name string
380 res.name = res.name[:res.name.index(b'\x00')]
381 res.name = res.name.decode()
401 self.name.encode(),
422 return ','.join([self.name,
495 (args.input.name, table_size / 1024.0 / 1024.0, table_size, size_mb))
529 'Partition %s invalid: %s' % (partition.name, message))