Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Feb 22, 2018 3:38 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 67 posts ]  Go to page Previous 1 2 3 4 5 Next
Author Message
 Post subject: Re: XFS fixed?
PostPosted: Thu Mar 20, 2008 10:02 am 
Offline
Regular Member

Joined: Sun Apr 01, 2007 7:02 pm
Posts: 148
Location: Spain
http://oss.sgi.com/projects/xfs/mail.html


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Thu Mar 20, 2008 2:21 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Cheers Luca :)

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Sun Mar 23, 2008 3:57 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I have had no reply to my join request yet for XFS. So, no more news yet on this matter.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Sun Mar 23, 2008 5:05 pm 
Offline
Regular Member

Joined: Sun Apr 01, 2007 7:02 pm
Posts: 148
Location: Spain
If you have difficulties subscribing to the list (I did) you can post directly to xfs@oss.sgi.com (maybe just stating that you cannot subscribe) and follow the list through http://news.gmane.org (it's better if you use an nntp newsreader, thunderbird will do, just create an news or nntp account, don't remember the exact terminology that thunderbird uses, using news.gmane.org as the serverr, then right click on the account, subscribe and search for xfs), at leastuntil you are subscribed.
You can also reply through gmane, just don't mind the first message that ask for confirmation on your subscriber status (they may have changed it now but that mailing list isn't restricted to subscribers).


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Mon Mar 24, 2008 11:34 pm 
Offline
Total Newbie

Joined: Wed Mar 19, 2008 7:23 pm
Posts: 4
lb_worm, if you want to send me a note I'll look into the subscription problems...

In the meantime, does this help? (not sure if this'll get whitspace mangled, but simple enough...)

Code:
Index: linux-2.6.25-rc6/fs/xfs/linux-2.6/xfs_buf.c
===================================================================
--- linux-2.6.25-rc1.orig/fs/xfs/linux-2.6/xfs_buf.c
+++ linux-2.6.25-rc1/fs/xfs/linux-2.6/xfs_buf.c
@@ -1172,6 +1172,7 @@ _xfs_buf_ioapply(
       bio->bi_end_io = xfs_buf_bio_end_io;
       bio->bi_private = bp;
 
+      flush_dcache_page(bp->b_pages[0]);
       bio_add_page(bio, bp->b_pages[0], PAGE_CACHE_SIZE, 0);
       size = 0;
 
@@ -1198,6 +1199,7 @@ next_chunk:
       if (nbytes > size)
          nbytes = size;
 
+      flush_dcache_page(bp->b_pages[map_i]);
       rbytes = bio_add_page(bio, bp->b_pages[map_i], nbytes, offset);
       if (rbytes < nbytes)
          break;


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Tue Mar 25, 2008 4:31 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I have seen this patch before to flush the dcache. i will add the patch and see if it helps. I will also send you a PM too regarding the XFS mailing, thanx for your help on this.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Sat Mar 29, 2008 7:35 pm 
Offline
Total Newbie

Joined: Wed Mar 19, 2008 7:23 pm
Posts: 4
The patch I posted probably won't help, actually; this appears to be the root cause:

http://thread.gmane.org/gmane.linux.ker ... ss-arch/97

So basically xfs needs to call a function which... does not exist yet. :)

-Eric


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Sun Mar 30, 2008 12:32 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I saw that :) I may add some code at this point to see if it fixes the issue.

Any luck with adding me to the XFS mailing list? (Following the PM I sent).

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Thu Apr 17, 2008 9:34 am 
Offline
Developer

Joined: Mon Oct 03, 2005 11:32 pm
Posts: 399
Location: France
I don't know if anybody have seen this already, but I've found that patch from Lennert Buytenhek :
http://git.kernel.org/?p=linux/kernel/g ... b741624cb8

Quote:
[ARM] 4837/1: make __get_unaligned_*() return unsigned types

Eric Sandeen tracked an XFS on ARM corruption bug down to a function
under fs/xfs/ involving some get_unaligned() calls on u64 pointers.
As it turns out, calling ARM's get_unaligned() on a u64 pointer
pointing to the following byte sequence:

80 81 82 83 84 85 86 87

would return ffffffff83828180 (LE mode.) This turns out to be
because of implicit u8 -> int promotion in ARM's implementation of
various helpers for get_unaligned(), causing them to accidentally
return signed instead of unsigned values, which in turn caused the
subsequent casts to unsigned long long in __get_unaligned_8_[bl]e()
to sign-extend the lower words.

Fix by casting the return values of __get_unaligned_[24]_[bl]e()
to unsigned int.

Did anyone checked that already (I guess so, but it was kept private ;)) ?

_________________
Kurobox Pro 500GB (for dev) / Freelink / 2.6.26-rc4 kernel, QNAP TS-409 Pro 1TB, Maxtor Shared Storage II 500GB


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Tue Apr 22, 2008 8:30 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
This introduces a different error. Every time you try and remount the XFS partition it can not recover the log file. More to this problem than just this.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Tue Apr 22, 2008 8:39 am 
Offline
Developer

Joined: Mon Oct 03, 2005 11:32 pm
Posts: 399
Location: France
Thanks lb_worm,
I figured out that even with this it's still not working ...

_________________
Kurobox Pro 500GB (for dev) / Freelink / 2.6.26-rc4 kernel, QNAP TS-409 Pro 1TB, Maxtor Shared Storage II 500GB


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Tue Apr 22, 2008 8:43 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I may start looking at this again now my effort on the micro daemon has eased (just working on supporting the TS buttons now). Still had no feed back from the XFS group?

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Mon Aug 25, 2008 6:44 am 
Offline
Newbie

Joined: Sun Jul 27, 2008 11:16 am
Posts: 34
Location: Somewhere over the hill
It seems they have doing a lot of work on xfs in 2.6.27. Perhaps they've fixed the fs.

_________________
LS-WSGL/R1 Linkstation Mini (stock, not for long...)


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Tue Sep 02, 2008 6:42 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Will have to take another look. The issues with the ARM drop are not so quick to fix so will have to diff the changes.

_________________
LS used as PVR and streaming source


Top
   
 Post subject: Re: XFS fixed?
PostPosted: Sun Jan 04, 2009 2:00 pm 
Offline
Newbie

Joined: Thu Apr 10, 2008 5:39 pm
Posts: 73
Location: HK
Today I encountered all folders and files of sda6 suddenly disappeared from the moumt point of /mnt/disk1/share in the middle of a heavy "deltree" operation initiated from PC side, in fact, this is the 2nd times I encountered such problem, the last time is also a heavy read / write operation of a large numbers of small files and directories, am I entered the bug of XFS file system that mentioned in this thread?

Quote:
kernel: XFS internal error XFS_WANT_CORRUPTED_GOTO at line 850 of file fs/xfs/xfs_ialloc.c. Caller 0xc013b038
kernel: Filesystem "sda6": XFS internal error xfs_trans_cancel at line 1031 of file fs/xfs/xfs_trans.c. Caller 0xc0157de8
kernel: xfs_force_shutdown(sda6,0x8) called from line 1032 of file fs/xfs/xfs_trans.c. Return address = 0xc0166e78
kernel: Filesystem "sda6": Corruption of in-memory data detected. Shutting down filesystem: sda6
kernel: Please umount the filesystem, and rectify the problem(s)
kernel: xfs_force_shutdown(sda6,0x1) called from line 338 of file fs/xfs/xfs_rw.c. Return address = 0xc0166e78

_________________
LinkStation Live V2, Stock Firmware: 1.20-0.76 Japan w/EXT3 root-fs & JFS Data Partitions


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 67 posts ]  Go to page Previous 1 2 3 4 5 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited