Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4865038pxu; Thu, 10 Dec 2020 07:19:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiOL63G/NV/JcyDOk32xY6v3Yka7qrOA9JfGPQOwGHQJARFLXZ2pCFYeXyiO2icdRu9M6P X-Received: by 2002:aa7:c2d8:: with SMTP id m24mr7259325edp.300.1607613544020; Thu, 10 Dec 2020 07:19:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607613544; cv=none; d=google.com; s=arc-20160816; b=rh9QNl3yAS0O9Og4271sv6xKjXj6VlIbsbnfe20ujjnvqHd2zgQ7kEI38jM2Jy4QXG FdhVW4RnJLEjd2jNCaLkn+FsqcRAS4yG1xEguKF8TOPNeSe0oT+tcnuU3Qv8fkhobenu 6qeXgDB/fecKlm7IBhFpwEpvgS+GDXCKEZoyH7PUu+WiyD0YqkIgDarl8/Pi1MAd/TTn QBTybHVUZITVDHK1CIzwdsT1SqazE5xFa44D96j6zR0MjvTxveot+Q8rWM8XTmZeLYIh TwMRSOeUQuLvEUp6bO+hLMTNf1yIhckSXB6BzamM+mWbzKdLh8Utg0/2EEh1Uip68IQH 6Clg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VFoVZCQn89ypMgWsupFD8qCrm7I0TxLfPoITMLmmEbc=; b=wcOjKquZoSasRx2184UZxPu/E6jIn5Alsdkf8tFAUxj3e79jYKEKuIozBjVaOIYRX+ t7uR56lddZL4jKErQIRjTwjycMs8aP7lL7OVH2QlBDXxZMe4XLZmEOGStW8rqPKfvrNc tuQBYobSqKA+a5XQJoq5+cPS6UdL2phzauqASA0FDxWrMJyKGj+ekrCPvqShSnlc4z0Z hmhw2ILh7DxFuO65O2g1enjKl1sCWUVJyPyyOdSjWfzAyyb57jkFEysf4v2Ko51LboK5 sBdITfjsIvntsC1obogFCAY5JJ+Xijz9L6EiQiO0MhTyVtvc0jKfEp8Q/w2mC4Uey/MQ CleQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gz21si2755521ejb.604.2020.12.10.07.18.40; Thu, 10 Dec 2020 07:19:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387776AbgLJPHj (ORCPT + 99 others); Thu, 10 Dec 2020 10:07:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389315AbgLJPFe (ORCPT ); Thu, 10 Dec 2020 10:05:34 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E044C061282 for ; Thu, 10 Dec 2020 07:04:06 -0800 (PST) Received: from xps.home (unknown [IPv6:2a01:e35:2fb5:1510:1626:c942:e0f1:c77c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aferraris) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 1925D1F45900; Thu, 10 Dec 2020 15:04:05 +0000 (GMT) From: Arnaud Ferraris To: linux-ext4@vger.kernel.org Cc: drosen@google.com, krisman@collabora.com, ebiggers@kernel.org, tytso@mit.edu, Arnaud Ferraris Subject: [PATCH RESEND v2 12/12] tests: f_bad_fname: Test fixes of invalid filenames and duplicates Date: Thu, 10 Dec 2020 16:03:53 +0100 Message-Id: <20201210150353.91843-13-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201210150353.91843-1-arnaud.ferraris@collabora.com> References: <20201210150353.91843-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org From: Gabriel Krisman Bertazi Signed-off-by: Gabriel Krisman Bertazi Signed-off-by: Arnaud Ferraris --- tests/f_bad_fname/expect.1 | 22 ++++++++++++++++++++++ tests/f_bad_fname/expect.2 | 7 +++++++ tests/f_bad_fname/image.gz | Bin 0 -> 802 bytes tests/f_bad_fname/name | 1 + 4 files changed, 30 insertions(+) create mode 100644 tests/f_bad_fname/expect.1 create mode 100644 tests/f_bad_fname/expect.2 create mode 100644 tests/f_bad_fname/image.gz create mode 100644 tests/f_bad_fname/name diff --git a/tests/f_bad_fname/expect.1 b/tests/f_bad_fname/expect.1 new file mode 100644 index 00000000..1d860b22 --- /dev/null +++ b/tests/f_bad_fname/expect.1 @@ -0,0 +1,22 @@ +Pass 1: Checking inodes, blocks, and sizes +Pass 2: Checking directory structure +Entry 'AM-^?' in /ci_dir (12) has illegal characters in its name. +Fix? yes + +Entry 'AM-~' in /ci_dir (12) has illegal characters in its name. +Fix? yes + +Duplicate entry 'A.' found. + Marking /ci_dir (12) to be rebuilt. + +Pass 3: Checking directory connectivity +Pass 3A: Optimizing directories +Entry 'A.' in /ci_dir (12) has a non-unique filename. +Rename to A.~0? yes + +Pass 4: Checking reference counts +Pass 5: Checking group summary information + +test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** +test_filesys: 14/16 files (0.0% non-contiguous), 22/100 blocks +Exit status is 1 diff --git a/tests/f_bad_fname/expect.2 b/tests/f_bad_fname/expect.2 new file mode 100644 index 00000000..13de1c08 --- /dev/null +++ b/tests/f_bad_fname/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: 14/16 files (0.0% non-contiguous), 22/100 blocks +Exit status is 0 diff --git a/tests/f_bad_fname/image.gz b/tests/f_bad_fname/image.gz new file mode 100644 index 0000000000000000000000000000000000000000..a8b3fc6b8397a7859d9697c462f24f498bb57fd8 GIT binary patch literal 802 zcmb2|=HU3ZwK|T0IWspgJ(c0@9p4PuP!Wa)#-G*9mUQmd6)h1gP)&N{wkF^Lhf?9g zMNtKcnpXpOe4{cJM+7ff`jtKW--4vV=~{YsIv=@RXj&kBGDu*_q5yNH8;i;k=a=78 z@%4!p{B((@Y#;x**}v1?o!R+$Msd2?XQhT^yX=m-bnO%AUveTi<+L?Vc;L6)A5Olh zkgUC!Xa6hu>if4lZ+<+wuKRbcPoc`uZ6eD**?bcdtk2o`_gzv|PMx0hpO>@$rmu^( z?AyKU``I-=Pp&oC_H)|fqtg6-`@Wz0F1_p<&)<1R{~GSt@b*UM($5jzk<&|Eqb!S5 zC;dI25?e2O?evSo@-lf#pZaR%b#MCjIm7kh&2Lv9-_JR}c*edv`_`Z5uit04m}T9R zvg*S}s~^PYF7Q0{{O`dNpFUM?$$I|tgvVE&{hDl_R{mvAe|KZ^|CzPI7iX&P%Zr_C zZ@M!(>662efM5S2S5LLK+`4<&P40-^kkj^ie!o3`-2B-7*Z-%7h5kQqb@iJ6?SA`q zEzOyqebrVf!FKA``uEYh>$GmalAq=J*SUCQeTLpw{+2WHWLy0EcfE6{wREm~%q26LNIByx0HF zdH5@Ouk^p<-#3bF)m~g&Irr}r`pP?ZBEOZ}g`cy3`d{tq z*BSM{UoQRmzSZQvY*fe5KXYH}*Z*qVr}y*p&-cgVKG&N_7JkaOdT;h8y<rT_?(Xb literal 0 HcmV?d00001 diff --git a/tests/f_bad_fname/name b/tests/f_bad_fname/name new file mode 100644 index 00000000..675165a6 --- /dev/null +++ b/tests/f_bad_fname/name @@ -0,0 +1 @@ +Case-insensitive directory with broken file names -- 2.29.2