Lines Matching full:name

53     """ Convert a string which might be numeric or the name of a partition type to an integer """
85 """ Convert a string which might be numeric or the name of a partition subtype to an integer """
188 """ Allow partition table access via name as well as by
192 if x.name == item:
210 def find_by_name(self, name): argument
212 if p.name == name:
221 # check on duplicate name
222 names = [p.name for p in self]
225 # print sorted duplicate partitions by name
227 critical('A list of partitions that have the same name:')
228 for p in sorted(self, key=lambda x:x.name):
229 if len(duplicates.intersection([p.name])) != 0:
295 '# Name, Type, SubType, Offset, Size, Flags']
303 # dictionary maps flag name (as used in CSV flags list, property name)
314 self.name = ''
329 res.name = fields[0]
347 return self.name == other.name and self.type == other.type \
354 … return "PartitionDefinition('%s', 0x%x, 0x%x, %s, %s)" % (self.name, self.type, self.subtype or 0,
358 …return "Part '%s' %d/%d @ 0x%x size 0x%x" % (self.name, self.type, self.subtype, self.offset or -1…
406 …eprecated and will be considered an error in the future release.' % (self.name, STRICT_DATA_ALIGNM…
412 if self.name in TYPES and TYPES.get(self.name, '') != self.type:
413 …critical("WARNING: Partition has name '%s' which is a partition type, but does not match this part…
414 'type (0x%x). Mistake in partition table?' % (self.name, self.type))
418 …if self.name in all_subtype_names and SUBTYPES.get(self.type, {}).get(self.name, '') != self.subty…
419 … critical("WARNING: Partition has name '%s' which is a partition subtype, but this partition has "
420 …matching type 0x%x and subtype 0x%x. Mistake in partition table?' % (self.name, self.type, self.su…
430 res.size, res.name, flags) = struct.unpack(cls.STRUCT_FORMAT, b)
431 if b'\x00' in res.name: # strip null byte padding from name string
432 res.name = res.name[:res.name.index(b'\x00')]
433 res.name = res.name.decode()
453 self.name.encode(),
474 return ','.join([self.name,
539 (args.input.name, table_size / 1024.0 / 1024.0, table_size, size_mb))
573 'Partition %s invalid: %s' % (partition.name, message))