Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1031250ybb; Wed, 25 Mar 2020 14:19:19 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvSqHvdWXzOzobv9AIH+Lk0New0qKf5zNGZhytEtXDQxEczF3FaIrnuymSXPfSQvWzfGv+y X-Received: by 2002:a54:4e8b:: with SMTP id c11mr4025762oiy.136.1585171159427; Wed, 25 Mar 2020 14:19:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585171159; cv=none; d=google.com; s=arc-20160816; b=vRV0o7DM5sfNCXnNirpxGJQ1O9zu3IkxMas8N1ABgEKWJonYyrS4rTWryXU3lUOqEQ 2K0XsYI5coocu931zK4+uODUaEgMC8BXbtr9NHIn8blaLpsvUYCuP3UU7tV+D/rlXCHE 7lCx98TL4f9o/3+smYtuKiUn3ya2470Z70gjKzoKTHmYv+yOT+7Knxnd6rCXeUjINuhU O/S82RBlmQJluYYZE8PoUE7s4fHvAuOL4pfqnO/OjZLyk+s4XzXDXE5f0a9cepbTzmcz xFA/ShUqUK/X+Sx/ryI3VJa/3aeORJQ/eSpejZGBNFKjkfUHuL7TVICCoHU/HqcCUsVR 40WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mRdV7m0sinjqxpbh8VLx3vSXT070gg5fhgJzBRCotdk=; b=xEAz1WGrI2d/R/UrtFk0dQIWykZtgmnTegHCmtz5fWQkmLEPqthjlvhnjDu+MUFQTe ZaDvHQUAo6SJ9vlxlCQ9rtvsQFsBE59005xbdFK9iHFR2V93lzQ92YbOus23cGj3UFN3 NCruJce9+8meaGDR9m5vx6J+NW+IZ8Od3lyLwYRtQcSt62iKxFNJyq6f/eKxSyo0vSou eoQItYAVMvNyj7fUjzmwRQkfGSNDam0QU1MoqZGcosR8N8v4Y3WQoGq9z77wJ4xYsiTt 6GpfqdNd5EFu3N9B17d2T9SKt6wMaPrHQ/OkNuawHYIb24tG7ZEPBrjWEwz2Qzh6qDJG 4SFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g8si143309otr.38.2020.03.25.14.19.08; Wed, 25 Mar 2020 14:19:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 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 S1727451AbgCYVTD (ORCPT + 99 others); Wed, 25 Mar 2020 17:19:03 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39614 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727351AbgCYVTD (ORCPT ); Wed, 25 Mar 2020 17:19:03 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 252AA2931B6 From: Gabriel Krisman Bertazi To: tytso@mit.edu Cc: linux-ext4@vger.kernel.org, Gabriel Krisman Bertazi Subject: [PATCH e2fsprogs 11/11] tests: f_bad_fname: Validate fix of invalid filenames and duplicates Date: Wed, 25 Mar 2020 17:18:12 -0400 Message-Id: <20200325211812.2971787-13-krisman@collabora.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200325211812.2971787-1-krisman@collabora.com> References: <20200325211812.2971787-1-krisman@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Signed-off-by: Gabriel Krisman Bertazi --- 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 000000000000..1d860b2247a4 --- /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 000000000000..13de1c0806b7 --- /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 000000000000..675165a67c25 --- /dev/null +++ b/tests/f_bad_fname/name @@ -0,0 +1 @@ +Case-insensitive directory with broken file names -- 2.25.0