freemyipod r791 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r790‎ | r791 | r792 >
Date:21:04, 18 November 2011
Author:theseven
Status:new
Tags:
Comment:
emcore.py: Add ipodclassic_disablebbt and ipodclassic_reloadbbt commands
Modified paths:
  • /emcore/trunk/tools/emcore.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/emcore.py
@@ -930,6 +930,26 @@
931931 self.logger.info(" done\n")
932932
933933 @command
 934+ def ipodclassic_disablebbt(self):
 935+ """
 936+ Target-specific function: ipodclassic
 937+ Disables the hard disk bad block table, if present
 938+ """
 939+ self.logger.info("Disabling hard disk BBT...")
 940+ data = self.emcore.ipodclassic_disablebbt()
 941+ self.logger.info(" done\n")
 942+
 943+ @command
 944+ def ipodclassic_reloadbbt(self):
 945+ """
 946+ Target-specific function: ipodclassic
 947+ Reloads the hard disk bad block table, if present
 948+ """
 949+ self.logger.info("Reloading hard disk BBT...")
 950+ data = self.emcore.ipodclassic_reloadbbt()
 951+ self.logger.info(" done\n")
 952+
 953+ @command
934954 def getvolumeinfo(self, volume):
935955 """
936956 Gathers some information about a storage volume used