From: "Török Edwin" <edwintorok@gmail.com>
To: Theodore Tso <tytso@MIT.EDU>
Cc: Jeffrey Merkey <jeffmerkey@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: EXT3 File System Corruption 2.6.34
Date: Tue, 08 Jun 2010 16:33:18 +0300 [thread overview]
Message-ID: <4C0E469E.7030808@gmail.com> (raw)
In-Reply-To: <7707881C-9879-4531-8DE9-EEED2F4534E5@mit.edu>
On 06/08/2010 02:14 PM, Theodore Tso wrote:
>
> If you pull the plug without fsyncing the file, you will end up with a zero-length file -- or possibly no file at all, even with data=ordered. If you really want to preserve data after pulling the power cord immediately after a write were the application hasn't done an fsync() or a sync() call, you can mount the file system with the mount option -o sync --- but then the performance will be horrible.
>
> It's all a tradeoff of what you think is important....
>
I think you should either get the old file, or the new file (if you
don't fsync), and not some random data from another file.
The manual entry for data=writeback only says that you may get old data
after a crash/recovery, not that you may get old/new data from *another*
file.
On the other hand I didn't specify any mount options, and I got
data=ordered. So is data=ordered the default or not?
Or does it depend whether you use ext3 or ext4 driver for ext3?
/etc/fstab has:
/dev/md3 / ext3 noatime,errors=remount-ro 0 1
and my ext* related config options:
# CONFIG_EXT2_FS is not set
# CONFIG_EXT3_FS is not set
CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT23=y
CONFIG_EXT4_FS_XATTR=y
# CONFIG_EXT4_FS_POSIX_ACL is not set
# CONFIG_EXT4_FS_SECURITY is not set
# CONFIG_EXT4_DEBUG is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
So I use the ext4 driver for the ext3 partition (I intended to convert
it to ext4 at some point, but didn't have time to do so yet).
This is with 2.6.34-00179-gdebb980 (drm-radeon-testing, which is
basically 2.6.34 + some radeon specific stuff).
Best regards,
--Edwin
next prev parent reply other threads:[~2010-06-08 13:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-07 20:45 EXT3 File System Corruption 2.6.34 Jeffrey Merkey
2010-06-07 20:59 ` Eric Sandeen
[not found] ` <AANLkTik1T2nJxsoK9UGIVy6q6pfSxniFfJXJY0InmuUh@mail.gmail.com>
2010-06-07 23:55 ` Fwd: " Jeffrey Merkey
2010-06-08 1:10 ` Eric Sandeen
[not found] ` <AANLkTilrmEnLrxRSYNnwr8vFaZi7R9U5vY39NmBWUEMy@mail.gmail.com>
2010-06-08 1:55 ` Fwd: " Jeffrey Merkey
2010-06-08 2:05 ` Eric Sandeen
2010-06-10 21:04 ` Bill Davidsen
2010-06-11 16:23 ` Jeffrey Merkey
2010-06-08 1:57 ` Jeffrey Merkey
[not found] ` <C4177A0B-9A74-40E6-9A58-64418034232C@sandeen.net>
[not found] ` <AANLkTinzZkN9agekI5eqzA9hERsghI7yDJyAy1O755dr@mail.gmail.com>
2010-06-08 2:14 ` Jeffrey Merkey
2010-06-08 11:14 ` Theodore Tso
2010-06-08 13:33 ` Török Edwin [this message]
2010-06-09 0:49 ` david
[not found] ` <4C0DA955.7020802@sandeen.net>
2010-06-08 2:37 ` Jeffrey Merkey
2010-06-08 5:40 ` Valdis.Kletnieks
2010-06-08 14:44 ` Jeffrey Merkey
2010-06-07 21:04 ` Valdis.Kletnieks
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=4C0E469E.7030808@gmail.com \
--to=edwintorok@gmail.com \
--cc=jeffmerkey@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@MIT.EDU \
/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.