Whamcloud - gitweb
LU-266 e2fsck: regenerate LAST_ID file
authorKit Westneat <kwestneat@ddn.com>
Tue, 11 Sep 2012 13:28:36 +0000 (15:28 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 29 Nov 2012 13:09:19 +0000 (06:09 -0700)
commit640e40920a3686f1404dcf287185040fa58ae41a
tree47d89859da3e800ea7b93030a1f5c13049844eb4
parent90eed25e003ab988777b73560ea743701e721eb4
LU-266 e2fsck: regenerate LAST_ID file

e2fsck should be able to regenerate the LAST_ID file if it gets corrupted.
This patch will create a new LAST_ID file if it was deleted, and removes the
unnecessary lfsck_get_last_id function. The last_id is then set as before in
e2fsck_pass6_ost to be either the max objid on disk, or the MDS' max ost id,
whichever is larger.

Reported-by: Bernd Schubert <aakef@fastmail.fm>
Signed-off-by: Kit Westneat <kwestneat@ddn.com>
Change-Id: Ic5396da000909b826b76da2fd5a0b5ce88b06944
e2fsck/pass6.c