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

fix fs detection

File:
1 edited

Legend:

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

    r25348 r31672  
    411411
    412412        if (*((__u32 *)buf) == SQUASHFS_MAGIC) {
    413                 printk(KERN_EMERG "%s: Filesystem type: squashfs, size=0x%x\n", mtd->name, (u32)sb->bytes_used);
     413                printk(KERN_EMERG "%s: Filesystem type: squashfs, size=0x%x\n", mtd->name, (u32)le64_to_cpu(sb->bytes_used));
    414414
    415415                /* Update the squashfs partition size based on the superblock info */
    416                 part->size = sb->bytes_used;
     416                part->size = le64_to_cpu(sb->bytes_used);
    417417                //part->size = part->size + 1024; /* uncomment for belkin v2000 ! */
    418418                len = part->offset + part->size;
Note: See TracChangeset for help on using the changeset viewer.