Whamcloud - gitweb
b=17194
authoryury <yury>
Thu, 9 Oct 2008 11:45:24 +0000 (11:45 +0000)
committeryury <yury>
Thu, 9 Oct 2008 11:45:24 +0000 (11:45 +0000)
r=tappro,adilger

- truncate last_rcvd for abort recovery case

lustre/obdclass/obd_mount.c

index 002a932..68ec18a 100644 (file)
@@ -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);