| Age | Commit message (Collapse) | Author |
|
Signed-off-by: Uma Shankar <[email protected]>
Signed-off-by: Manjunatha C Achar <[email protected]>
Signed-off-by: Iqbal Shareef <[email protected]>
Signed-off-by: Hakgoo Lee <[email protected]>
|
|
The above warning was introduced originally in 436da3c "ext2load:
increase read speed" and fixed for newer toolchains in b803273 "ext2fs:
fix warning: 'blocknxt' may be used uninitialized". This change did not
fix the warning with gcc 4.2, as found in ELDK 4.2.
If we rework the while loop to initalize blocknxt before entering the
warning really goes away. Tested on am335x with an approx 7mb file and
crc32 in U-Boot befor and after this change.
Cc: Wolfgang Denk <[email protected]>
Cc: Eric Nelson <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Andreas Bießmann <[email protected]>
Cc: Reinhard Arlt <[email protected]>
Cc: Kim Phillips <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
|
|
This warning was introduced in 436da3c "ext2load: increase read
speed":
ext2fs.c: In function 'ext2fs_read_file':
ext2fs.c:458:19: warning: 'blocknxt' may be used uninitialized in this function [-Wuninitialized]
this change makes it go away.
Cc: Eric Nelson <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Andreas Bießmann <[email protected]>
Cc: Reinhard Arlt <[email protected]>
Signed-off-by: Kim Phillips <[email protected]>
|
|
This patch dramatically drops the amount of time u-boot needs to read a
file from an ext2 partition. On a typical 2 to 5 MB file (kernels and
initrds) it goes from tens of seconds to a couple seconds.
All we are doing here is grouping contiguous blocks into one read.
Boot tested on Globalscale Technologies Dreamplug (Kirkwood ARM SoC)
with three different files. sha1sums were calculated in Linux
userspace, and then confirmed after ext2load.
Signed-off-by: Jason Cooper <[email protected]>
Tested-by: Eric Nelson <[email protected]>
Tested-by: Thierry Reding <[email protected]>
|
|
Make ext2 use cache line aligned buffers for reading from the filesystem.
This is needed when caches are enabled because unaligned cache invalidates
are not safe.
Signed-off-by: Simon Glass <[email protected]>
|
|
Signed-off-by: Mike Frysinger <[email protected]>
|
|
Doubly-indirect block numbers are compared against the first-level
indirect block when checking for a cached copy. This is causing the
doubly-indirect block to be re-read each time it is accessed.
Repairing this reduces load time for a 70M file from 72 seconds
to 38 seconds.
Signed-off-by: Aaron Pace <[email protected]>
|
|
extfs.c assumes that there is always a valid inode_size field in the
superblock. But this is not true for ext2fs rev 0. Such ext2fs images
are for instance generated by genext2fs. Symptoms on ARM machines are
messages like: "raise: Signal # 8 caught"; on PowerPC "ext2ls" will
print nothing.
This fix checks for rev 0 and uses then 128 bytes as inode size.
Signed-off-by: Michael Brandt <[email protected]>
Tested on: TQM5200S
Tested-by: Wolfgang Denk <[email protected]>
Signed-off-by: Wolfgang Denk <[email protected]>
|
|
Signed-off-by: unsik Kim <[email protected]>
Signed-off-by: Bernhard Weirich <[email protected]>
Signed-off-by: Wolfgang Denk <[email protected]>
Tested-by: Wolfgang Denk <[email protected]>
|
|
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
|
|
ext2fs_read_file() had the function arguments swapped.
Pointed out by Mike Montour, 19 Dec 2007 22:34:25 -0800
Signed-off-by: Wolfgang Denk <[email protected]>
|
|
Fixed some broken instances of "#ifdef CMD_CFG_IDE" too.
Those always evaluated TRUE, and thus were always compiled
even when IDE really wasn't defined/wanted.
Signed-off-by: Jon Loeliger <[email protected]>
|
|
Signed-off-by: Jon Loeliger <[email protected]>
|
|
This is a compatibility step that allows both the older form
and the new form to co-exist for a while until the older can
be removed entirely.
All transformations are of the form:
Before:
#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
After:
#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT)
Signed-off-by: Jon Loeliger <[email protected]>
|
|
Insert missing __le32_to_cpu() for filesize in ext2fs_read_file().
Patch by Reinhard Arlt, 30 Dec 2005
|
|
- don't insist on leading '/' for filename in ext2load
- set default partition to useful value (1) in ext2load
* Patch by Andrew Dyer, 08 Jan 2005:
fix wrong return codes in ext2 code
|
|
|
|
|
|
|