All of lore.kernel.org
 help / color / mirror / Atom feed
* reiser4 w. cryptcompress data-corruption (?!)
@ 2008-02-25 21:51 Mat
  2008-02-25 23:44 ` Edward Shishkin
       [not found] ` <a08621850802251503w10b88e3an59a5170dd41805bb@mail.gmail.com>
  0 siblings, 2 replies; 7+ messages in thread
From: Mat @ 2008-02-25 21:51 UTC (permalink / raw)
  To: reiserfs-devel

Hi Edward,

I just ran into an (seemingly) data corruption incident:

here the steps to (hopefully) reproduce:

1. boot up system with reiser4-formatted root-partition (cryptcompress lzo1,
algorithm)
2. work with it, openoffice, gnome-desktop (I had compiz activated, but I'm sure
that's only worth a side-note)
3. plug in an usbstick with a large enough capacity (e.g. 4 GB) or a large
enough external usb-harddrive, now format it via
mkfs.ntfs

<-- here was the point where I made the "mistake" ;), since I was concerned of
the usbstick' life (read- and write-cycles are limited so I wanted to forcefully
quit mkfs.ntfs and re-execute it with mkfs.ntfs -f  after that didn't help and
the progress number stayed at around 81% I unplugged the usbstick ;)

4. this should lead to a similar error message like the following in dmesg:

[12423.120846] reiser4[mkfs.ntfs(22617)]: dc_check_checksum
(fs/reiser4/plugin/file/cryptcompress.c:971)[edward-156]:
[12423.120848] WARNING: Bad disk cluster checksum -1991768807, (should be
1988809339) Fsck?
[12423.120850] 
[12423.121158] reiser4[mkfs.ntfs(22617)]: reiser4_inflate_cluster
(fs/reiser4/plugin/file/cryptcompress.c:1138)[edward-1460]:
[12423.121159] WARNING: Inode 75477: disk cluster 0 looks corrupted
[12423.121307] reiser4[mkfs.ntfs(22617)]: dc_check_checksum
(fs/reiser4/plugin/file/cryptcompress.c:971)[edward-156]:
[12423.121308] WARNING: Bad disk cluster checksum -1991768807, (should be
1988809339) Fsck?
[12423.121309] 
[12423.121472] reiser4[mkfs.ntfs(22617)]: reiser4_inflate_cluster
(fs/reiser4/plugin/file/cryptcompress.c:1138)[edward-1460]:
[12423.121473] WARNING: Inode 75477: disk cluster 0 looks corrupted

5. safe your data & reboot your system with magic sysrq key
6. I booted into a livecd & checked the reiser4-partition, there was one error
(corrupted cluster or something, I'm apologize for not having noted it down ;( )
after that fsck.reiser4 --build-fs
showed thousands of errors

I'm sure it would have fixed the filesystem, however I'm dependent on this box
right now & need to work, so I played back a tarball with the system & here I am

I have to give you guys involed in reiserfs creation a compliment: my /home
partition suffered from no (0 == zero) data corruption from this incident, where
other filesystem surely would have corrupted some files (I already had similar
cases with other filesystems losing almost all data ;( )

I hope you're able to reproduce this error

comments:
this is the 2nd case of ntfs-related access/contact leading to data corruption,
I think Microsoft has included a secret data corruption mechanism in ntfs to
destroy other opensource filesystems when accessed outside of windows ;)

Thanks for your help & work

Mat


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

end of thread, other threads:[~2008-03-09 11:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25 21:51 reiser4 w. cryptcompress data-corruption (?!) Mat
2008-02-25 23:44 ` Edward Shishkin
     [not found] ` <a08621850802251503w10b88e3an59a5170dd41805bb@mail.gmail.com>
2008-02-26  8:57   ` Matthew
2008-02-26 10:38     ` Edward Shishkin
2008-02-26 12:06       ` Matthew
2008-03-08 19:54         ` Edward Shishkin
2008-03-09 11:05           ` Matthew

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.