From: tytso@mit.edu
To: Alexey Skidanov <Alexey.Skidanov@sandisk.com>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
"alexey.skidanov@gmail.com" <alexey.skidanov@gmail.com>
Subject: Re: fsync and journal_async_commit mount options
Date: Tue, 18 Aug 2015 16:25:04 +0000 [thread overview]
Message-ID: <20150818162503.GA8806@thunk.org> (raw)
In-Reply-To: <CF2184B79FF73642B463E092E85766BF05475401@SACMBXIP02.sdcorp.global.sandisk.com>
On Tue, Aug 18, 2015 at 09:59:58AM +0000, Alexey Skidanov wrote:
>
> My question is regarding the barrier=0/1 mount option. On the one
> hand, the "mount" man page says "This enables/disables the use of
> write barriers in the jbd code". From there I understand that this
> option changes the behaviour of journalling code only. But on the
> other hand, this option change the the behaviour of fsync() (at
> least in case of ext4): the flush request is issued only if barrier
> mount option is 1.
The bug is in the mount man page. It may have been true for ext3 oh,
a decade or more ago when we didn't have an optimized fdatasync(2)
implementation. (Ext4 may have predated Linux *having* fdatasync(2)
support.) But no one has bothered to update documentation, because
all of the people who care knew what it meant, and most users don't
bother changing the defaults.
Cheers,
- Ted
next prev parent reply other threads:[~2015-08-18 16:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-16 11:42 fsync and journal_async_commit mount options Alexey Skidanov
2015-08-16 12:24 ` Theodore Ts'o
2015-08-18 9:59 ` Alexey Skidanov
2015-08-18 16:25 ` tytso [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-08-13 13:47 Alexey Skidanov
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=20150818162503.GA8806@thunk.org \
--to=tytso@mit.edu \
--cc=Alexey.Skidanov@sandisk.com \
--cc=alexey.skidanov@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
/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.