From: Chao Yu Subject: Re: [PATCH v2] f2fs: report cp block corrupted Date: Mon, 5 Feb 2018 15:41:21 +0800 Message-ID: <1334a3ac-9775-dd12-1019-0f8c7b3d7cef@huawei.com> References: <20180205101816.179878-1-guoweichao@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eibPK-0004Kp-Up for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Feb 2018 07:41:42 +0000 Received: from [45.249.212.35] (helo=huawei.com) by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) id 1eibPI-00022D-MM for linux-f2fs-devel@lists.sourceforge.net; Mon, 05 Feb 2018 07:41:42 +0000 In-Reply-To: <20180205101816.179878-1-guoweichao@huawei.com> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: Weichao Guo , jaegeuk@kernel.org Cc: heyunlei@huawei.com, linux-f2fs-devel@lists.sourceforge.net On 2018/2/5 18:18, Weichao Guo wrote: > There is a potential inconsistent metadata case due to a cp block > crc invalid in the latest checkpoint caused by hardware issues: > 1) write nodes into segment x; > 2) write checkpoint A; > 3) remove nodes in segment x; > 4) write checkpoint B; > 5) issue discard or write datas into segment x; > 6) sudden power-cut; > 7) use checkpoint A after reboot as checkpoint B is invalid > > This inconsistency may be found after several reboots long time later > and the kernel log about cp block crc invalid has disappeared. This > makes the root cause of the inconsistency is hard to locate. Let us > separate such other part issues from f2fs logical bugs in debug version. Need a Signed-off here? Anyway, Reviewed-by: Chao Yu Thanks, ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot