|
From: <z7...@us...> - 2007-02-21 09:46:20
|
Revision: 861
http://svn.sourceforge.net/hackndev/?rev=861&view=rev
Author: z72ka
Date: 2007-02-21 01:46:12 -0800 (Wed, 21 Feb 2007)
Log Message:
-----------
Palmz72: New squashfs drivers for 2.6.20
Modified Paths:
--------------
linux4palm/linux/trunk/init/do_mounts_rd.c
Modified: linux4palm/linux/trunk/init/do_mounts_rd.c
===================================================================
--- linux4palm/linux/trunk/init/do_mounts_rd.c 2007-02-21 09:45:46 UTC (rev 860)
+++ linux4palm/linux/trunk/init/do_mounts_rd.c 2007-02-21 09:46:12 UTC (rev 861)
@@ -110,10 +110,14 @@
printk(KERN_NOTICE
"RAMDISK: squashfs filesystem found at block %d\n",
start_block);
- nblocks = (squashfsb->bytes_used+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS;
+ if (squashfsb->s_major < 3)
+ nblocks = (squashfsb->bytes_used_2+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS;
+ else
+ nblocks = (squashfsb->bytes_used+BLOCK_SIZE-1)>>BLOCK_SIZE_BITS;
goto done;
}
+
/*
* Read block 1 to test for minix and ext2 superblock
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|