Whamcloud - gitweb
LU-266 e2fsprogs: regenerate LAST_ID file v1.42.5.wc3
authorKit Westneat <kwestneat@ddn.com>
Tue, 11 Sep 2012 13:28:36 +0000 (15:28 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 15 Sep 2012 18:50:41 +0000 (12:50 -0600)
commit4aeec6241a0267c326aa002aaf0f07bb6ffc27a7
tree02e84cfb28c3be382c2d4018c4faf918915206b0
parent96b776f3302b950989e1a01a1eae9a6f58f5764f
LU-266 e2fsprogs: 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