public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* XFS: bad clientid on recovery on MIPS (VIPT cache)
@ 2010-10-21 12:11 Ajeet Yadav
  2010-10-21 12:47 ` Ajeet Yadav
  2010-10-21 12:52 ` Christoph Hellwig
  0 siblings, 2 replies; 12+ messages in thread
From: Ajeet Yadav @ 2010-10-21 12:11 UTC (permalink / raw)
  To: xfs@oss.sgi.com


[-- Attachment #1.1: Type: text/plain, Size: 1652 bytes --]

Dear member,
If I remove USB flash storage from PC/ARM/MIPS target (i.e
without umount) while copying file to XFS partition and connect it to MIPS
target I always get
XFS: xlog_recover_process_data: bad clientid
XFS: log mount/recovery failed: error 5
XFS: log mount failed
This problem does not occur, if I connect the same USB flash to PC/ARM
target.
I have tested this on 2.6.30 - 2.6.34 (It everywhere when concerend with
MIPS)

I had two workaround to avoid this problem on MIPS, but I wish to know the
exact reason of this problme on MIPS.
I am really tired and giving up, so finally thought of taking your help,
your guidence can help me.

1. __flush_cache_all() at the begining of each iteration of while loop in
function xlog_recover_process_data().

     while ((dp < lp) && num_logops) {
+       __flush_cache_all() ;
         ASSERT(dp + sizeof(xlog_op_header_t) <= lp);
         ohead = (xlog_op_header_t *)dp;
         dp += sizeof(xlog_op_header_t);
         if (ohead->oh_clientid != XFS_TRANSACTION &&
             ohead->oh_clientid != XFS_LOG) {
             xlog_warn(
             "XFS: xlog_recover_process_data: bad clientid")

OR

2. Provide new buffer in each call to xlog_bread in function
xlog_do_recovery_pass().

          if (error)
              goto bread_err2;
          /* blocks in data section */
          bblks = (int)BTOBB(be32_to_cpu(rhead->h_len));
+        xlog_put_bp(dbp);
+        dbp = xlog_get_bp(log, BTOBB(h_size));
          error = xlog_bread(log, blk_no + hblks, bblks, dbp,
                                     &offset);
          if (error)
              goto bread_err2;

WIth Regards
Ajeet Yadav

[-- Attachment #1.2: Type: text/html, Size: 2067 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <AQHMGZPV5VwDWzpPGkmBdYCEZM2g7JYAfYLwgAAGIHA=>]

end of thread, other threads:[~2012-01-11 11:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 12:11 XFS: bad clientid on recovery on MIPS (VIPT cache) Ajeet Yadav
2010-10-21 12:47 ` Ajeet Yadav
2010-10-21 12:52 ` Christoph Hellwig
2010-10-21 13:27   ` Ajeet Yadav
2010-10-22  5:25     ` Ajeet Yadav
2010-10-25 13:43       ` Christoph Hellwig
2010-11-02  6:35         ` Ajeet Yadav
2010-10-25 13:43     ` Christoph Hellwig
     [not found] <AQHMGZPV5VwDWzpPGkmBdYCEZM2g7JYAfYLwgAAGIHA=>
     [not found] ` <BAB94DBB0E89D8409949BC28AC95914C6875A2@USMAExch1.tad.internal.tilera.com>
2012-01-09  7:22   ` Ajeet Yadav
2012-01-09  7:28     ` Ajeet Yadav
2012-01-10 10:30       ` Tony Lu
2012-01-11 11:43       ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox