]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - e2fsck/unix.c
e2fsck: Avoid scary failure messages on low-memory systems
authorTheodore Ts'o <tytso@mit.edu>
Wed, 2 Sep 2009 00:01:38 +0000 (20:01 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 2 Sep 2009 00:01:38 +0000 (20:01 -0400)
commit82b59ca1ed0c2d6311f2e4b6e315d7ef82b62833
treea6a51c7ffd3a68a73f3b1e9ef863ac12104d3cf0
parent249c962ad8f2daabc403577d0c994e4c986c8f9a
e2fsck: Avoid scary failure messages on low-memory systems

On a very low-memory system, where ext2fs_check_desc() fails because
it can't allocate a block bitmap, catch this error and report it
immediate.  This avoids something like this, which could scare and
mislead the user:

   e2fsck: Group descriptors look bad... trying backup blocks...
   Media was not cleanly unmounted, check forced.
   Pass 1: Checking inodes, blocks, and sizes
   Error allocating block bitmap (1): Memory allocation failed
   e2fsck: aborted

Addresses-Debian-Bug: #509529

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c