From patchwork Wed Apr 15 20:17:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 11491905 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 87E1214DD for ; Wed, 15 Apr 2020 20:17:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78CF820784 for ; Wed, 15 Apr 2020 20:17:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437870AbgDOURs (ORCPT ); Wed, 15 Apr 2020 16:17:48 -0400 Received: from sandeen.net ([63.231.237.45]:59562 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437811AbgDOURr (ORCPT ); Wed, 15 Apr 2020 16:17:47 -0400 Received: from [10.0.0.4] (liberator [10.0.0.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id 0E81DF8C2B; Wed, 15 Apr 2020 15:17:27 -0500 (CDT) Subject: [PATCH 1/4] fstests: rename _require_test_symlinks From: Eric Sandeen To: fstests , Namjae Jeon References: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Autocrypt: addr=sandeen@sandeen.net; prefer-encrypt=mutual; keydata= mQINBE6x99QBEADMR+yNFBc1Y5avoUhzI/sdR9ANwznsNpiCtZlaO4pIWvqQJCjBzp96cpCs nQZV32nqJBYnDpBDITBqTa/EF+IrHx8gKq8TaSBLHUq2ju2gJJLfBoL7V3807PQcI18YzkF+ WL05ODFQ2cemDhx5uLghHEeOxuGj+1AI+kh/FCzMedHc6k87Yu2ZuaWF+Gh1W2ix6hikRJmQ vj5BEeAx7xKkyBhzdbNIbbjV/i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eGcnEMAXZKq7bkIKzvc06GFmkMbX/gAl6DiNGv0UNAX+5FYh+ucCJZSyAp3sA+9/ LKjxnTedX0aygXA6rkpX0Y0FvN/9dfm47+LGq7WAqBOyYTU3E6/+Z72bZoG/cG7ANLxcPool LOrU43oqFnD8QwcN56y4VfFj3/jDF2MX3xu4v2OjglVjMEYHTCxP3mpxesGHuqOit/FR+mF0 MP9JGfj6x+bj/9JMBtCW1bY/aPeMdPGTJvXjGtOVYblGZrSjXRn5++Uuy36CvkcrjuziSDG+ JEexGxczWwN4mrOQWhMT5Jyb+18CO+CWxJfHaYXiLEW7dI1AynL4jjn4W0MSiXpWDUw+fsBO Pk6ah10C4+R1Jc7dyUsKksMfvvhRX1hTIXhth85H16706bneTayZBhlZ/hK18uqTX+s0onG/ m1F3vYvdlE4p2ts1mmixMF7KajN9/E5RQtiSArvKTbfsB6Two4MthIuLuf+M0mI4gPl9SPlf fWCYVPhaU9o83y1KFbD/+lh1pjP7bEu/YudBvz7F2Myjh4/9GUAijrCTNeDTDAgvIJDjXuLX pA== Message-ID: Date: Wed, 15 Apr 2020 15:17:46 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Content-Language: en-US Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Generally these tests are not restricted to one device or the other; testing the test device will suffice to determine the capability but it doesn't need to be named that way. Signed-off-by: Eric Sandeen diff --git a/common/rc b/common/rc index 24a8f145..31361d0e 100644 --- a/common/rc +++ b/common/rc @@ -3481,7 +3481,7 @@ run_check() "$@" >> $seqres.full 2>&1 || _fail "failed: '$@'" } -_require_test_symlinks() +_require_symlinks() { local target=`mktemp -p $TEST_DIR` local link=`mktemp -p $TEST_DIR -u` diff --git a/tests/generic/005 b/tests/generic/005 index 118fca20..c49109e9 100755 --- a/tests/generic/005 +++ b/tests/generic/005 @@ -48,7 +48,7 @@ _touch() # real QA test starts here _supported_fs generic _require_test -_require_test_symlinks +_require_symlinks _supported_os Linux diff --git a/tests/generic/023 b/tests/generic/023 index ea40f3d2..1cfa25cd 100755 --- a/tests/generic/023 +++ b/tests/generic/023 @@ -30,7 +30,7 @@ _supported_os Linux _require_test _require_renameat2 -_require_test_symlinks +_require_symlinks # real QA test starts here diff --git a/tests/generic/024 b/tests/generic/024 index 531a515f..b6ac4182 100755 --- a/tests/generic/024 +++ b/tests/generic/024 @@ -30,7 +30,7 @@ _supported_os Linux _require_test _require_renameat2 noreplace -_require_test_symlinks +_require_symlinks # real QA test starts here diff --git a/tests/generic/025 b/tests/generic/025 index e69d655f..2eb3e5e8 100755 --- a/tests/generic/025 +++ b/tests/generic/025 @@ -30,7 +30,7 @@ _supported_os Linux _require_test _require_renameat2 exchange -_require_test_symlinks +_require_symlinks # real QA test starts here diff --git a/tests/generic/067 b/tests/generic/067 index bd72dc85..d4c710d2 100755 --- a/tests/generic/067 +++ b/tests/generic/067 @@ -37,7 +37,7 @@ _cleanup() # Modify as appropriate. _supported_fs generic _supported_os Linux -_require_test_symlinks +_require_symlinks _require_test _require_scratch _require_loop diff --git a/tests/generic/078 b/tests/generic/078 index a421a8ab..ce0201c9 100755 --- a/tests/generic/078 +++ b/tests/generic/078 @@ -30,7 +30,7 @@ _supported_os Linux _require_test _require_renameat2 whiteout -_require_test_symlinks +_require_symlinks # real QA test starts here From patchwork Wed Apr 15 20:18:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 11491907 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3A3F2913 for ; Wed, 15 Apr 2020 20:18:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2680920774 for ; Wed, 15 Apr 2020 20:18:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437881AbgDOUSd (ORCPT ); Wed, 15 Apr 2020 16:18:33 -0400 Received: from sandeen.net ([63.231.237.45]:59584 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437923AbgDOUS3 (ORCPT ); Wed, 15 Apr 2020 16:18:29 -0400 Received: from [10.0.0.4] (liberator [10.0.0.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id D2C23170B41; Wed, 15 Apr 2020 15:18:08 -0500 (CDT) Subject: [PATCH 2/4] fstests: use _require_symlinks on all necessary tests From: Eric Sandeen To: fstests , Namjae Jeon References: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Autocrypt: addr=sandeen@sandeen.net; prefer-encrypt=mutual; keydata= mQINBE6x99QBEADMR+yNFBc1Y5avoUhzI/sdR9ANwznsNpiCtZlaO4pIWvqQJCjBzp96cpCs nQZV32nqJBYnDpBDITBqTa/EF+IrHx8gKq8TaSBLHUq2ju2gJJLfBoL7V3807PQcI18YzkF+ WL05ODFQ2cemDhx5uLghHEeOxuGj+1AI+kh/FCzMedHc6k87Yu2ZuaWF+Gh1W2ix6hikRJmQ vj5BEeAx7xKkyBhzdbNIbbjV/iGi9b26B/dNcyd5w2My2gxMtxaiP7q5b6GM2rsQklHP8FtW ZiYO7jsg/qIppR1C6Zr5jK1GQlMUIclYFeBbKggJ9mSwXJH7MIftilGQ8KDvNuV5AbkronGC sEEHj2khs7GfVv4pmUUHf1MRIvV0x3WJkpmhuZaYg8AdJlyGKgp+TQ7B+wCjNTdVqMI1vDk2 BS6Rg851ay7AypbCPx2w4d8jIkQEgNjACHVDU89PNKAjScK1aTnW+HNUqg9BliCvuX5g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XRn5++Uuy36CvkcrjuziSDG+ JEexGxczWwN4mrOQWhMT5Jyb+18CO+CWxJfHaYXiLEW7dI1AynL4jjn4W0MSiXpWDUw+fsBO Pk6ah10C4+R1Jc7dyUsKksMfvvhRX1hTIXhth85H16706bneTayZBhlZ/hK18uqTX+s0onG/ m1F3vYvdlE4p2ts1mmixMF7KajN9/E5RQtiSArvKTbfsB6Two4MthIuLuf+M0mI4gPl9SPlf fWCYVPhaU9o83y1KFbD/+lh1pjP7bEu/YudBvz7F2Myjh4/9GUAijrCTNeDTDAgvIJDjXuLX pA== Message-ID: Date: Wed, 15 Apr 2020 15:18:27 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Content-Language: en-US Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Consistently use _require_symlinks on all generic tests which create a symlink when they run. Signed-off-by: Eric Sandeen diff --git a/tests/generic/062 b/tests/generic/062 index 3fef02e8..ba744885 100755 --- a/tests/generic/062 +++ b/tests/generic/062 @@ -59,6 +59,7 @@ _supported_os Linux _require_scratch _require_attrs +_require_symlinks rm -f $tmp.backup1 $tmp.backup2 $seqres.full diff --git a/tests/generic/109 b/tests/generic/109 index 8be70c23..549a95b1 100755 --- a/tests/generic/109 +++ b/tests/generic/109 @@ -29,6 +29,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_symlinks rm -f $seqres.full diff --git a/tests/generic/294 b/tests/generic/294 index b74579ac..32c89b03 100755 --- a/tests/generic/294 +++ b/tests/generic/294 @@ -32,6 +32,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_symlinks rm -f $seqres.full _scratch_mkfs > $seqres.full 2>&1 || _fail "Could not mkfs scratch device" diff --git a/tests/generic/306 b/tests/generic/306 index 081d1a89..046f4516 100755 --- a/tests/generic/306 +++ b/tests/generic/306 @@ -33,6 +33,7 @@ _supported_fs generic _supported_os Linux _require_scratch _require_test +_require_symlinks DEVNULL=$SCRATCH_MNT/devnull DEVZERO=$SCRATCH_MNT/devzero diff --git a/tests/generic/348 b/tests/generic/348 index 630ff160..e0139d9a 100755 --- a/tests/generic/348 +++ b/tests/generic/348 @@ -32,6 +32,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_symlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/360 b/tests/generic/360 index a9a4f2f9..f15548e2 100755 --- a/tests/generic/360 +++ b/tests/generic/360 @@ -31,6 +31,7 @@ rm -f $seqres.full _supported_fs generic _supported_os Linux _require_test +_require_symlinks linkfile=$TEST_DIR/$seq.symlink rm -f $linkfile diff --git a/tests/generic/397 b/tests/generic/397 index f2e22950..c2245bd5 100755 --- a/tests/generic/397 +++ b/tests/generic/397 @@ -36,6 +36,7 @@ rm -f $seqres.full # real QA test starts here _supported_fs generic _supported_os Linux +_require_symlinks _require_scratch_encryption _require_command "$KEYCTL_PROG" keyctl diff --git a/tests/generic/399 b/tests/generic/399 index a9b3997a..a4013720 100755 --- a/tests/generic/399 +++ b/tests/generic/399 @@ -43,6 +43,7 @@ rm -f $seqres.full _supported_fs generic _supported_os Linux _require_scratch_encryption +_require_symlinks _require_command "$XZ_PROG" xz _require_command "$KEYCTL_PROG" keyctl diff --git a/tests/generic/401 b/tests/generic/401 index 9d45fbcd..00e9bbe0 100755 --- a/tests/generic/401 +++ b/tests/generic/401 @@ -37,6 +37,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_symlinks _require_test_program "t_dir_type" rm -f $seqres.full diff --git a/tests/generic/423 b/tests/generic/423 index b61d5de0..6db55fd6 100755 --- a/tests/generic/423 +++ b/tests/generic/423 @@ -38,6 +38,7 @@ _require_test _require_test_program "stat_test" _require_test_program "af_unix" _require_statx +_require_symlinks function check_stat () { $here/src/stat_test $* || echo stat_test failed diff --git a/tests/generic/440 b/tests/generic/440 index 1ec1ed48..3446c147 100755 --- a/tests/generic/440 +++ b/tests/generic/440 @@ -38,6 +38,7 @@ rm -f $seqres.full _supported_fs generic _supported_os Linux _require_scratch_encryption +_require_symlinks _require_command "$KEYCTL_PROG" keyctl # Set up an encryption-capable filesystem and an encryption key. diff --git a/tests/generic/479 b/tests/generic/479 index ad20aaee..aaf864a4 100755 --- a/tests/generic/479 +++ b/tests/generic/479 @@ -32,6 +32,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_symlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/556 b/tests/generic/556 index b7239e34..4899b403 100755 --- a/tests/generic/556 +++ b/tests/generic/556 @@ -19,6 +19,7 @@ _supported_os Linux _supported_fs generic _require_scratch_nocheck _require_scratch_casefold +_require_symlinks _require_check_dmesg _require_attrs From patchwork Wed Apr 15 20:20:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 11491911 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 23B1C14DD for ; Wed, 15 Apr 2020 20:20:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0FFCB2076D for ; Wed, 15 Apr 2020 20:20:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437939AbgDOUUh (ORCPT ); Wed, 15 Apr 2020 16:20:37 -0400 Received: from sandeen.net ([63.231.237.45]:59718 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437924AbgDOUUf (ORCPT ); Wed, 15 Apr 2020 16:20:35 -0400 Received: from [10.0.0.4] (liberator [10.0.0.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id 2A355F8C2B; Wed, 15 Apr 2020 15:20:15 -0500 (CDT) Subject: [PATCH 3/4] fstests: add _require_hardlinks for all necessary tests From: Eric Sandeen To: fstests , Namjae Jeon References: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Autocrypt: addr=sandeen@sandeen.net; prefer-encrypt=mutual; keydata= mQINBE6x99QBEADMR+yNFBc1Y5avoUhzI/sdR9ANwznsNpiCtZlaO4pIWvqQJCjBzp96cpCs nQZV32nqJBYnDpBDITBqTa/EF+IrHx8gKq8TaSBLHUq2ju2gJJLfBoL7V3807PQcI18YzkF+ WL05ODFQ2cemDhx5uLghHEeOxuGj+1AI+kh/FCzMedHc6k87Yu2ZuaWF+Gh1W2ix6hikRJmQ vj5BEeAx7xKkyBhzdbNIbbjV/iGi9b26B/dNcyd5w2My2gxMtxaiP7q5b6GM2rsQklHP8FtW ZiYO7jsg/qIppR1C6Zr5jK1GQlMUIclYFeBbKggJ9mSwXJH7MIftilGQ8KDvNuV5AbkronGC sEEHj2khs7GfVv4pmUUHf1MRIvV0x3WJkpmhuZaYg8AdJlyGKgp+TQ7B+wCjNTdVqMI1vDk2 BS6Rg851ay7AypbCPx2w4d8jIkQEgNjACHVDU89PNKAjScK1aTnW+HNUqg9BliCvuX5g4z2j gJBs57loTWAGe2Ve3cMy3VoQ40Wt3yKK0Eno8jfgzgb48wyycINZgnseMRhxc2c8hd51tftK LKhPj4c7uqjnBjrgOVaVBupGUmvLiePlnW56zJZ51BR5igWnILeOJ1ZIcf7KsaHyE6B1mG+X dmYtjDhjf3NAcoBWJuj8euxMB6TcQN2MrSXy5wSKaw40evooGwARAQABtCVFcmljIFIuIFNh bmRlZW4gPHNhbmRlZW5Ac2FuZGVlbi5uZXQ+iQI7BBMBAgAlAhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgAUCUzMzbAIZAQAKCRAgrha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-907b-d881-a6177a150260@sandeen.net> Date: Wed, 15 Apr 2020 15:20:33 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Content-Language: en-US Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Add a new _require function for hardlinks, to test hardlink support in all tests which need it. Signed-off-by: Eric Sandeen --- V2: Use full pathname for ln target diff --git a/common/rc b/common/rc index 31361d0e..742b99de 100644 --- a/common/rc +++ b/common/rc @@ -3493,6 +3493,18 @@ _require_symlinks() rm -f $target $link } +_require_hardlinks() +{ + local target=`mktemp -p $TEST_DIR` + local link=`mktemp -p $TEST_DIR -u` + ln $target $link + if [ "$?" -ne 0 ]; then + rm -f $target + _notrun "No hardlink support" + fi + rm -f $target $link +} + _require_test_fcntl_advisory_locks() { [ "$FSTYP" != "cifs" ] && return 0 diff --git a/tests/generic/002 b/tests/generic/002 index 575ac42b..480b77bc 100755 --- a/tests/generic/002 +++ b/tests/generic/002 @@ -28,6 +28,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_test +_require_hardlinks rm -f $seqres.full diff --git a/tests/generic/039 b/tests/generic/039 index daa2e353..27cd6bf5 100755 --- a/tests/generic/039 +++ b/tests/generic/039 @@ -39,6 +39,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/040 b/tests/generic/040 index 712ae595..b69d8127 100755 --- a/tests/generic/040 +++ b/tests/generic/040 @@ -44,6 +44,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/041 b/tests/generic/041 index 8001e8ce..1674d544 100755 --- a/tests/generic/041 +++ b/tests/generic/041 @@ -48,6 +48,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/056 b/tests/generic/056 index 9caf1166..28920d36 100755 --- a/tests/generic/056 +++ b/tests/generic/056 @@ -37,6 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/057 b/tests/generic/057 index ba51dbb9..91e1d98e 100755 --- a/tests/generic/057 +++ b/tests/generic/057 @@ -37,6 +37,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/065 b/tests/generic/065 index d6a1670b..30f3c32e 100755 --- a/tests/generic/065 +++ b/tests/generic/065 @@ -38,6 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/089 b/tests/generic/089 index 3d608269..52649596 100755 --- a/tests/generic/089 +++ b/tests/generic/089 @@ -36,6 +36,7 @@ addentries() _supported_fs generic _supported_os Linux _require_test +_require_hardlinks rm -f $seqres.full [ "X$TEST_DIR" = "X" ] && exit 1 diff --git a/tests/generic/090 b/tests/generic/090 index bf38d1c8..db1aeef3 100755 --- a/tests/generic/090 +++ b/tests/generic/090 @@ -36,6 +36,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/104 b/tests/generic/104 index d78689f4..4b6256db 100755 --- a/tests/generic/104 +++ b/tests/generic/104 @@ -31,6 +31,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/106 b/tests/generic/106 index 74d5dc30..e1c859e5 100755 --- a/tests/generic/106 +++ b/tests/generic/106 @@ -30,6 +30,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/107 b/tests/generic/107 index 5c6bbfca..214f3389 100755 --- a/tests/generic/107 +++ b/tests/generic/107 @@ -33,6 +33,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/236 b/tests/generic/236 index f207165f..2110b053 100755 --- a/tests/generic/236 +++ b/tests/generic/236 @@ -25,8 +25,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 # real QA test starts here _supported_fs generic -# only Linux supports fallocate _supported_os Linux +_require_hardlinks _require_test rm -f $TEST_DIR/ouch* diff --git a/tests/generic/336 b/tests/generic/336 index e007552c..6832ccde 100755 --- a/tests/generic/336 +++ b/tests/generic/336 @@ -32,6 +32,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/343 b/tests/generic/343 index e35488dd..2034197e 100755 --- a/tests/generic/343 +++ b/tests/generic/343 @@ -32,6 +32,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/378 b/tests/generic/378 index 393d1ce7..ea776949 100755 --- a/tests/generic/378 +++ b/tests/generic/378 @@ -39,6 +39,7 @@ _supported_fs generic _supported_os Linux _require_test _require_user +_require_hardlinks # Setup testfile and its hardlink testfile=$TEST_DIR/testfile.$seq diff --git a/tests/generic/480 b/tests/generic/480 index ba2c34ad..63a87519 100755 --- a/tests/generic/480 +++ b/tests/generic/480 @@ -32,6 +32,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/498 b/tests/generic/498 index 71f5091c..7adf0b32 100755 --- a/tests/generic/498 +++ b/tests/generic/498 @@ -31,6 +31,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/502 b/tests/generic/502 index a60ac9a7..a49ee0b3 100755 --- a/tests/generic/502 +++ b/tests/generic/502 @@ -34,6 +34,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/526 b/tests/generic/526 index d0b51f87..934d263f 100755 --- a/tests/generic/526 +++ b/tests/generic/526 @@ -32,6 +32,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full diff --git a/tests/generic/527 b/tests/generic/527 index 61dd4f0b..4b664da9 100755 --- a/tests/generic/527 +++ b/tests/generic/527 @@ -32,6 +32,7 @@ _cleanup() _supported_fs generic _supported_os Linux _require_scratch +_require_hardlinks _require_dm_target flakey rm -f $seqres.full From patchwork Wed Apr 15 20:21:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 11491913 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8105014DD for ; Wed, 15 Apr 2020 20:21:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 72E0120774 for ; Wed, 15 Apr 2020 20:21:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441998AbgDOUV6 (ORCPT ); Wed, 15 Apr 2020 16:21:58 -0400 Received: from sandeen.net ([63.231.237.45]:59792 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441997AbgDOUV5 (ORCPT ); Wed, 15 Apr 2020 16:21:57 -0400 Received: from [10.0.0.4] (liberator [10.0.0.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id A157448C682; Wed, 15 Apr 2020 15:21:36 -0500 (CDT) Subject: [PATCH 4/4] fstests: test for fallocate capability in more tests From: Eric Sandeen To: fstests , Namjae Jeon References: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Autocrypt: addr=sandeen@sandeen.net; prefer-encrypt=mutual; keydata= mQINBE6x99QBEADMR+yNFBc1Y5avoUhzI/sdR9ANwznsNpiCtZlaO4pIWvqQJCjBzp96cpCs nQZV32nqJBYnDpBDITBqTa/EF+IrHx8gKq8TaSBLHUq2ju2gJJLfBoL7V3807PQcI18YzkF+ WL05ODFQ2cemDhx5uLghHEeOxuGj+1AI+kh/FCzMedHc6k87Yu2ZuaWF+Gh1W2ix6hikRJmQ vj5BEeAx7xKkyBhzdbNIbbjV/iGi9b26B/dNcyd5w2My2gxMtxaiP7q5b6GM2rsQklHP8FtW ZiYO7jsg/qIppR1C6Zr5jK1GQlMUIclYFeBbKggJ9mSwXJH7MIftilGQ8KDvNuV5AbkronGC sEEHj2khs7GfVv4pmUUHf1MRIvV0x3WJkpmhuZaYg8AdJlyGKgp+TQ7B+wCjNTdVqMI1vDk2 BS6Rg851ay7AypbCPx2w4d8jIkQEgNjACHVDU89PNKAjScK1aTnW+HNUqg9BliCvuX5g4z2j gJBs57loTWAGe2Ve3cMy3VoQ40Wt3yKK0Eno8jfgzgb48wyycINZgnseMRhxc2c8hd51tftK LKhPj4c7uqjnBjrgOVaVBupGUmvLiePlnW56zJZ51BR5igWnILeOJ1ZIcf7KsaHyE6B1mG+X dmYtjDhjf3NAcoBWJuj8euxMB6TcQN2MrSXy5wSKaw40evooGwARAQABtCVFcmljIFIuIFNh bmRlZW4gP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mI4gPl9SPlf fWCYVPhaU9o83y1KFbD/+lh1pjP7bEu/YudBvz7F2Myjh4/9GUAijrCTNeDTDAgvIJDjXuLX pA== Message-ID: <1058c9b7-61e7-f8f9-b5d3-2e94a78d17de@sandeen.net> Date: Wed, 15 Apr 2020 15:21:55 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Content-Language: en-US Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org These 3 tests explicitly call xfs_io's fallocate command, test whether it works before running the test. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong diff --git a/tests/generic/286 b/tests/generic/286 index 00cb87b7..8be4fbc9 100755 --- a/tests/generic/286 +++ b/tests/generic/286 @@ -23,6 +23,7 @@ _supported_fs generic _supported_os Linux _require_test +_require_xfs_io_command "falloc" _require_seek_data_hole src=$TEST_DIR/seek_copy_testfile diff --git a/tests/generic/404 b/tests/generic/404 index 14decdb7..69d7e71e 100755 --- a/tests/generic/404 +++ b/tests/generic/404 @@ -76,6 +76,7 @@ rm -f $seqres.full _supported_fs generic _supported_os Linux _require_test +_require_xfs_io_command "falloc" _require_xfs_io_command "finsert" blksize=`_get_block_size $TEST_DIR` diff --git a/tests/generic/569 b/tests/generic/569 index 4573be5a..385fa59f 100755 --- a/tests/generic/569 +++ b/tests/generic/569 @@ -29,6 +29,7 @@ _cleanup() # real QA test starts here _supported_os Linux _supported_fs generic +_require_xfs_io_command "falloc" _require_test_program swapon _require_scratch_swapfile From patchwork Wed Apr 15 20:22:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 11491915 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E4C04913 for ; Wed, 15 Apr 2020 20:23:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D442D2076D for ; Wed, 15 Apr 2020 20:23:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2442002AbgDOUXD (ORCPT ); Wed, 15 Apr 2020 16:23:03 -0400 Received: from sandeen.net ([63.231.237.45]:59830 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2441997AbgDOUWu (ORCPT ); Wed, 15 Apr 2020 16:22:50 -0400 Received: from [10.0.0.4] (liberator [10.0.0.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTPSA id 4BF78F8C2B; Wed, 15 Apr 2020 15:22:30 -0500 (CDT) Subject: [PATCH 5/4] fstests: exclude exfat from tests which require metadata journaling From: Eric Sandeen To: fstests , Namjae Jeon References: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Autocrypt: addr=sandeen@sandeen.net; prefer-encrypt=mutual; keydata= mQINBE6x99QBEADMR+yNFBc1Y5avoUhzI/sdR9ANwznsNpiCtZlaO4pIWvqQJCjBzp96cpCs nQZV32nqJBYnDpBDITBqTa/EF+IrHx8gKq8TaSBLHUq2ju2gJJLfBoL7V3807PQcI18YzkF+ WL05ODFQ2cemDhx5uLghHEeOxuGj+1AI+kh/FCzMedHc6k87Yu2ZuaWF+Gh1W2ix6hikRJmQ vj5BEeAx7xKkyBhzdbNIbbjV/iGi9b26B/dNcyd5w2My2gxMtxaiP7q5b6GM2rsQklHP8FtW ZiYO7jsg/qIppR1C6Zr5jK1GQlMUIclYFeBbKggJ9mSwXJH7MIftilGQ8KDvNuV5AbkronGC sEEHj2khs7GfVv4pmUUHf1MRIvV0x3WJkpmhuZ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4VfFj3/jDF2MX3xu4v2OjglVjMEYHTCxP3mpxesGHuqOit/FR+mF0 MP9JGfj6x+bj/9JMBtCW1bY/aPeMdPGTJvXjGtOVYblGZrSjXRn5++Uuy36CvkcrjuziSDG+ JEexGxczWwN4mrOQWhMT5Jyb+18CO+CWxJfHaYXiLEW7dI1AynL4jjn4W0MSiXpWDUw+fsBO Pk6ah10C4+R1Jc7dyUsKksMfvvhRX1hTIXhth85H16706bneTayZBhlZ/hK18uqTX+s0onG/ m1F3vYvdlE4p2ts1mmixMF7KajN9/E5RQtiSArvKTbfsB6Two4MthIuLuf+M0mI4gPl9SPlf fWCYVPhaU9o83y1KFbD/+lh1pjP7bEu/YudBvz7F2Myjh4/9GUAijrCTNeDTDAgvIJDjXuLX pA== Message-ID: <767dab7b-df62-a2c4-015d-159db6689569@sandeen.net> Date: Wed, 15 Apr 2020 15:22:49 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9798d553-0bdd-2b8b-ce3b-3c8d2c37936e@sandeen.net> Content-Language: en-US Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Signed-off-by: Eric Sandeen diff --git a/common/rc b/common/rc index 476d3d07..ec17c99a 100644 --- a/common/rc +++ b/common/rc @@ -3211,7 +3211,7 @@ _has_metadata_journaling() fi case "$FSTYP" in - ext2|vfat|msdos|udf) + ext2|vfat|msdos|udf|exfat) echo "$FSTYP does not support metadata journaling" return 1 ;;