All of lore.kernel.org
 help / color / mirror / Atom feed
* reiserfs3 filesystem corruption?
@ 2004-08-28 13:27 leon breedt
  2004-08-28 15:28 ` Christian Mayrhuber
  0 siblings, 1 reply; 2+ messages in thread
From: leon breedt @ 2004-08-28 13:27 UTC (permalink / raw)
  To: reiserfs-list

hi,

not sure if i'm going mad here:

[ljb@imryrr]:/home/ljb $ ls -l /usr/bin/sdiff
-rwxr-xr-x  1 root root 24576 Apr 25  2003 /usr/bin/sdiff*

[ljb@imryrr]:/home/ljb $ cp /usr/bin/sdiff .

[ljb@imryrr]:/home/ljb $ ls -l sdiff
-rwxr-xr-x  1 ljb ljb 20480 Aug 29 01:12 sdiff*

[ljb@imryrr]:/home/ljb $ ./sdiff
zsh: bus error  ./sdiff

[ljb@imryrr]:/home/ljb $ /usr/bin/sdiff
/usr/bin/sdiff: missing operand after `/usr/bin/sdiff'
/usr/bin/sdiff: Try `/usr/bin/sdiff --help' for more information.

why would the file shrink by 4096 bytes? 

and notice, the original is still able to run. its just when i try to
copy it, that it gets corrupted somehow.

this occurs for a fair number of random files on this filesystem
(affected files all shrink by 4096 bytes). reiserfsck has no
complaints, and i've also run reiserfsck --rebuild-tree. it occurs to
the same set of files every time.

i ran across this while trying to copy my / filesystem to a new
reiser4 filesystem. first thought it was a reiser4 issue, but it
occurs when copying to an ext3 filesystem as well.

i've run badblocks on the disk, with no errors. the filesystem isn't
mounted with any special options, just "noatime".

kernel: 2.6.9-rc1-mm1
reiserfsck: 3.6.18
reiserfs format: "3.6"

its serial ATA device on ICH5-R, if that makes any difference.

the relevant dmesg output:

ReiserFS: sda7: found reiserfs format "3.6" with standard journal
ReiserFS: sda7: using ordered data mode
ReiserFS: sda7: journal params: device sda7, size 8192, journal first
block 18, max trans len 1024, max batch 900, max commit age 30, max
trans age 30
ReiserFS: sda7: checking transaction log (sda7)
ReiserFS: sda7: Using r5 hash to sort names

any ideas what to try? i'm keeping this filesystem around so i have
the test cases available.

leon

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: reiserfs3 filesystem corruption?
  2004-08-28 13:27 reiserfs3 filesystem corruption? leon breedt
@ 2004-08-28 15:28 ` Christian Mayrhuber
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Mayrhuber @ 2004-08-28 15:28 UTC (permalink / raw)
  To: reiserfs-list, leon breedt

On Saturday 28 August 2004 15:27, leon breedt wrote:
> hi,
> 
> not sure if i'm going mad here:
> 
> [ljb@imryrr]:/home/ljb $ ls -l /usr/bin/sdiff
> -rwxr-xr-x  1 root root 24576 Apr 25  2003 /usr/bin/sdiff*
> 
> [ljb@imryrr]:/home/ljb $ cp /usr/bin/sdiff .
> 
> [ljb@imryrr]:/home/ljb $ ls -l sdiff
> -rwxr-xr-x  1 ljb ljb 20480 Aug 29 01:12 sdiff*
> 
> [ljb@imryrr]:/home/ljb $ ./sdiff
> zsh: bus error  ./sdiff
> 
> [ljb@imryrr]:/home/ljb $ /usr/bin/sdiff
> /usr/bin/sdiff: missing operand after `/usr/bin/sdiff'
> /usr/bin/sdiff: Try `/usr/bin/sdiff --help' for more information.
> 
> why would the file shrink by 4096 bytes? 
> 
> and notice, the original is still able to run. its just when i try to
> copy it, that it gets corrupted somehow.
> 
> this occurs for a fair number of random files on this filesystem
> (affected files all shrink by 4096 bytes). reiserfsck has no
> complaints, and i've also run reiserfsck --rebuild-tree. it occurs to
> the same set of files every time.
> 
> i ran across this while trying to copy my / filesystem to a new
> reiser4 filesystem. first thought it was a reiser4 issue, but it
> occurs when copying to an ext3 filesystem as well.
> 
> i've run badblocks on the disk, with no errors. the filesystem isn't
> mounted with any special options, just "noatime".
> 
> kernel: 2.6.9-rc1-mm1
> reiserfsck: 3.6.18
> reiserfs format: "3.6"
> 
> its serial ATA device on ICH5-R, if that makes any difference.
> 
> the relevant dmesg output:
> 
> ReiserFS: sda7: found reiserfs format "3.6" with standard journal
> ReiserFS: sda7: using ordered data mode
> ReiserFS: sda7: journal params: device sda7, size 8192, journal first
> block 18, max trans len 1024, max batch 900, max commit age 30, max
> trans age 30
> ReiserFS: sda7: checking transaction log (sda7)
> ReiserFS: sda7: Using r5 hash to sort names
> 
> any ideas what to try? i'm keeping this filesystem around so i have
> the test cases available.
> 
> leon
> 

This is a bug in 2.6.9-rc1-mm1. See:
http://marc.theaimsgroup.com/?l=linux-kernel&m=109360433916523&w=2

To fix it you have to revert these patches:

=== START Andrew Morton ===
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc1/2.6.9-rc1-mm1/ 
\
broken-out/re-fix-pagecache-reading-off-by-one-cleanup.patch

and then

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.9-rc1/2.6.9-rc1-mm1/ 
\
broken-out/re-fix-pagecache-reading-off-by-one.patch
=== END Andrew Morton ===
Full email at: 
http://marc.theaimsgroup.com/?l=linux-kernel&m=109368723414915&w=2

-- 
lg, Chris

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-28 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-28 13:27 reiserfs3 filesystem corruption? leon breedt
2004-08-28 15:28 ` Christian Mayrhuber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.