| To: | linux-xfs@xxxxxxxxxxx |
|---|---|
| Subject: | XFS recovery |
| From: | ASANO Masahiro <masano@xxxxxxxxxxxxxx> |
| Date: | Fri, 28 Sep 2001 19:51:32 +0900 (JST) |
| Sender: | owner-linux-xfs@xxxxxxxxxxx |
Hi,
I encountered an accident; mounting a XFS filesystem caused log
recovery with a message "Starting XFS recovery on filesystem..."
in spite of it had been unmounted normally.
With my hack :), it seems that mount process searches the `log head'
from the out of range.
Here is a patch for 20010928 CVS tree.
--- linux/fs/xfs/xfs_log_recover.c.sv Thu Sep 27 11:19:58 2001
+++ linux/fs/xfs/xfs_log_recover.c Thu Sep 27 11:13:12 2001
@@ -310,6 +310,8 @@
buf = XFS_BUF_PTR(bp);
for (j = 0; j < bufblks; j++) {
+ if (i + j >= start_blk + nbblks)
+ break;
cycle = GET_CYCLE(buf, ARCH_CONVERT);
if (cycle == stop_on_cycle_no) {
error = i;
--
masano
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | migin (sample_hsm) returns EBADF too, Takayuki Sasaki |
|---|---|
| Next by Date: | XFS and OpenAFS (was Re[2]: XFS (v.1.0.1 for RedHat 7.1) and XFS (Irix 6.5.13m) differ? ), Keith Matthews |
| Previous by Thread: | migin (sample_hsm) returns EBADF too, Takayuki Sasaki |
| Next by Thread: | Re: XFS recovery, Steve Lord |
| Indexes: | [Date] [Thread] [Top] [All Lists] |