From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932514AbcKPMPu (ORCPT ); Wed, 16 Nov 2016 07:15:50 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:60920 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752679AbcKPMPr (ORCPT ); Wed, 16 Nov 2016 07:15:47 -0500 Date: Wed, 16 Nov 2016 04:15:38 -0800 From: Christoph Hellwig To: Chao Yu Cc: jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, chao@kernel.org Subject: Re: [PATCH] f2fs: fix fdatasync Message-ID: <20161116121538.GA22373@infradead.org> References: <20161116121211.11790-1-yuchao0@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161116121211.11790-1-yuchao0@huawei.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 16, 2016 at 08:12:11PM +0800, Chao Yu wrote: > For below two cases, we can't guarantee data consistence: > > a) > 1. xfs_io "pwrite 0 4195328" "fsync" > 2. xfs_io "pwrite 4195328 1024" "fdatasync" > 3. godown > 4. umount & mount > --> isize we updated before fdatasync won't be recovered > > b) > 1. xfs_io "pwrite -S 0xcc 0 4202496" "fsync" > 2. xfs_io "fpunch 4194304 4096" "fdatasync" > 3. godown > 4. umount & mount > --> dnode we punched before fdatasync won't be recovered Can you please add testcases for these to xfstests?