Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b99b69
)
b=17194
author
yury
<yury>
Thu, 9 Oct 2008 11:45:24 +0000
(11:45 +0000)
committer
yury
<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
patch
|
blob
|
history
diff --git
a/lustre/obdclass/obd_mount.c
b/lustre/obdclass/obd_mount.c
index
002a932
..
68ec18a
100644
(file)
--- 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);