From dd4c74db09ed5d3569fbf16747239f7bd7800b61 Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 9 Oct 2008 11:45:24 +0000 Subject: [PATCH] b=17194 r=tappro,adilger - truncate last_rcvd for abort recovery case --- lustre/obdclass/obd_mount.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 002a932..68ec18a 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -1322,6 +1322,10 @@ static struct vfsmount *server_kernel_mount(struct super_block *sb) GOTO(out_free, rc); } + if (lmd->lmd_flags & LMD_FLG_ABORT_RECOV) + simple_truncate(mnt->mnt_sb->s_root, mnt, LAST_RCVD, + LR_CLIENT_START); + OBD_PAGE_FREE(__page); lsi->lsi_ldd = ldd; /* freed at lsi cleanup */ CDEBUG(D_SUPER, "%s: mnt = %p\n", lmd->lmd_dev, mnt); -- 1.8.3.1