| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: XFS syncs |
| From: | flux@xxxxxxxxx |
| Date: | Fri, 04 Jul 2014 18:09:05 +0400 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qip.ru; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=exhN9j26+hEYuah2cAvzVbQHOgAHCOLO1Er7eqx/epI=; b=JysJMZ4yAhIN7OXtKTnRBF7UZqSunPE68W6/BZMJY0oKYlaznF+VGDn4jHmWWD5lVO78Yk4bX0vmD7sk3Px4zSkdV119q52PhZ4LB2wbleRi7jGH80QhOF6oJgiH7S/jyUszHRdFNJr1Fs4FnjJ9OlVuUHhcPovgWh6AddINdGsFhP830bpv3Rxl2wZ/suBXfHMzeJQ3dmj7f4adDmgEBW7zRU7I+WG0Q/DfBm1do8ScOUZafSu1WUL1/KACrX4b/c9iBhOffxTiVmvZx3XW8FjJAMfLkk48QlwOs0wci7Qh956X1vIx+M0pSqQB2HJN9hWnFts4H9KNcmxdXgKOzQ==; |
| In-reply-to: | <20140703231730.GW4453@dastard> |
| References: | <53B59B81.2030603@xxxxxxxxx> <20140703231730.GW4453@dastard> |
| User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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@xxxxxxxxx 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. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2/6] xfs_db: write command broken on 64 bit values, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH 4/6] libxfs: reused invalidated buffers leak state and data, Christoph Hellwig |
| Previous by Thread: | Re: XFS syncs, Dave Chinner |
| Next by Thread: | [PATCH 0/6] xfsprogs: fixes for 3.2.1, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |