Ignore:
Timestamp:
Mar 15, 2017, 1:53:13 PM (7 days ago)
Author:
brainslayer
Message:

fix fs detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.5/drivers/mtd/maps/bcm947xx-flash.c

    r21248 r31672  
    403403
    404404        if (*((__u32 *) buf) == SQUASHFS_MAGIC) {
    405                 printk(KERN_EMERG  "%s: Filesystem type: squashfs, size=0x%x\n", mtd->name, (u32) sb->bytes_used);
     405                printk(KERN_EMERG  "%s: Filesystem type: squashfs, size=0x%x\n", mtd->name, (u32) le64_to_cpu(sb.bytes_used));
    406406
    407407                /* Update the squashfs partition size based on the superblock info */
    408                 part->size = sb->bytes_used;
     408                part->size = le64_to_cpu(sb.bytes_used);
    409409                //part->size = part->size + 1024; /* uncomment for belkin v2000 ! */
    410410                len = part->offset + part->size;
Note: See TracChangeset for help on using the changeset viewer.