All of lore.kernel.org
 help / color / mirror / Atom feed
From: flux@hotbox.ru
To: Dave Chinner <david@fromorbit.com>
Cc: xfs@oss.sgi.com
Subject: Re: XFS syncs
Date: Fri, 04 Jul 2014 18:09:05 +0400	[thread overview]
Message-ID: <53B6B581.5070801@hotbox.ru> (raw)
In-Reply-To: <20140703231730.GW4453@dastard>

Hello Dave,

Thanks for the explanation and your suggestion to use wsync option.

On 07/04/2014 03:17 AM, Dave Chinner wrote:
> On Thu, Jul 03, 2014 at 10:05:53PM +0400, flux@hotbox.ru wrote:
>> Hi,
>>
>> I issue 'mkdir abc' on my xfs partition the cut off the power. After
>> reboot there's no 'abc' directoy.
>
> Because you didn't sync(1) the filesystem or fsync(2) the directory
> before you cut the power. Hence the change never hit the disk.
>
>> However, when I do that on ext4
>> the 'abc' direcory is always created after reboots.
>
> That'll be pure fluke - ext4 delays journal writes on namespace
> operations just like XFS does.
>
>> All the
>> settings, about mount options are default for my distro. What am I
>> missing or how do I change the things of the jounral or whatever?
>
> If you want directory operations to hitthe disk immediately, then
> mount with the "-o wsync" option. Be aware, however, that this will
> kill performance unless you have expensive storage with a large
> amount of battery backed write cache in front of the disks. There's
> a good chance it will also cause excessive wear on SSDs due to the
> frequent journal writes.
>
> Cheers,
>
> Dave.
>

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2014-07-04 14:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-03 18:05 XFS syncs flux
2014-07-03 21:33 ` Stan Hoeppner
2014-07-03 23:17 ` Dave Chinner
2014-07-04 14:09   ` flux [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=53B6B581.5070801@hotbox.ru \
    --to=flux@hotbox.ru \
    --cc=david@fromorbit.com \
    --cc=xfs@oss.sgi.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.