summaryrefslogtreecommitdiff
path: root/fs/ext2
AgeCommit message (Collapse)Author
2012-08-09ext4fs ls load supportUma Shankar
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]>
2012-08-07ext2fs: fix warning: 'blocknxt' may be used uninitialized with gcc 4.2Tom Rini
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]>
2012-07-08ext2fs: fix warning: 'blocknxt' may be used uninitializedKim Phillips
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]>
2012-06-21ext2load: increase read speed[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]>
2012-01-05ext2: Cache line align indirection buffersSimon Glass
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]>
2011-10-25ext2: Cache line aligned partial sector bounce bufferAnton staaf
Currently, if a device read request is done that does not begin or end on a sector boundary a stack allocated bounce buffer is used to perform the read, and then just the part of the sector that is needed is copied into the users buffer. This stack allocation can mean that the bounce buffer will not be aligned to the dcache line size. This is a problem when caches are enabled because unaligned cache invalidates are not safe. This patch uses ALLOC_CACHE_ALIGN_BUFFER to create a stack allocated cache line size aligned bounce buffer. Signed-off-by: Anton Staaf <[email protected]> Cc: Lukasz Majewski <[email protected]> Cc: Mike Frysinger <[email protected]> Cc: Dave Liu <[email protected]> Cc: Andy Fleming <[email protected]> Cc: Albert ARIBAUD <[email protected]> Change-Id: I32e1594d90ef039137bb219b0f7ced55768744ff Acked-by: Mike Frysinger <[email protected]>
2011-07-28ext2: Simplify partial sector access logicAnton Staaf
Previously reading or writing zero full sectors (reading the end of one sector and the beginning of the next for example) was special cased and involved stack allocating a second sector buffer. This change uses the same code path for this case as well as when there are a non-zero number of full sectors to access. The result is easier to read and reduces the maximum stack used. Signed-off-by: Anton Staaf <[email protected]> Cc: Andy Fleming <[email protected]> Acked-by: Detlev Zundel <[email protected]>
2011-07-28ext2: Fix checkpatch violationsAnton Staaf
Fix all checkpatch violations in the low level Ext2 block device reading code. This is done in preparation for cleaning up the partial sector access code. Signed-off-by: Anton Staaf <[email protected]> Cc: Andy Fleming <[email protected]> Acked-by: Detlev Zundel <[email protected]>
2010-11-28ext2: constify file/dir namesMike Frysinger
Signed-off-by: Mike Frysinger <[email protected]>
2010-11-17Switch from archive libraries to partial linkingSebastien Carlier
Before this commit, weak symbols were not overridden by non-weak symbols found in archive libraries when linking with recent versions of binutils. As stated in the System V ABI, "the link editor does not extract archive members to resolve undefined weak symbols". This commit changes all Makefiles to use partial linking (ld -r) instead of creating library archives, which forces all symbols to participate in linking, allowing non-weak symbols to override weak symbols as intended. This approach is also used by Linux, from which the gmake function cmd_link_o_target (defined in config.mk and used in all Makefiles) is inspired. The name of each former library archive is preserved except for extensions which change from ".a" to ".o". This commit updates references accordingly where needed, in particular in some linker scripts. This commit reveals board configurations that exclude some features but include source files that depend these disabled features in the build, resulting in undefined symbols. Known such cases include: - disabling CMD_NET but not CMD_NFS; - enabling CONFIG_OF_LIBFDT but not CONFIG_QE. Signed-off-by: Sebastien Carlier <[email protected]>
2010-08-07ext2fs: Fix optimization bug for doubly-indirect block pointersAaron Pace
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]>
2009-12-05EXT2FS: fix inode size for ext2fs rev#0Michael Brandt
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]>
2009-07-28ext2: fix inode size and calculationsWeirich, Bernhard
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]>
2008-08-31fs: Move conditional compilation to MakefileJean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
2008-03-02fs: Fix ext2 read issueDave Liu
The ext2 aligned process will corrupt the key data struct, the patch fix this. Signed-off-by: Dave Liu <[email protected]>
2008-01-09Fix memset bug in ext2fs_read_file()Wolfgang Denk
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]>
2007-07-10fs/: Remove lingering references to CFG_CMD_* symbols.Jon Loeliger
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]>
2007-07-09fs/: Remove obsolete references to CONFIG_COMMANDSJon Loeliger
Signed-off-by: Jon Loeliger <[email protected]>
2007-07-04fs/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger
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]>
2006-10-09Move "ar" flags to config.mk to allow for silent "make -s"Wolfgang Denk
Based on patch by Mike Frysinger, 20 Jun 2006
2006-09-01Add support for a saving build objects in a separate directory.Marian Balakowicz
Modifications are based on the linux kernel approach and support two use cases: 1) Add O= to the make command line 'make O=/tmp/build all' 2) Set environement variable BUILD_DIR to point to the desired location 'export BUILD_DIR=/tmp/build' 'make' The second approach can also be used with a MAKEALL script 'export BUILD_DIR=/tmp/build' './MAKEALL' Command line 'O=' setting overrides BUILD_DIR environent variable. When none of the above methods is used the local build is performed and the object files are placed in the source directory.
2006-01-18Add VGA support (CT69000) to CPCI750 board.Stefan Roese
Insert missing __le32_to_cpu() for filesize in ext2fs_read_file(). Patch by Reinhard Arlt, 30 Dec 2005
2005-03-04* Fix get_partition_info() parameter error in all other callswdenk
(common/cmd_ide.c, common/cmd_reiser.c, common/cmd_scsi.c). * Enable USB and IDE support for INKA4x0 board * Patch by Andrew Dyer, 28 February 2005: fix ext2load passing an incorrect pointer to get_partition_info() resulting in load failure for devices other than 0
2005-02-04* Patch by Cajus Hahn, 04 Feb 2005:wdenk
- 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
2004-12-19Cleanup: avoid trigraph warning in fs/ext2/ext2fs.c; rename UC100 -> uc100wdenk
2004-12-16Code cleanup.wdenk
2004-12-16ext2fs support addedstroese