e0ed7404719a9ddd2ba427a80db5365c8bad18c0 |
|
20-Mar-2014 |
JP Abgrall <jpa@google.com> |
Switch back to 1.42.9 now that there is a fix Revert "Revert changes that moved from 1.41.14 to 1.42.9" This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.
/external/e2fsprogs/e2fsck/util.c
|
65f0aab98b20b5994a726ab90d355248bcddfffd |
|
06-Mar-2014 |
JP Abgrall <jpa@google.com> |
Revert changes that moved from 1.41.14 to 1.42.9 Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H" commit e80e74c41d85ff93f3d212ba6512340f48054a93. Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master" This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Revert "Prepare for upstream 1.42.9" This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Bug: 13340735 Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8 Signed-off-by: JP Abgrall <jpa@google.com>
/external/e2fsprogs/e2fsck/util.c
|
08b8eab0cbebe1b109037dd8ffcf813ad35bfc3e |
|
04-Mar-2014 |
JP Abgrall <jpa@google.com> |
e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H Program received signal SIGSEGV, Segmentation fault. 0x56577382 in e2fsck_set_bitmap_type (fs=0x5658c2b8, default_type=2, profile_name=0x56580e12 "default", old_type=0x0) at external/e2fsprogs/e2fsck/util.c:797 797 profile_get_uint(e2fsck_global_ctx->profile, "bitmaps", e2fsck_global_ctx is only ever initialized in unix.c PRS() if HAVE_SIGNAL_H is defined. Change-Id: Ic93fb8d9114054f7bf8512c622b2fb9b2ae60584 Signed-off-by: JP Abgrall <jpa@google.com>
/external/e2fsprogs/e2fsck/util.c
|
18a1444b4f1e6a0948fd38fa0de382d86cfe04de |
|
31-Dec-2013 |
Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> |
Add files that would normally be generated by the e2fsprogs build system Android doesn't run ./configure and friends, so it has to rely on pre-populated versions of the autogenerated files. This is somewhat bogus (e.g. hardcoded little-endian reference in lib/ext2fs/ext2_types.h) and should at some point be fixed, but it's what Android has always done, not a regression from the 1.41.14 branch. Also, don't #include config.h which we don't generate (we pass what it usually contains as -D parameters from Android.mk) anywhere. Add a new Android.mk file for the quota library. Change-Id: I162c6327fee5bd06261d9cdcc34bda10f04a6f21 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/external/e2fsprogs/e2fsck/util.c
|
f404167dda29a59d2be2882328aeb074b9899669 |
|
17-Dec-2013 |
Theodore Ts'o <tytso@mit.edu> |
Clean up sparse warnings Mostly by adding static and removing excess extern qualifiers. Also convert a few remaining non-ANSI function declarations to ANSI. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
45ff69ffeb700012a7c052f5e45882557a40be7e |
|
16-Dec-2013 |
Andreas Dilger <adilger@dilger.ca> |
build: quiet LLVM non-literal string format warning Compiling with LLVM generates a large number of warnings due to the use of _() for wrapping strings for i18n: warning: format string is not a string literal (potentially insecure) [-Wformat-security] ./nls-enable.h:4:14: note: expanded from macro '_' #define _(a) (gettext (a)) ^~~~~~~~~~~~ These warnings are fixed by using "%s" as the format string, and then _() is used as the string argument. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
974d57d3b1f896d2064ba854d7c037ab6478ecf8 |
|
03-Dec-2013 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: use errcode_t to suppress some -Wconversion warnings We need to store some error codes using an int to keep recovery.c as close as possible to the recovery.c source file in the kernel. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
4dbfd79d1458ce1259b951377e341aeb6197f8c1 |
|
07-Oct-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
e2fsprogs: fix blk_t <- blk64_t assignment mismatches Fix all the places where we should be using a blk64_t instead of a blk_t. These fixes are more severe because 64bit values could be truncated silently. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
7ff040f30f0ff3bf5e2c832da3cb577e00a52d60 |
|
09-Sep-2013 |
Eric Sandeen <sandeen@redhat.com> |
e2fsck: don't try to stop mmp if there is no superblock set up Under some failure cases, we can get to fatal_error() without even having a superblock set up. In that case, ext2fs_mmp_stop() will segfault when it tries to dereference fs->super. Check for the existence of a superblock before we go down the ext2fs_mmp_stop() path to avoid this problem. Reported-by: Hubert Kario <hkario@redhat.com> Addresses-Red-Hat-Bugzilla: #997972 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
bf50beb9f6b4c4d4c9f8fc7fc81d716a9ee79218 |
|
07-Jan-2013 |
Eric Sandeen <sandeen@redhat.com> |
e2fsck: show size requested when memory allocation fails "e2fsck: Can't allocate dx_block info array" is only so helpful - it'd be nice to know how much it tried to allocate. In particular, since I think malloc(0) can return NULL, it'd be nice to know if maybe we passed in an uninitialized (or 0-initialized) size. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
e3507739e4185bdb2394928eb6479e48f4e690a8 |
|
01-Jan-2013 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nits This fixes the last set of gcc -Wall complaints. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
1d6fd6d0c3766a8165e69284c75812574a29c804 |
|
29-Nov-2012 |
Andreas Dilger <adilger@dilger.ca> |
misc: cleanup unused variables on MacOS Clean up unused variables found by GCC on MacOS. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
b0e91c89257d906324d6081c952157f768dfc699 |
|
18-Mar-2012 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: add logging capability Add the ability to log messages about a file system to a specified directory, using a file name templace that can be specified in /etc/e2fsck.conf. This allows us to suppress the output of overly verbose e2fsck outputs while still allowing the full logging output to go to an appropriate file. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
830b44f4385eb255d08fe0c8b200f8d8e3e97a8d |
|
16-Dec-2011 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: use different bitmap types as appropriate Now that we have multiple backend implementations of the bitmap code, this commit teaches e2fsck to use either the most appropriate backend for each use case. Since we don't know for sure if we will get it all right, the default choices can be overridden via e2fsck.conf. The various definitions are shown here, with the current defaults (which may change as we add more bitmap implementations and as learn what works better). ; EXT2FS_BAMP64_BITARRAY is 1 ; EXT2FS_BMAP64_RBTREE is 2 ; EXT2FS_BMAP64_AUTODIR is 3 [bitmaps] inode_used_map = 2 ; pass1 inode_dir_map = 3 ; pass1 inode_reg_map = 2 ; pass1 block_found_map = 2 ; pass1 inode_bad_map = 2 ; pass1 inode_imagic_map = 2 ; pass1 block_dup_map = 2 ; pass1 block_ea_map = 2 ; pass1 inode_link_info = 2 ; pass1 inode_dup_map = 2 ; pass1b inode_done_map = 3 ; pass3 inode_loop_detect = 3 ; pass3 fs_bitmaps = 2 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
13dcce8bb46961fcab14e87343e25aaebef7f44c |
|
01-Nov-2011 |
Eric Sandeen <sandeen@redhat.com> |
e2fsck: return more status if fsck aborts If we abort fsck (due to ENOMEM for example) we exit with only the FSCK_ERROR flag. It seems useful to do the same sorts of checks as we do on normal exit, and return whether the filesystem was modified, whether there are still uncorrected errors, etc, even in the abort case. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
0f5eba7501f467f757792ee449d16c9259b994fd |
|
24-Sep-2011 |
Andreas Dilger <adilger@whamcloud.com> |
ext2fs: add multi-mount protection (INCOMPAT_MMP) Multi-mount protection is feature that allows mke2fs, e2fsck, and others to detect if the filesystem is mounted on a remote node (on SAN disks) and avoid corrupting the filesystem. For e2fsprogs this means that it checks the MMP block to see if the filesystem is in use, and marks the filesystem busy while e2fsck is running on the system. This is useful on SAN disks that are shared between high-availability servers, or accessible by multiple nodes that aren't in HA pairs. MMP isn't intended to serve as a primary HA exclusion mechanism, but as a failsafe to protect against user, software, or hardware errors. There is no requirement that e2fsck updates the MMP block at regular intervals, but e2fsck does this occasionally to provide useful information to the sysadmin in case of a detected conflict. For the kernel (since Linux 3.0) MMP adds a "heartbeat" mechanism to periodically write to disk (every few seconds by default) to notify other nodes that the filesystem is still in use and unsafe to modify. Originally-by: Kalpak Shah <kalpak@clusterfs.com> Signed-off-by: Johann Lombardi <johann@whamcloud.com> Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
d1154eb460efe588eaed3d439c1caaca149fa362 |
|
18-Sep-2011 |
Theodore Ts'o <tytso@mit.edu> |
Shorten compile commands run by the build system The DEFS line in MCONFIG had gotten so long that it exceeded 4k, and this was starting to cause some tools heartburn. It also made "make V=1" almost useless, since trying to following the individual commands run by make was lost in the noise of all of the defines. So fix this by putting the configure-generated defines in lib/config.h and the directory pathnames to lib/dirpaths.h. In addition, clean up some vestigal defines in configure.in and in the Makefiles to further shorten the cc command lines. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
b18c5fd51e829e5fb1a434604d4373409379744b |
|
08-May-2011 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next
|
1760d167b2c0f91069a8b6e4a8fef1a5bc0f9ed1 |
|
08-May-2011 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: make the "fs is mounted; continue?" prompt more paranoid A user received the "file system is mounted; do you really want to continue" prompt, and then instead of typing "n" for no, forgot that he hadn't declined to continuation question, and typed the up-arrow key, which in his locale, the 'A' in "^[[A" was interpreted as "yes", and he lost data. This was clearly the user's fault, but to make e2fsck a bit safer against user stupidity/carelessness, we will change the "fs is mounted; continue?" prompt to default to no, and treat the escape character (along with the return and space characters, currently) as a request for the default answer. Addresses-Debian-Bug: #619859 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
24a117abd0340d247befbf7687ffb70547fdf218 |
|
08-Sep-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
Convert to use io_channel_read_blk64() and io_channel_write_blk64() Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
9facd076ae8af6e908e228392cea866ce0faf1bc |
|
28-May-2009 |
Ken Chen <kenchen@google.com> |
Add empty function for init_resource_track() and print_resource_track() in the case of ! defined RESOURCE_TRACK, so that we can clean up #ifdef throughout e2fsck source. Signed-off-by: Ken Chen <kenchen@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
70eabde9a581d340837c98b11d3ced324155d1ae |
|
28-May-2009 |
Andreas Dilger <adilger@sun.com> |
e2fsck: use unsigned values for memory tracking stats Use unsigned values for printing memory tracking to avoid overflows. The mallinfo() data is currently signed ints, but it might change in the future so we may as well compute/print unsigned longs. Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
b0258cbcd89862b927707258c67f2eeac769adc2 |
|
22-Apr-2009 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Fix warn_unused_result warnings from gcc Fixed a potential bug where by partial returns from the write(2) system call could lost characters to be sent to external progress bar display program. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
611378fe20777da83fcc8fe77ff2c515b7dc1e42 |
|
28-Oct-2008 |
Andreas Dilger <adilger@sun.com> |
e2fsck: print unsigned RAM usage statistics Running e2fsck against a 14.5TB filesystem with -tt it reported -200904kB for RAM usage in pass3 instead of the correct 2300773kB. The RAM usage statistics were being printed with %d instead of %u. Also fix a few places using %ld for inode numbers instead of %lu. Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
f2fe5da31deebc689bb64e71c8e873efc925d312 |
|
24-Feb-2009 |
Eric Sandeen <sandeen@redhat.com> |
e2fsprogs: fix potential null ptr defef in check_for_modules() The coverity scanner found this one. If a line in modules.dep has a ":" but no "/" then: if ((cp = strchr(buf, ':')) != NULL) *cp = 0; else continue; if ((cp = strrchr(buf, '/')) != NULL) cp++; /* XXX else cp is still null */ i = strlen(cp); ... we will deref a null pointer (cp). This can be demonstrated by putting a line like: foo.ko: into modules.dep. The below change just says that if no "/" is found, treat the whole string as the module name. Addresses-Red-Hat-Bugzilla: #486997 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
80875db58a6db58e3e2f01caf1adabca068d3ffb |
|
13-Oct-2008 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Offer to clear the test_fs flag if ext4 is available Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
79cc33628256e817610e921ddf600f72e4f879e1 |
|
11-Oct-2008 |
Eric Sandeen <sandeen@redhat.com> |
e2fsck: exit from preenhalt if IO errors were encountered If a block device is read-only, e2fsck -p gets into an infinite loop trying to preenhalt, closing and flushing the fs, which tries to flush the cache, which gets a write error and calls preenhalt which tries to close and flush the fs ... ad infinitum. Per Ted's suggestion just flag the ctx as "exiting" and short-circuit the infinite loop. Tested by running e2fsck -p on a block device set read-only by BLKROSET. Thanks to Vlado Potisk for reporting this. Addresses-Red-Hat-Bugzilla: #465679 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
efc6f628e15de95bcd13e4f0ee223cb42115d520 |
|
28-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
Remove trailing whitespace for the entire source tree Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
1bb6f6c87e860f8c021f966fc36aa8768590a227 |
|
24-Aug-2008 |
Andreas Dilger <adilger@sun.com> |
e2fsck_write_bitmaps() optimization This patch changes the e2fsck_write_bitmaps() function to write out the block and inode bitmaps together, instead of writing them in two passes. Signed-off-by: Andreas Dilger <adilger@sun.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
49a7360ba6b986242d9f0f33e102291d2e0dfb47 |
|
22-Oct-2007 |
Jose R. Santos <jrs@us.ibm.com> |
Make e2fsck uninit block group aware This patch has all the necesary pieces to open and fix filesystems created with the uninit block group feature. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
fefaef39e046781ddc75d15a8f12369f17dbd17d |
|
02-Feb-2008 |
Andreas Dilger <adilger@sun.com> |
Improve support for in-inode EA's Add vertificaton of the in-inode EA information, and allow in-inode EA's to have a checksum. Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
2eae093081a097a0a611fe2817e1533825dfdd86 |
|
11-Aug-2007 |
Theodore Ts'o <tytso@mit.edu> |
Clean up applications to not use EXT2FS_ENABLE_SWAPFS or EXT2_FLAG_SWAP_BYTES Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
6d96b00d57d236e2746f8245df6c8ea64abc64c1 |
|
04-Aug-2007 |
Theodore Ts'o <tytso@mit.edu> |
Add I/O statistics to e2fsck This patch instruments the libext2fs unix I/O manager and adds bytes read/written and data rate to e2fsck -tt pass/overall timing output. Signed-off-by: Jim Garlick <garlick@llnl.gov> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
e7b5d3c0b2bb1bafc5be57796ac1b68b1ac8e983 |
|
31-May-2007 |
Daniel Drake <d.drake@mmm.com> |
e2fsck: Add blocksize sanity check when finding a backup superblock I've been investigating why e2fsck refuses to restore the backup superblock of a partition with a broken primary superblock. The partition in question has a block size of 4096, and mke2fs reports that backup superblocks were created on blocks 32768, 98304, 163840, ... When running e2fsck, get_backup_sb starts by guessing a block size of 1024 and backup superblock at block 8193. I'm not sure why, but it actually finds a superblock at this location, so returns a context with superblock 8193, blocksize 1024. Later on, ext2fs_open2() tries to process this superblock. It then realises that the block size value stored in the superblock (4096) does not match what it was told (1024), so it bails out with EXT2_ET_UNEXPECTED_BLOCK_SIZE. fsck aborts without fixing the partition. The following patch solves the problem by discounting superblocks which do not meet the currently-sought block size. As a result, block 32768 (blocksize=4096) is now used to restore the backup, which agrees with the first location that mke2fs listed. Signed-off-by: Daniel Drake <d.drake@mmm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
e94bc631648299dca43a6015520b18f6232d50df |
|
14-Apr-2007 |
Theodore Ts'o <tytso@mit.edu> |
Improve I/O error messages in e2fsck Add better ehandler_operation() markers so it is clearer what e2fsck was doing when an I/O error is reported. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/e2fsck/util.c
|
cebe48a1ece8b9f61271c73ead83b59c8b36233e |
|
21-Mar-2005 |
Theodore Ts'o <tytso@mit.edu> |
Integrate code from Alex Thomas at Clusterfs to check extended attributes stored in inodes into e2fsck. There are a number of bug fixes and enhancements over the original lustre fsck BK repository. The biggest one is that this extended attribute values must be aligned on 4-byte boundaries.
/external/e2fsprogs/e2fsck/util.c
|
544349270e4c74a6feb971123884a8cf5052a7ee |
|
07-Dec-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nitpicks
/external/e2fsprogs/e2fsck/util.c
|
557ddb2fdf46c055d80c66267c8c83299527c8d1 |
|
25-Aug-2003 |
Theodore Ts'o <tytso@mit.edu> |
util.c (get_backup_sb): Check to make sure the context is passed in non-NULL before trying to dereference it. Otherwise we might core dump when called to expand %S in a problem description.
/external/e2fsprogs/e2fsck/util.c
|
aa75ecccab67ea7428fc19c66e80a28fb1ca941f |
|
17-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix the Apple Darwin port.
/external/e2fsprogs/e2fsck/util.c
|
f364093b1956def0b0f1d037852cbb645284d5f2 |
|
02-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
Update debugfs and e2fsck to use the blkid library.
/external/e2fsprogs/e2fsck/util.c
|
3e69906495d5898849a6154b0311b5d4a84a27ae |
|
14-Oct-2002 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nits. Fix format bug if NLS is in use. Add extra so that the info directory looks OK on OpenWall.
/external/e2fsprogs/e2fsck/util.c
|
542867fb705f0c5705365e470f3e3dd097b5bded |
|
24-Jul-2002 |
Theodore Ts'o <tytso@mit.edu> |
util.c (ask_yn, read_a_char): Note when the user has typed ^C, and abort processing by longjmp'ing to ctx->abort_loc.
/external/e2fsprogs/e2fsck/util.c
|
932a489cdf6bc83d69e59d3f8e0a57b733799ce1 |
|
16-May-2002 |
Andreas Dilger <adilger@clusterfs.com> |
Add support for creating and checking 8192-byte blocksize filesystems. We complain if you try to create such a filesystem on a system with 4096 byte PAGE_SIZE. Add checks for valid inode size for undocumented -I option.
/external/e2fsprogs/e2fsck/util.c
|
fae9bfaa5c1dc8b1bd6190d1a51024031e5ac9cf |
|
24-Dec-2001 |
Theodore Ts'o <tytso@mit.edu> |
Initialize buf to NULL to avoid crashing when called by fix_problem()
/external/e2fsprogs/e2fsck/util.c
|
f1a1761d678a5ac539419f62676ce4c1bbd0767e |
|
24-Dec-2001 |
Theodore Ts'o <tytso@mit.edu> |
Enhnaced the get backup superblock function so that it does the right thing if the filesystem superblock is unavailable; it will search for the superblock by iterating over possible blocksizes.
/external/e2fsprogs/e2fsck/util.c
|
e39ac92269d645bd279c2660d127b47159b8b1f9 |
|
05-May-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, util.c: util.c (fatal_error): Use the correct magic number when checking the magic number for the io_channel data structure. Also remove extraneous call to io_channel_flush() that was left over from an editing session.
/external/e2fsprogs/e2fsck/util.c
|
58a75177cabbea82361d037978485b2d656c8c89 |
|
12-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, util.c: util.c (fatal_error): Check to make sure the io_manager data structure is sane before trying to flush the io_channel. (From Andreas Dilger)
/external/e2fsprogs/e2fsck/util.c
|
53ef44c40a3e425d2c700d8fd77a6b655aa121fe |
|
06-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
Many files: journal.c, pass1.c, pass1b.c, pass3.c, recovery.c, revoke.c, super.c, unix.c, util.c: Fix random gcc -Wall complaints. jfs_user.h: Use more sophisticated inline handling to allow building with --enable-gcc-wall
/external/e2fsprogs/e2fsck/util.c
|
3f65f1acaa1f32740fdbc03affe3dc95f9668bad |
|
30-Oct-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, util.c: util.c (get_backup_sb): Calculate backup superblock correctly when the blocksize is > 1k.
/external/e2fsprogs/e2fsck/util.c
|
cc96b2b0fe3ab012f716e1fc6955b8530480fec8 |
|
22-Aug-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, util.c: util.c (fatal_error): Try to flush the I/O manager before forcing an exit.
/external/e2fsprogs/e2fsck/util.c
|
80c5d7e45ffa2d2e6d95eef99598c64e9a96d9c0 |
|
09-Feb-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2fsck.h, pass1.c, pass1b.c: e2fsck.h: pass1.c (mark_table_blocks, e2fsck_pass1): Remove ctx->block_illegal_map, since it's not needed by pass1, and pass1b has been modified to calculate it manually if needed. This reduces the memory footprint needed by e2fsck. pass1b.c (check_if_fs_block): New static function which returns whether or not a block overlaps with filesystem metadata. This replaces consulting the block_illegal_map bitmap. util.c: Make resource tracking message more concise.
/external/e2fsprogs/e2fsck/util.c
|
0c4a07264e55b42c6e30230e66b1dea7d4b94ea9 |
|
07-Feb-2000 |
Theodore Ts'o <tytso@mit.edu> |
Many files: badblocks.c, e2fsck.h, ehandler.c, emptydir.c, extend.c, flushb.c, iscan.c, message.c, pass1.c, pass1b.c, pass3.c pass4.c, pass5.c, problem.c, scantest.c, swapfs.c, unix.c, util.c: Add Internationalization support as suggested by Marco d'Itri <md@linux.it>.
/external/e2fsprogs/e2fsck/util.c
|
6fdc7a325c8bff67fc3a0489d0858bc7c48dc1a3 |
|
10-Nov-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2fsck.h, pass1.c, pass2.c, pass3.c, problem.c, problem.h, util.c: pass1.c (e2fsck_pass1): If the filesystem does not support imagic inodes, if an inode has the imagic flag set, offer to clear the imagic flag. If a valid device/fifo/socket has the immutable flag set, call the new helper function check_immutable() to offerto clear the immutable flag. pass2.c (check_filetype): Use the new ext2_file_type() helper function instead of calculating the file_type information manually. pass3.c (e2fsck_reconnect_file): When adding a link to lost+found, calculate the filetype information so that ext2fs_link() can use the information if applicable. (get_lost_and_found): Create the /lost+found directory with the correct filetype information if applicable. util.c (ext2_file_type), e2fsck.h: New function which returns the directory entry file type information given the inode's mode bits. problem.c, problem.h: Added new problem codes PR_1_SET_IMAGIC and PR_1_SET_IMMUTABLE. ChangeLog, mke2fs.8.in: mke2fs.8.in: Update manual page so that the sparse_option filesystem option is properly named.
/external/e2fsprogs/e2fsck/util.c
|
c81c6ce57efe7324551a96ce55bc877cf215c1ca |
|
26-Oct-1999 |
Theodore Ts'o <tytso@mit.edu> |
util.c: Fix stupid bugs in NT portability patch. ChangeLog, configure, configure.in: Add termios.h to the headers which are checked.
/external/e2fsprogs/e2fsck/util.c
|
e6597048d9d1637c9f997363a7f45c74b98fd0e2 |
|
26-Oct-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, mke2fs.c: mke2fs.c (PRS): Use __u64 instead of long long for portability reasons. Moved #include of sys/stat.h inside #ifdef HAVE_LINUX_MAJOR_H for portability reasons. ChangeLog, util.c: util.c: For NT portability, don't redefine getchar(), since stdio defines that. Instead we introduce a new abstract macro read_a_char() which is #defined to the right function as necessary.
/external/e2fsprogs/e2fsck/util.c
|
9ecd8becf46c32ed18e468fe647947b359d25cdb |
|
20-Oct-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, unix.c, util.c: unix.c (PRS), util.c (ask_yn): Add #ifdef's to make e2fsprogs easier to port to non-Unix platforms.
/external/e2fsprogs/e2fsck/util.c
|
4a9f59366b3c5503bde40e9566dc996a0a40626f |
|
16-Mar-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, pass3.c, problem.c, problem.h, util.c: util.c (print_resource_track): Use mallinfo if present to get more accurate malloc statistics. pass3.c (get_lost_and_found): Check to see if lost+found is a plain fail; if so, offer to unlink it. problem.c, problem.h (PR_3_LPF_NOTDIR): Add new problem code. problem.c: Fix problem message for PR_1_BAD_GROUP_DESCRIPTORS so that the block group number is printed. Add new prompt, PROMPT_UNLINK.
/external/e2fsprogs/e2fsck/util.c
|
7fdfabd3217ebe23b36063d561fc79960275db42 |
|
24-Nov-1997 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, pass1.c, util.c: pass1.c (e2fsck_pass1_check_device_inode): For now, only check to make sure the extra i_blocks in a device are cleared if the immutable flag is set. util.c (print_resource_track): Fix typo which caused the time/resource tracking to print "Pass 1 :" instead of "Pass 1: ". version.h: Change version to 1.12-WIP, in preparation for an e2fsprogs 1.12 release.
/external/e2fsprogs/e2fsck/util.c
|
f8188fff23dc2d9c9f858fb21264e46b17672825 |
|
14-Nov-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: pass1.c, pass2.c, pass3.c, pass4.c, pass5.c: Add calls to the progress indicator function. pass1.c (scan_callback): Add call to the progress feedback function (if it exists). super.c (check_super_block): Skip the device size check if the get_device_size returns EXT2_EXT_UNIMPLEMENTED. iscan.c (main): Don't use fatal_error() anymore. pass1b.c, swapfs.c, badblocks.c: Set E2F_FLAG_ABORT instead of calling fatal_error(0). problem.c, pass3.c (PR_3_ROOT_NOT_DIR_ABORT, PR_3_NO_ROOT_INODE_ABORT): New problem codes. problem.c, pass2.c (PR_2_SPLIT_DOT): New problem code. problem.c, pass1.c (PR_1_SUPPRESS_MESSAGES): New problem code. problemP.h: New file which separates out the private fix_problem data structures. util.c, dirinfo.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c, swapfs.c util.c: allocate_memory() now takes a e2fsck context as its first argument, and rename it to be e2fsck_allocate_memory(). problemP.h: New file which contains the private problem abstraction definitions. Makefile.pq: Remove include of MAKEFILE.STD, which doesn't exist at this point.
/external/e2fsprogs/e2fsck/util.c
|
08b213017f8371ce4b56ad4d368eb0f92211d04e |
|
03-Nov-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Change ext2fs_read_inode, ext2fs_write_inode to take the e2fsck context as their first argument. Change dir_info.c routines to take an e2fsck_context, renamed them to start with e2fsck_ to avoid namespace issues, and changed them to store the directory information inside the e2fsck context. Added e2fsck_run() which calls all of the e2fsck passes in the correct order, and which handles the return of abort codes. Added abort processing, both via setjmp/longjmp and via flags in the e2fsck context. Use a flag in the e2fsck context instead of the restart_e2fsck global variable. Change uses of free and malloc to ext2fs_free_mem and ext2fs_get_mem.
/external/e2fsprogs/e2fsck/util.c
|
8bf191e8660939687ef35c013066d2082cb16722 |
|
20-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Place #ifdef RESOURCE_TRACK around code which uses init_resource_track and print_resource_track. (Not all systems have timeval)
/external/e2fsprogs/e2fsck/util.c
|
1b6bf1759af884957234b7dce768b785f792abd0 |
|
03-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: pass*.c, super.c: Massive changes to avoid using printf and com_err routines. All diagnostic messages are now routed through the fix_problem interface. pass2.c (check_dir_block): Check for duplicate '.' and '..' entries. problem.c, problem.h: Add new problem codes PR_2_DUP_DOT and PR_2_DUP_DOT_DOT. problem.c: Added new problem codes for some of the superblock corruption checks, and for the pass header messages. ("Pass 1: xxxxx") util.c (print_resource_track): Now takes a description argument. super.c, unix.c, e2fsck.c: New files to separate out the operating-specific operations out from e2fsck.c. e2fsck.c now contains the global e2fsck context management routines, and super.c contains the "pass 0" initial validation of the superblock and global block group descriptors. pass1.c, pass2.c, pass3.c, pass4.c, pass5.c, util.c: Eliminate (nearly) all global variables and moved them to the e2fsck context structure. problem.c, problem.h: Added new problem codes PR_0_SB_CORRUPT, PR_0_FS_SIZE_WRONG, PR_0_NO_FRAGMENTS, PR_0_BLOCKS_PER_GROUP, PR_0_FIRST_DATA_BLOCK expect.1, expect.2: Updated tests to align with e2fsck problem.c changes.
/external/e2fsprogs/e2fsck/util.c
|
21c84b71e205b5ab13f14343da5645dcc985856d |
|
29-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checked in e2fsprogs-1.07
/external/e2fsprogs/e2fsck/util.c
|
5c576477ccb2f0ca8c5d5af2e2354fd8eeff1589 |
|
29-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checked in e2fsprogs 1.06
/external/e2fsprogs/e2fsck/util.c
|
7f88b04341d88c5df0360d930832c38040303b61 |
|
26-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checkin of e2fsprogs 1.03.
/external/e2fsprogs/e2fsck/util.c
|
50e1e10fa0ac12a3e2a9d20a75ee9041873cda96 |
|
26-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checked in e2fsprogs 0.5c
/external/e2fsprogs/e2fsck/util.c
|
f3db3566b5e1342e49dffc5ec3f418a838584194 |
|
26-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checkin of e2fsprogs 0.5b
/external/e2fsprogs/e2fsck/util.c
|
3839e65723771b85975f4263102dd3ceec4523c0 |
|
26-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checkin of e2fsprogs 0.5b
/external/e2fsprogs/e2fsck/util.c
|