linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Xiang Wang <xiangw@google.com>
Cc: Theodore Tso <tytso@mit.edu>, Curt Wohlgemuth <curtw@google.com>,
	ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: RFC PATCH: ext4 no journal corruption with locale-gen
Date: Fri, 10 Jul 2009 12:58:41 +0530	[thread overview]
Message-ID: <20090710072841.GB19408@skywalker> (raw)
In-Reply-To: <d5ca277e0907091130y5182debakc86d1f390396b92c@mail.gmail.com>

On Thu, Jul 09, 2009 at 11:30:58AM -0700, Xiang Wang wrote:
> When working on the patch of adding the data=nojournal mount option,
> I start to wonder whether this mount option is actually needed.
> 
> When we mount a filesystem that was mkfs'ed with journal, using the
> "noload" mount option
> can help specify we do not load the journal.
> 
> When we mount a filesystem that was mkfs'ed without journal, we simply
> go into the
> nojournal mode.
> 
> That said, I do not really feel this data=nojournal option is necessary.
> But I am still working on the patch to print appropriate messages when
> people mount a filesystem
> created without a journal but explicitly specify the "data=" option.
> Any comments?
> 

Now that I look at commit 0390131ba84fd3f726f9e24fc4553828125700bb
if i understood correctly, that should always force a no journal 
mount to data=writeback ?

I tested it as below

 mkfs.ext4 -O ^has_journal /home/opensource/images/ext3.img
 sudo mount -o loop /home/opensource/images/ext3.img  /mnt/
[master@linux-2.6]$ cat /proc/mounts  | grep mnt
/dev/loop0 /mnt ext4 rw,relatime,barrier=1,data=writeback 0 0

So what we really need is to update ext4_should_writeback_data
not to return 0 when we  don't have a journal. Ted already have a patch
in the patch queue that does the same. I guess that patch should get
everything working fine.  So if mke2fs have created a journal to run
in no journal mode one can say -o noload. I guess that is more or less
what we wanted.

-aneesh

      reply	other threads:[~2009-07-10  7:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-17 18:48 RFC PATCH: ext4 no journal corruption with locale-gen Curt Wohlgemuth
2009-06-17 23:46 ` Theodore Tso
2009-06-22 16:42   ` Curt Wohlgemuth
2009-06-22 16:56     ` Aneesh Kumar K.V
2009-06-22 17:01       ` Curt Wohlgemuth
2009-06-22 21:13     ` Andreas Dilger
2009-07-01 18:35       ` Aneesh Kumar K.V
2009-07-01 18:44         ` Michael Rubin
2009-07-02 23:27         ` Xiang Wang
2009-06-29 17:50     ` Curt Wohlgemuth
2009-07-01 18:31     ` Aneesh Kumar K.V
2009-07-06  3:41       ` Theodore Tso
2009-07-06 15:30         ` Aneesh Kumar K.V
2009-07-13 13:05           ` Theodore Tso
2009-07-06 16:21         ` Xiang Wang
2009-07-09 18:30           ` Xiang Wang
2009-07-10  7:28             ` Aneesh Kumar K.V [this message]

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=20090710072841.GB19408@skywalker \
    --to=aneesh.kumar@linux.vnet.ibm.com \
    --cc=curtw@google.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    --cc=xiangw@google.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;
as well as URLs for NNTP newsgroup(s).