Whamcloud - gitweb
LU-367 Handle DB->open errors without crashing 67/867/4
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 31 May 2011 10:04:54 +0000 (04:04 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 31 May 2011 20:42:30 +0000 (14:42 -0600)
commit4ef693a23fda00eec24840a3d072f8fe466b845f
tree0455857eeea1639a56a27ada91903755a96c5397
parent06506568215ef1b7e7c612e585969fd00aac6b9d
LU-367 Handle DB->open errors without crashing

Remove the DB_INIT_LOCK call from the second db->open() call, since
this caused errors on the newer db4.  We shouldn't need this anyway
because the databases are never opened concurrently in r/w mode.

If there is an error opening the MDSDB or OSTDB, print out a consistent
error message.  In lfsck_run_checks() it didn't have enough function
arguments, so when the MDSDB failed to open (e.g. due to a different
version of db4 installed on the MDS, OSS, or client nodes) it caused
lfsck to crash afterward.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I65f9de6886c401315530d6b9e402ce8b1f84e8ce
patches/e2fsprogs-lfsck.patch