From: Oleg Drokin <green@namesys.com>
To: Joachim Bremer <joachim.bremer@ricardo.de>
Cc: reiserfs-list@namesys.com
Subject: Re: File corruption with 2.4.20pre6
Date: Wed, 11 Sep 2002 17:46:41 +0400 [thread overview]
Message-ID: <20020911174641.A10234@namesys.com> (raw)
In-Reply-To: <200209111041.g8BAfP230329@chekov.ricardo.de>
Hello!
On Wed, Sep 11, 2002 at 12:41:25PM +0200, Joachim Bremer wrote:
> I've got an easy to produce file corruption with
> linux-2.4.20pre6 and then tested with the file-write
> patch on pre4. I verified the problem on 2 different machines -
> 1. Uniprozessor with an Athlon XP1600+
> 2. Dualprozessor with 2 Athlon MP2000+
Thanks a lot for your report!
This is my stupid bug and I am starting to wonder how did it passed through
my tests...
This trivial patch below should take care of it. Can you try it?
Thank you.
===== fs/reiserfs/file.c 1.10 vs edited =====
--- 1.10/fs/reiserfs/file.c Tue Sep 10 16:06:23 2002
+++ edited/fs/reiserfs/file.c Wed Sep 11 17:43:48 2002
@@ -1189,7 +1189,7 @@
already_written += write_bytes;
buf += write_bytes;
- pos = *ppos += write_bytes;
+ *ppos = pos += write_bytes;
count -= write_bytes;
}
Bye,
Oleg
next prev parent reply other threads:[~2002-09-11 13:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-11 10:41 File corruption with 2.4.20pre6 Joachim Bremer
2002-09-11 13:46 ` Oleg Drokin [this message]
2002-09-11 18:36 ` Joachim Bremer
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=20020911174641.A10234@namesys.com \
--to=green@namesys.com \
--cc=joachim.bremer@ricardo.de \
--cc=reiserfs-list@namesys.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 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.