From patchwork Mon Aug 13 13:17:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Czerner X-Patchwork-Id: 956972 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41px8n00D6z9sCn for ; Mon, 13 Aug 2018 23:17:12 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729305AbeHMP70 (ORCPT ); Mon, 13 Aug 2018 11:59:26 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58856 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728509AbeHMP7Z (ORCPT ); Mon, 13 Aug 2018 11:59:25 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2436E40216FC for ; Mon, 13 Aug 2018 13:17:10 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.43.17.220]) by smtp.corp.redhat.com (Postfix) with ESMTP id 755C2178BE; Mon, 13 Aug 2018 13:17:09 +0000 (UTC) From: Lukas Czerner To: linux-ext4@vger.kernel.org Cc: Lukas Czerner Subject: [PATCH 1/2] tests: e2fsck must be able fix fs with resize_inode and meta_bg Date: Mon, 13 Aug 2018 15:17:05 +0200 Message-Id: <20180813131706.23274-1-lczerner@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 13 Aug 2018 13:17:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 13 Aug 2018 13:17:10 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lczerner@redhat.com' RCPT:'' Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Test if the e2fsck can fix file system with resize_inode and meta_bg features enabled simultaneously. Signed-off-by: Lukas Czerner --- tests/f_resize_inode_meta_bg/expect.1 | 71 ++++++++++++++++++++++++++ tests/f_resize_inode_meta_bg/expect.2 | 7 +++ tests/f_resize_inode_meta_bg/image.gz | Bin 0 -> 21467 bytes tests/f_resize_inode_meta_bg/name | 1 + 4 files changed, 79 insertions(+) create mode 100644 tests/f_resize_inode_meta_bg/expect.1 create mode 100644 tests/f_resize_inode_meta_bg/expect.2 create mode 100644 tests/f_resize_inode_meta_bg/image.gz create mode 100644 tests/f_resize_inode_meta_bg/name diff --git a/tests/f_resize_inode_meta_bg/expect.1 b/tests/f_resize_inode_meta_bg/expect.1 new file mode 100644 index 00000000..12055fc7 --- /dev/null +++ b/tests/f_resize_inode_meta_bg/expect.1 @@ -0,0 +1,71 @@ +Resize_inode and meta_bg features are enabled. Those features are +not compatible. Resize inode should be disabled. Fix? yes + +Resize_inode not enabled, but the resize inode is non-zero. Clear? yes + +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Directory inode 2, block #0, offset 0: directory has no checksum. +Fix? yes + +First entry '' (inode=348) in directory inode 2 (???) should be '.' +Fix? yes + +Setting filetype for entry '.' in ??? (2) to 2. +Missing '..' in directory inode 2. +Fix? yes + +Setting filetype for entry '..' in ??? (2) to 2. +Directory inode 2, block #0, offset 860: directory corrupted +Salvage? yes + +Directory inode 11, block #0, offset 0: directory corrupted +Salvage? yes + +Missing '.' in directory inode 11. +Fix? yes + +Setting filetype for entry '.' in ??? (11) to 2. +Missing '..' in directory inode 11. +Fix? yes + +Setting filetype for entry '..' in ??? (11) to 2. +Directory inode 11, block #1, offset 0: directory corrupted +Salvage? yes + +Directory inode 11, block #2, offset 0: directory corrupted +Salvage? yes + +Entry '' in ??? (11) has a zero-length name. +Clear? yes + +Directory inode 11, block #3, offset 864: directory corrupted +Salvage? yes + +Pass 3: Checking directory connectivity +'..' in / (2) is (0), should be / (2). +Fix? yes + +Unconnected directory inode 11 (/???) +Connect to /lost+found? yes + +/lost+found not found. Create? yes + +Pass 3A: Optimizing directories +Pass 4: Checking reference counts +Inode 11 ref count is 3, should be 2. Fix? yes + +Pass 5: Checking group summary information +Block bitmap differences: -246 +Fix? yes + +Free blocks count wrong for group #0 (160, counted=161). +Fix? yes + +Free blocks count wrong (2714, counted=2715). +Fix? yes + + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 12/960 files (0.0% non-contiguous), 1125/3840 blocks +Exit status is 1 diff --git a/tests/f_resize_inode_meta_bg/expect.2 b/tests/f_resize_inode_meta_bg/expect.2 new file mode 100644 index 00000000..0df9a40a --- /dev/null +++ b/tests/f_resize_inode_meta_bg/expect.2 @@ -0,0 +1,7 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +test_filesys: 12/960 files (0.0% non-contiguous), 1125/3840 blocks +Exit status is 0 diff --git a/tests/f_resize_inode_meta_bg/image.gz b/tests/f_resize_inode_meta_bg/image.gz new file mode 100644 index 0000000000000000000000000000000000000000..9966a7ca770db7b7fbc001f409210473d9ec2932 GIT binary patch literal 21467 zcmeHOdstNEy0@#_ZRTm0S$QF|q%A5b0RrMwZWH8YAsC=dra;1?*+xQYu-e<5<|acU zxyWTwVMe()H50H6aaE>xg`6dfBf?as?B$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@#g6 z$JvYR3HEk-kiF2=;c9frt_`k3uHCK+t~?j-vbcI&ISk`BV_??6)PcZ(DFc23GX~}k zOd6OuPA@P12R{G%ILI5MFH%YLzCfARI`IkOI} z>>hpj?5eY66B_3BpIzJ7p83$sA3SQ~SNQTP`&;|EHdbEzVXRHJXAQslx!Baa6*-&h zV_TKB^G<)|60>b^k8e+P{@UL!J>#sPf)>Xx}w#IBK z@gH+dkm165?zrbI-+_dgUbN=*ga{8;NyJ1Uzq^e4aaP~S)e(USP1tkfVp8*iN9*?J!>`+PA9xruWK+_y2dmiwNhbaJQ>&IaW+Xh>UT1ge zXOkD^Ejy-{T)Ad)7GLEK*Y-LKIxvG8#UQWu8|imKje%p{JCBGB@ypFi<<#A18xS~47eF^Gw`1o_`>wO?++0T zit$lKNS3J!Tk02bhl+)E4*)B^0>2>6KBfY)!|<&EZnDcGjNlE!LEn? zcVC2kw)g+|k40)X*DsDZ`ro};`KxqwbXa6}%m47Jy??r6zeSyfn|9xw%g4WyeEzV; z_~=g~J{#vd{*kuVUYs57_i53z#|j7UZ1Z~cOv>4*Q)VVq-+jvS?9(L|PL1$-`IGVa zU2&aRnVm(;`rIY>pYA!gLN^0$2HXs|8TjQgaP3N6Nd1j7(ayT(_Ttxe zbnQOW@o$nG>8-oC=D|%_8J`r6aPAE*&mI5Kr1KLv?=}1C>l$)<4}W#6`N&&VF+0LA zuEltz_C#afCHa(HIi8ZG+_z%PrAPM1>*haM?9JY_<7A_LYGg&(k6+Jz&;PmJ6}5%? zW`Do9XruRGNA#Do=PaAfDgByXF3IkbxfyUX;AX(hfSUm~18xS~47eF^GvH>x&48N$ lHv?`4+zhxGa5La$z|DZ0fnN**TeEH-z3RsS^7pyJ{vD5!O X-Patchwork-Id: 956973 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-ext4-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41px8p1hnTz9sCt for ; Mon, 13 Aug 2018 23:17:14 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729309AbeHMP70 (ORCPT ); Mon, 13 Aug 2018 11:59:26 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:49300 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729126AbeHMP70 (ORCPT ); Mon, 13 Aug 2018 11:59:26 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E300F87A79 for ; Mon, 13 Aug 2018 13:17:10 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.43.17.220]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F4D51C5B8; Mon, 13 Aug 2018 13:17:10 +0000 (UTC) From: Lukas Czerner To: linux-ext4@vger.kernel.org Cc: Lukas Czerner Subject: [PATCH 2/2] test: mke2fs must not create fs with reszie_inode and meta_bg Date: Mon, 13 Aug 2018 15:17:06 +0200 Message-Id: <20180813131706.23274-2-lczerner@redhat.com> In-Reply-To: <20180813131706.23274-1-lczerner@redhat.com> References: <20180813131706.23274-1-lczerner@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 13 Aug 2018 13:17:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 13 Aug 2018 13:17:10 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'lczerner@redhat.com' RCPT:'' Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Test that mke2fs does not allow to create file system with both resize_inode and meta_bg features enabled. This was fixes with commit 42e77d5d ("libext2fs: don't create filesystems with meta_bg and resize_inode"). Signed-off-by: Lukas Czerner --- tests/m_resize_inode_meta_bg/expect.1 | 169 ++++++++++++++++++++++++++ tests/m_resize_inode_meta_bg/script | 7 ++ 2 files changed, 176 insertions(+) create mode 100644 tests/m_resize_inode_meta_bg/expect.1 create mode 100644 tests/m_resize_inode_meta_bg/script diff --git a/tests/m_resize_inode_meta_bg/expect.1 b/tests/m_resize_inode_meta_bg/expect.1 new file mode 100644 index 00000000..d36f9730 --- /dev/null +++ b/tests/m_resize_inode_meta_bg/expect.1 @@ -0,0 +1,169 @@ +Creating filesystem with 3840 4k blocks and 960 inodes +Superblock backups stored on blocks: + 256, 768, 1280, 1792, 2304 + +Allocating group tables: done +Writing inode tables: done +Creating journal (1024 blocks): done +Writing superblocks and filesystem accounting information: done + +Filesystem features: has_journal ext_attr dir_index filetype meta_bg extent 64bit flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Pass 3: Checking directory connectivity +Pass 4: Checking reference counts +Pass 5: Checking group summary information +test_filesys: 11/960 files (0.0% non-contiguous), 1127/3840 blocks +Exit status is 0 +Filesystem volume name: +Last mounted on: +Filesystem magic number: 0xEF53 +Filesystem revision #: 1 (dynamic) +Filesystem features: has_journal ext_attr dir_index filetype meta_bg extent 64bit flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize +Default mount options: (none) +Filesystem state: clean +Errors behavior: Continue +Filesystem OS type: Linux +Inode count: 960 +Block count: 3840 +Reserved block count: 192 +Free blocks: 2713 +Free inodes: 949 +First block: 0 +Block size: 4096 +Fragment size: 4096 +Group descriptor size: 64 +Blocks per group: 256 +Fragments per group: 256 +Inodes per group: 64 +Inode blocks per group: 4 +Flex block group size: 16 +Mount count: 0 +Check interval: 15552000 (6 months) +Reserved blocks uid: 0 +Reserved blocks gid: 0 +First inode: 11 +Inode size: 256 +Required extra isize: 32 +Desired extra isize: 32 +Journal inode: 8 +Default directory hash: half_md4 +Journal backup: inode blocks +Journal features: (none) +Journal size: 4096k +Journal length: 1024 +Journal sequence: 0x00000001 +Journal start: 0 + + +Group 0: (Blocks 0-255) [ITABLE_ZEROED] + Primary superblock at 0, Group descriptor at 1 + Block bitmap at 2 (+2) + Inode bitmap at 17 (+17) + Inode table at 32-35 (+32) + 159 free blocks, 53 free inodes, 2 directories, 53 unused inodes + Free blocks: 97-255 + Free inodes: 12-64 +Group 1: (Blocks 256-511) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED] + Backup superblock at 256, Group descriptor at 257 + Block bitmap at 3 (bg #0 + 3) + Inode bitmap at 18 (bg #0 + 18) + Inode table at 36-39 (bg #0 + 36) + 254 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 258-511 + Free inodes: 65-128 +Group 2: (Blocks 512-767) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED] + Block bitmap at 4 (bg #0 + 4) + Inode bitmap at 19 (bg #0 + 19) + Inode table at 40-43 (bg #0 + 40) + 256 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 512-767 + Free inodes: 129-192 +Group 3: (Blocks 768-1023) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED] + Backup superblock at 768 + Block bitmap at 5 (bg #0 + 5) + Inode bitmap at 20 (bg #0 + 20) + Inode table at 44-47 (bg #0 + 44) + 255 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 769-1023 + Free inodes: 193-256 +Group 4: (Blocks 1024-1279) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED] + Block bitmap at 6 (bg #0 + 6) + Inode bitmap at 21 (bg #0 + 21) + Inode table at 48-51 (bg #0 + 48) + 256 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 1024-1279 + Free inodes: 257-320 +Group 5: (Blocks 1280-1535) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED] + Backup superblock at 1280 + Block bitmap at 7 (bg #0 + 7) + Inode bitmap at 22 (bg #0 + 22) + Inode table at 52-55 (bg #0 + 52) + 255 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 1281-1535 + Free inodes: 321-384 +Group 6: (Blocks 1536-1791) [INODE_UNINIT, ITABLE_ZEROED] + Block bitmap at 8 (bg #0 + 8) + Inode bitmap at 23 (bg #0 + 23) + Inode table at 56-59 (bg #0 + 56) + 0 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: + Free inodes: 385-448 +Group 7: (Blocks 1792-2047) [INODE_UNINIT, ITABLE_ZEROED] + Backup superblock at 1792 + Block bitmap at 9 (bg #0 + 9) + Inode bitmap at 24 (bg #0 + 24) + Inode table at 60-63 (bg #0 + 60) + 0 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: + Free inodes: 449-512 +Group 8: (Blocks 2048-2303) [INODE_UNINIT, ITABLE_ZEROED] + Block bitmap at 10 (bg #0 + 10) + Inode bitmap at 25 (bg #0 + 25) + Inode table at 64-67 (bg #0 + 64) + 0 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: + Free inodes: 513-576 +Group 9: (Blocks 2304-2559) [INODE_UNINIT, ITABLE_ZEROED] + Backup superblock at 2304 + Block bitmap at 11 (bg #0 + 11) + Inode bitmap at 26 (bg #0 + 26) + Inode table at 68-71 (bg #0 + 68) + 0 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: + Free inodes: 577-640 +Group 10: (Blocks 2560-2815) [INODE_UNINIT, ITABLE_ZEROED] + Block bitmap at 12 (bg #0 + 12) + Inode bitmap at 27 (bg #0 + 27) + Inode table at 72-75 (bg #0 + 72) + 254 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 2562-2815 + Free inodes: 641-704 +Group 11: (Blocks 2816-3071) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED] + Block bitmap at 13 (bg #0 + 13) + Inode bitmap at 28 (bg #0 + 28) + Inode table at 76-79 (bg #0 + 76) + 256 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 2816-3071 + Free inodes: 705-768 +Group 12: (Blocks 3072-3327) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED] + Block bitmap at 14 (bg #0 + 14) + Inode bitmap at 29 (bg #0 + 29) + Inode table at 80-83 (bg #0 + 80) + 256 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 3072-3327 + Free inodes: 769-832 +Group 13: (Blocks 3328-3583) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED] + Block bitmap at 15 (bg #0 + 15) + Inode bitmap at 30 (bg #0 + 30) + Inode table at 84-87 (bg #0 + 84) + 256 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 3328-3583 + Free inodes: 833-896 +Group 14: (Blocks 3584-3839) [INODE_UNINIT, ITABLE_ZEROED] + Block bitmap at 16 (bg #0 + 16) + Inode bitmap at 31 (bg #0 + 31) + Inode table at 88-91 (bg #0 + 88) + 256 free blocks, 64 free inodes, 0 directories, 64 unused inodes + Free blocks: 3584-3839 + Free inodes: 897-960 diff --git a/tests/m_resize_inode_meta_bg/script b/tests/m_resize_inode_meta_bg/script new file mode 100644 index 00000000..41ffb32a --- /dev/null +++ b/tests/m_resize_inode_meta_bg/script @@ -0,0 +1,7 @@ +DESCRIPTION="resize_inode and meta_bg enabled" +FS_SIZE=15360 +MKE2FS_DEVICE_SECTSIZE=4096 +export MKE2FS_DEVICE_SECTSIZE +MKE2FS_OPTS="-T ext4 -g256 -O 64bit" +. $cmd_dir/run_mke2fs +unset MKE2FS_DEVICE_SECTSIZE