Exemple #1
0
 def dump(self):
   print "BootBlock(%d):" % self.blk_num
   print " dos_type:  0x%08x %s (valid: %s) is_ffs=%s is_intl=%s is_dircache=%s" \
     % (self.dos_type, DosType.num_to_tag_str(self.dos_type), 
        self.valid_dos_type, 
        DosType.is_ffs(self.dos_type), 
        DosType.is_intl(self.dos_type),
        DosType.is_dircache(self.dos_type))
   print " root_blk:  %d (got %d)" % (self.calc_root_blk, self.got_root_blk)
   print " chksum:    0x%08x (got) 0x%08x (calc) -> bootable: %s" % (self.got_chksum, self.calc_chksum, self.valid_chksum)
   print " valid:     %s" % self.valid
   if self.boot_code != None:
       print " boot_code: %d bytes" % len(self.boot_code)
Exemple #2
0
 def __init__(self, block_scan, log, dos_type):
   self.block_scan = block_scan
   self.log = log
   self.dos_type = dos_type
   self.ffs = DosType.is_ffs(self.dos_type)
   self.infos = []
 def __init__(self, block_scan, log, dos_type):
   self.block_scan = block_scan
   self.log = log
   self.dos_type = dos_type
   self.ffs = DosType.is_ffs(self.dos_type)
   self.infos = []