From: KARBOWSKI Piotr Subject: Re: f2fs corruption due to f2fs_gc crash. Date: Sat, 21 Jan 2017 15:59:56 +0100 Message-ID: <6de18716-2c92-24a1-8543-9bf2272da9cf@gmail.com> References: <20170119234300.GB42028@jaegeuk.local> <20170120095257.GB43432@jaegeuk.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1cUx9C-0005Ij-0H for linux-f2fs-devel@lists.sourceforge.net; Sat, 21 Jan 2017 15:00:06 +0000 Received: from mail-lf0-f50.google.com ([209.85.215.50]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1cUx9A-0004lQ-UH for linux-f2fs-devel@lists.sourceforge.net; Sat, 21 Jan 2017 15:00:05 +0000 Received: by mail-lf0-f50.google.com with SMTP id k86so72995123lfi.0 for ; Sat, 21 Jan 2017 07:00:04 -0800 (PST) In-Reply-To: <20170120095257.GB43432@jaegeuk.local> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net Hi, On 01/20/2017 10:52 AM, Jaegeuk Kim wrote: > So, it shows fsck, which means there were IO errors given by sd card. > How about using the latest f2fs-tools/dev-test? > > http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/log/?h=dev-test Here's the output: kurogane f2fs-tools [dev-test] # umount /dev/mapper/sd_stash kurogane f2fs-tools [dev-test] # ./fsck/fsck.f2fs -a /dev/mapper/sd_stash Info: Fix the reported corruption. Info: Segments per section = 1 Info: Sections per zone = 1 Info: sector size = 512 Info: total sectors = 384497664 (187743 MB) Info: MKFS version "Linux version 4.8.9-frontier1 (root@kurogane) (gcc version 5.4.0 (Gentoo 5.4.0 p1.0, pie-0.6.5) ) #5 SMP Mon Dec 19 16:57:47 CET 2016" Info: FSCK version from "Linux version 4.9.4 (root@kurogane) (gcc version 5.4.0 (Gentoo 5.4.0-r2 p1.2, pie-0.6.5) ) #1 SMP Wed Jan 18 23:38:00 CET 2017" to "Linux version 4.9.4 (root@kurogane) (gcc version 5.4.0 (Gentoo 5.4.0-r2 p1.2, pie-0.6.5) ) #1 SMP Wed Jan 18 23:38:00 CET 2017" Info: superblock features = 0 : Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000 Info: total FS sectors = 384497664 (187743 MB) Info: CKPT version = e00 Info: checkpoint state = 51 : fsck unmount [FSCK] Unreachable nat entries [Ok..] [0x0] [FSCK] SIT valid block bitmap checking [Ok..] [FSCK] Hard link checking for regular file [Ok..] [0x6] [FSCK] valid_block_count matching with CP [Ok..] [0x1f2dbe1] [FSCK] valid_node_count matcing with CP (de lookup) [Ok..] [0x9abe] [FSCK] valid_node_count matcing with CP (nat lookup) [Ok..] [0x9abe] [FSCK] valid_inode_count matched with CP [Ok..] [0x1251] [FSCK] free segment_count matched with CP [Ok..] [0x740a] [FSCK] next block offset is free [Ok..] [FSCK] fixing SIT types [FSCK] other corrupted bugs [Ok..] Done. -- Piotr. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot