freemyipod r779 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r778‎ | r779 | r780 >
Date:01:53, 8 November 2011
Author:user890104
Status:new
Tags:
Comment:
libemcore: fix storage_get_info
Modified paths:
  • /emcore/trunk/tools/libemcore.py (modified) (history)

Diff [purge]

Index: emcore/trunk/tools/libemcore.py
@@ -628,7 +628,7 @@
629629 def storage_get_info(self, volume):
630630 """ Get information about a storage device """
631631 self.logger.debug("Getting storage information\n")
632 - result = self.lib.monitorcommand(struct.pack("<IIII", 27, volume, 0, 0), "IIIIIIII", ("version", None, None, "sectorsize", "numsectors", "vendorptr", "productptr", "revisionptr"))
 632+ result = self.lib.monitorcommand(struct.pack("<IIII", 27, volume, 0, 0), "IIIIIIIII", ("version", None, None, "sectorsize", "numsectors", "vendorptr", "productptr", "revisionptr", "driverinfoptr"))
633633 if result.version != 1:
634634 raise ValueError("Unknown version of storage_info struct: %d" % result.version)
635635 result.vendor = self.readstring(result.vendorptr)