From: Anton Altaparmakov <aia21@cam.ac.uk>
To: Alberto Patino <pato.lukaz@gmail.com>
Cc: ntfs-dev <linux-ntfs-dev@lists.sourceforge.net>,
lkml <linux-kernel@vger.kernel.org>
Subject: Warning: Serious NTFS data corruption bug! + Fix! - Was: Re: ntfs CFT - was: Re: 2.6.14-rc4-mm1
Date: Wed, 19 Oct 2005 12:10:03 +0100 [thread overview]
Message-ID: <1129720203.26939.21.camel@imp.csi.cam.ac.uk> (raw)
In-Reply-To: <4489a22a0510181048n60ec5952i33d52c1b3527f906@mail.gmail.com>
Hi,
To all: There is serious data corruption issue with ntfs in
2.6.14-rc4-mm1 (and ntfs 2.1.25 release in general, not just -mm). Fix
is below. Hopefully this is the only bug!
On Tue, 2005-10-18 at 12:48 -0500, Alberto Patino wrote:
> On 10/18/05, Alberto Patino <pato.lukaz@gmail.com> wrote:
> > Hi Anton, not too lucky doing modifications with soffice to word documents.
> > Saving files is ok but when I reopen the files, the format is lost...
> > I'll try to recover them from Word.exe
> Anton:
> I'm afraid I have bad news, I couldn't boot W2K, I got this message
> translated fom spanish:
>
> STOP: C0000221 { checksum image test incorrect }
>
> Something weird, I edited txt file A with vim, then I edited Word File
> B with soffice, I close it, then I reopened. I lost format so the file
> is not legible but I can see paragraphs from file A in file B!!!!!
I am really sorry about this. )-: You should be able to hopefully fix
windows by booting with the installation CD and going into recovery
console and running chkdsk on the partition. You can also try running
ntfsfix from ntfsprogs and then booting into windows. This may be
sufficient to allow it to do a chkdsk on the partition before it
crashes.
I found a bug that caused corruption of the openoffice document as you
described. The fix is below.
diff -urNp /usr/src/ntfs-2.6-devel/fs/ntfs/file.c ntfs26dev/file.c
--- /usr/src/ntfs-2.6-devel/fs/ntfs/file.c 2005-10-11 15:00:00.000000000 +0100
+++ ntfs26dev/file.c 2005-10-19 11:50:54.859558000 +0100
@@ -787,6 +787,7 @@ retry_remap:
vcn_len = rl[1].vcn - vcn;
lcn_block = lcn << (vol->cluster_size_bits -
blocksize_bits);
+ cdelta = 0;
/*
* If the number of remaining clusters in the
* @pages is smaller or equal to the number of
Thank you very much for testing and I am really sorry it caused the
corruption to your partition. In the future I will make sure to say
"Please only test on test partitions."...
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
next prev parent reply other threads:[~2005-10-19 11:10 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-16 22:41 2.6.14-rc4-mm1 Andrew Morton
2005-10-17 0:05 ` [PATCH] add missing header in include/asm/atomic.h Dominik Karall
2005-10-17 0:13 ` 2.6.14-rc4-mm1 Michal Piotrowski
2005-10-17 3:19 ` 2.6.14-rc4-mm1 Andrew Morton
2005-10-17 6:03 ` 2.6.14-rc4-mm1 Michal Piotrowski
2005-10-17 6:42 ` 2.6.14-rc4-mm1 Michal Piotrowski
2005-10-17 7:47 ` 2.6.14-rc4-mm1 Russell King
2005-10-17 0:46 ` 2.6.14-rc4-mm1 Con Kolivas
2005-10-17 7:10 ` 2.6.14-rc4-mm1 MAEDA Naoaki
2005-10-17 9:56 ` ntfs CFT - was: 2.6.14-rc4-mm1 Anton Altaparmakov
[not found] ` <4489a22a0510172209v322e9d9eqe90c489c66b5c83b@mail.gmail.com>
[not found] ` <Pine.LNX.4.64.0510180859580.7514@hermes-1.csi.cam.ac.uk>
[not found] ` <4489a22a0510181026v577f9b0ev535cf0acc74661f@mail.gmail.com>
[not found] ` <4489a22a0510181048n60ec5952i33d52c1b3527f906@mail.gmail.com>
2005-10-19 11:10 ` Anton Altaparmakov [this message]
2005-10-17 10:29 ` 2.6.14-rc4-mm1 - drivers/serial/jsm/jsm_tty.c: no member named 'flip' Damir Perisa
2005-10-17 14:56 ` V. Ananda Krishnan
2005-10-17 15:21 ` Damir Perisa
2005-10-18 14:02 ` 2.6.14-rc4-mm1 - drivers/serial/ V. Ananda Krishnan
2005-10-18 20:12 ` Greg KH
2005-10-17 18:05 ` 2.6.14-rc4-mm1 - drivers/serial/jsm/jsm_tty.c: no member named 'flip' Alan Cox
2005-10-22 2:08 ` Paul Jackson
2005-10-22 6:39 ` Andrew Morton
2005-10-22 9:54 ` Alan Cox
2005-10-24 7:52 ` Andrew Morton
2005-10-17 12:21 ` 2.6.14-rc4-mm1 Brice Goglin
2005-10-17 20:22 ` 2.6.14-rc4-mm1 Andrew Morton
2005-10-17 21:27 ` 2.6.14-rc4-mm1 Vojtech Pavlik
2005-10-17 21:39 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-17 21:48 ` 2.6.14-rc4-mm1 Greg KH
2005-10-17 21:58 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-18 6:42 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 6:39 ` 2.6.14-rc4-mm1 Vojtech Pavlik
2005-10-18 6:44 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-18 6:58 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 7:09 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-18 7:17 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 7:22 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-18 7:38 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 7:30 ` 2.6.14-rc4-mm1 Brice Goglin
2005-10-18 7:40 ` 2.6.14-rc4-mm1 Greg KH
2005-10-18 8:26 ` 2.6.14-rc4-mm1 Brice Goglin
2005-10-19 3:44 ` 2.6.14-rc4-mm1 Greg KH
2005-10-19 3:58 ` 2.6.14-rc4-mm1 Dmitry Torokhov
2005-10-17 20:44 ` 2.6.14-rc4-mm1 Greg KH
2005-10-17 22:06 ` 2.6.14-rc4-mm1 Brice Goglin
2005-10-17 21:06 ` 2.6.14-rc4-mm1 dead in early boot Helge Hafting
2005-10-17 21:09 ` Andrew Morton
2005-10-17 21:27 ` Helge Hafting
2005-10-17 21:53 ` Helge Hafting
2005-10-18 0:38 ` Andrew Morton
2005-10-18 14:30 ` Michael Neuffer
2005-10-17 22:24 ` Helge Hafting
2005-10-18 7:45 ` [PATCH] disable PREEMPT_BKL per default Olaf Hering
2005-10-18 7:53 ` Arjan van de Ven
2005-10-18 8:47 ` Olaf Hering
2005-10-18 8:58 ` Arjan van de Ven
2005-10-18 11:12 ` Olaf Hering
2005-10-18 11:52 ` Ingo Molnar
2005-10-19 14:04 ` 2.6.14-rc4-mm1 Alexandre Buisse
2005-10-19 15:52 ` 2.6.14-rc4-mm1 Jiri Slaby
2005-10-19 15:04 ` 2.6.14-rc4-mm1 Alexandre Buisse
2005-10-19 18:49 ` Wifi oddness [Was: Re: 2.6.14-rc4-mm1] Jiri Slaby
2005-10-20 16:48 ` Alexandre Buisse
2005-10-20 21:02 ` Jiri Slaby
2005-10-20 21:26 ` Mark Lord
2005-10-20 23:08 ` Jiri Slaby
2005-10-20 23:39 ` Jeff Garzik
2005-10-20 23:45 ` Andrew Morton
2005-10-21 0:21 ` Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1129720203.26939.21.camel@imp.csi.cam.ac.uk \
--to=aia21@cam.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-ntfs-dev@lists.sourceforge.net \
--cc=pato.lukaz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®