From patchwork Wed Jun 1 06:37:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 12866376 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B744BC433FE for ; Wed, 1 Jun 2022 06:37:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245291AbiFAGhk (ORCPT ); Wed, 1 Jun 2022 02:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349920AbiFAGhj (ORCPT ); Wed, 1 Jun 2022 02:37:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74D134DF43 for ; Tue, 31 May 2022 23:37:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2152FB81826 for ; Wed, 1 Jun 2022 06:37:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B69BC34119 for ; Wed, 1 Jun 2022 06:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654065454; bh=b/L3sbbqTchk8ym4yxLU3qo4om3OtIXvsClIhu82jvg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pAcNqf+VCBGBX9YprXphc9r4cnjz12FyKQK42uPHSftw/doqlxfF2cW0LsLg0SoKL Y+GUhzKQ/5i7PkhsQhf17fHabeFo8BAxkCYC3IxZ6ov1cKF1gAuDgcHLGVnxwMlrny NJujd+C9ClRaGOlNDeYR5w4dhQV8LZ/BYLkBEvf992xobvCDUuck4aTEz9n8hGpMH9 iaZyRVW+40CxG9G2j1cWuhgzANMOrujVSDoDKIUhnHhVsXPhDIn+3ap6BOtT0Fx9nq V9oWtGbFuE7C6kOaORIgybubrrobolq77qiOOm7b77bd17S27TtVtsy25o6FNUAZfn ND7u7Ua8ttbYQ== From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH v2 1/5] generic/139: require 512 bytes to be the minimum dio size Date: Wed, 1 Jun 2022 14:37:26 +0800 Message-Id: <20220601063730.1726879-2-zlang@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220601063730.1726879-1-zlang@kernel.org> References: <20220601063730.1726879-1-zlang@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Due to generic/139 tests base on 512 bytes aligned, so skip this test if the minimum dio write size >512. This patch also change the common/rc::_require_dio helper, supports a minimum aligned size argument. Signed-off-by: Zorro Lang --- common/rc | 17 ++++++++++++++--- tests/generic/139 | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/common/rc b/common/rc index 2f31ca46..6d384eaf 100644 --- a/common/rc +++ b/common/rc @@ -2721,9 +2721,12 @@ _require_xfs_io_command() fi } -# check that kernel and filesystem support direct I/O +# check that kernel and filesystem support direct I/O, and check if "$1" size +# aligned (optional) is supported _require_odirect() { + local alignment=${1:+"-b $1"} + if [ $FSTYP = "ext4" ] || [ $FSTYP = "f2fs" ] ; then if echo "$MOUNT_OPTIONS" | grep -q "test_dummy_encryption"; then _notrun "$FSTYP encryption doesn't support O_DIRECT" @@ -2735,9 +2738,17 @@ _require_odirect() fi fi local testfile=$TEST_DIR/$$.direct - $XFS_IO_PROG -F -f -d -c "pwrite 0 20k" $testfile > /dev/null 2>&1 + local opt + if [ -n "$1" ];then + opt="-b $1" + fi + $XFS_IO_PROG -F -f -d -c "pwrite $opt 0 20k" $testfile > /dev/null 2>&1 if [ $? -ne 0 ]; then - _notrun "O_DIRECT is not supported" + if [ -n "$alignment" ]; then + _notrun "O_DIRECT aligned to $1 bytes is not supported" + else + _notrun "O_DIRECT is not supported" + fi fi rm -f $testfile 2>&1 > /dev/null } diff --git a/tests/generic/139 b/tests/generic/139 index 0bbc222c..3eb1519d 100755 --- a/tests/generic/139 +++ b/tests/generic/139 @@ -26,7 +26,7 @@ _cleanup() # real QA test starts here _require_test_reflink _require_cp_reflink -_require_odirect +_require_odirect 512 testdir=$TEST_DIR/test-$seq rm -rf $testdir From patchwork Wed Jun 1 06:37:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 12866375 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59719C433F5 for ; Wed, 1 Jun 2022 06:37:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349917AbiFAGhj (ORCPT ); Wed, 1 Jun 2022 02:37:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245291AbiFAGhi (ORCPT ); Wed, 1 Jun 2022 02:37:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E74A74D62D for ; Tue, 31 May 2022 23:37:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 43C5F61261 for ; Wed, 1 Jun 2022 06:37:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23BB2C385A5 for ; Wed, 1 Jun 2022 06:37:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654065455; bh=MxKTX8uMGvK8utZIhJtg6e4jaCHKzxNkyt8nTdKPnSs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rlqwEmMVs9vFKZa9ZmrNAX+EArTSO6LwbrH7X88ijyhv3sOZNLJQcZ14Oh+8aw7/K 90JXJfs7hW7pXm5RMSpMKcaNYeVPNbordNx6EXZ+8KTi9vF3lUWXmzG/z/uqNuZoCK 3GfPLxVucYRy+3fPDnEThxpGQ9ue/FH6/6Je9Q0g5o5jtuslDDSvL1d9U2WRdFB6cJ 6k5Cpt34UzK66cEnhe2CcCGFMS1Ej98FCdUAjms68+BJQ3ywP3VEzzNRZv74SyiT+5 3nX5epDodkMPfHpgpYM9lkgGcR6AlsHeBk8WBPXhrZ3+34gyfbOitEZaRT0xPVuGdU gCXI6ItzsQMiQ== From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH v2 2/5] generic/506: call _require_quota before _qmount Date: Wed, 1 Jun 2022 14:37:27 +0800 Message-Id: <20220601063730.1726879-3-zlang@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220601063730.1726879-1-zlang@kernel.org> References: <20220601063730.1726879-1-zlang@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org The g/506 fails on some filesystems (e.g. overlay) which doesn't support prjquota: MOUNT_OPTIONS = -o prjquota qmount failed To avoid this failure, call _require_quota before doing real quota mount. Signed-off-by: Zorro Lang Reviewed-by: Dave Chinner Reviewed-by: Darrick J. Wong --- tests/generic/506 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/generic/506 b/tests/generic/506 index 25a5b0f8..ec91af78 100755 --- a/tests/generic/506 +++ b/tests/generic/506 @@ -27,6 +27,7 @@ _begin_fstest shutdown auto quick metadata quota _supported_fs generic _require_scratch +_require_quota _require_scratch_shutdown _scratch_mkfs >/dev/null 2>&1 From patchwork Wed Jun 1 06:37:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 12866377 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B01EAC433EF for ; Wed, 1 Jun 2022 06:37:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349920AbiFAGhl (ORCPT ); Wed, 1 Jun 2022 02:37:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345648AbiFAGhk (ORCPT ); Wed, 1 Jun 2022 02:37:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E3E74DF79 for ; Tue, 31 May 2022 23:37:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 30968B81827 for ; Wed, 1 Jun 2022 06:37:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29650C3411A for ; Wed, 1 Jun 2022 06:37:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654065456; bh=7ZwwBeBoQ8i9WwB/MCItoIKBx+f6kl3iSU1HXJLrIjA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ce7I8mqDY6dtk3+0/Q3dzvi8mXc4r0qAaDmUnKcj5dd9bPzcF2dbkoc/Jkvbu3vOh wUaCZPjJEJ/EVsoVamXZjuYFJMQ/xXq9Yj/x6vM6C3CWS4vhkfUj2n2r/0fqaQQeWS +SVwWNV3ONsvNNGfAgYOBMk+y9Ch5134hgO5lDZxGtVWYxPLjvDmYKujx7Ak2G7tg5 n8aW2FXul8gbbuFCDREvOK7WEZTDeOpiNUYFNJL7H6pRrDvx73PGLwHv+rvK0NACVf 7/B9JRPkCvwmXxFh52zmatp+h68LEG49TKXc2LNhFcd5e4qUjIdREXq8VPZEDVoFcU Jazs7vtnqr51g== From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH v2 3/5] generic/591: remove redundant output from golden image Date: Wed, 1 Jun 2022 14:37:28 +0800 Message-Id: <20220601063730.1726879-4-zlang@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220601063730.1726879-1-zlang@kernel.org> References: <20220601063730.1726879-1-zlang@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org In generic/591.out expects below output: concurrent reader with O_DIRECT concurrent reader with O_DIRECT <=== ??? concurrent reader without O_DIRECT concurrent reader without O_DIRECT <=== ??? sequential reader with O_DIRECT sequential reader without O_DIRECT The lines marked "???" are unbelievable, due to the src/splice-test.c only calls printf to output that message once in main function. So Why splice-test prints that message twice sometimes? It seems related with the "-r" option, due to the test lines without "-r" option only print one line each time running. A stanger thing is this "double output" issue only can be triggered by running g/591, can't reproduce it by running splice-test manually. By checking the code of splice-test.c, I found a "fork()" in it, and it'll be called if the '-r' option is specified. So I suspect the redundant output come from the child process. By the help of strace tool, I got: 10554 execve("/root/git/xfstests/src/splice-test", ["/root/git/xfstests/src/splice-te"..., "-r", "/mnt/test/a"], 0x7ffcabc2c0a8 /* 202 vars */) = 0 ... 10554 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f937f5d5a10) = 10555 ... 10555 read(4, "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"..., 512) = 512 10555 write(1, "concurrent reader with O_DIRECT\n", 32) = 32 10555 exit_group(0) = ? 10555 +++ exited with 0 +++ 10554 <... wait4 resumed>NULL, 0, NULL) = 10555 10554 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=10555, si_uid=0, si_status=0, si_utime=0, si_stime=1} --- 10554 unlink("/mnt/test/a") = 0 10554 write(1, "concurrent reader with O_DIRECT\n", 32) = 32 10554 exit_group(0) = ? 10554 +++ exited with 0 +++ We can see the "concurrent reader with O_DIRECT\n" be printed by parent process 10554 and child process 10555 separately. Due to the stdout redirection that fstests does cause the stream doesn't refer to a tty anymore, then the stdout become block buffered, so the '\n' doesn't help to flush that printf message, and the child print it again. So use setlinebuf(stdout) to force it line buffered, to avoid the confused output to be golden image. Then correct the generic/591.out Signed-off-by: Zorro Lang Reviewed-by: Darrick J. Wong --- src/splice-test.c | 2 ++ tests/generic/591.out | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/splice-test.c b/src/splice-test.c index 2f1ba2ba..dc41b0f5 100644 --- a/src/splice-test.c +++ b/src/splice-test.c @@ -140,6 +140,8 @@ int main(int argc, char *argv[]) usage(argv[0]); filename = argv[optind]; + /* force below printf line buffered */ + setlinebuf(stdout); printf("%s reader %s O_DIRECT\n", do_splice == do_splice1 ? "sequential" : "concurrent", (open_flags & O_DIRECT) ? "with" : "without"); diff --git a/tests/generic/591.out b/tests/generic/591.out index d61811ee..e9fffd1d 100644 --- a/tests/generic/591.out +++ b/tests/generic/591.out @@ -1,7 +1,5 @@ QA output created by 591 concurrent reader with O_DIRECT -concurrent reader with O_DIRECT -concurrent reader without O_DIRECT concurrent reader without O_DIRECT sequential reader with O_DIRECT sequential reader without O_DIRECT From patchwork Wed Jun 1 06:37:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 12866378 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57751C433EF for ; Wed, 1 Jun 2022 06:37:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349921AbiFAGhm (ORCPT ); Wed, 1 Jun 2022 02:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345648AbiFAGhm (ORCPT ); Wed, 1 Jun 2022 02:37:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2054DF43 for ; Tue, 31 May 2022 23:37:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3136DB81828 for ; Wed, 1 Jun 2022 06:37:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EADCC385B8 for ; Wed, 1 Jun 2022 06:37:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654065457; bh=wM0HoUfxQ/MaeUKHIYmE09BoN4Tk4bhIvdTuWynmmH4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=B+i/i0pkf3a2Mh/29spCUsuXkQDjR3FLiRH4Fs4fLmW6PAPgCbmbW5vJV2cwrK9Qe SSa7Vf+5dGwd7I7U5yJCpfGR+BQNIqPBhVn997HgLJyw43XtlHAqEmERuuMbg2MPgG pO9++ZBWK2bG78LezZwQrJWja0ImWJn9II7kqMJ0alobbsoUWYDZilzdTmSDi5/Woq TQN6jamu68NMESRCY3DaL6CBObaNxF9xeXfofLCayiXhLSgYs39//ev5bISe3ZWXk4 Ft4SZHnq6HXCOTbYQahRCeA//RzHeCKST98z68dh/SK0HG06mZ8IbjNRuMHnWvWYL2 uXtzcrEwRmgXA== From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH v2 4/5] generic/591: use proper sector size Date: Wed, 1 Jun 2022 14:37:29 +0800 Message-Id: <20220601063730.1726879-5-zlang@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220601063730.1726879-1-zlang@kernel.org> References: <20220601063730.1726879-1-zlang@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org The generic/591 fails if the sector size of TEST_DEV isn't 512: splice-test: write: /mnt/test/a: Invalid argument To fix this issue, this patch help src/splice-test.c to get a specify sector size from the test case. Then let g/591 give it a proper sector size which dio aligned. Signed-off-by: Zorro Lang Reviewed-by: Darrick J. Wong --- src/splice-test.c | 37 +++++++++++++++++++++++++------------ tests/generic/591 | 6 ++++-- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/src/splice-test.c b/src/splice-test.c index dc41b0f5..eb863673 100644 --- a/src/splice-test.c +++ b/src/splice-test.c @@ -19,19 +19,20 @@ #include #include -#define SECTOR_SIZE 512 -#define BUFFER_SIZE (150 * SECTOR_SIZE) +unsigned int sector_size; +unsigned int buffer_size; void read_from_pipe(int fd, const char *filename, size_t size) { - char buffer[SECTOR_SIZE]; + char *buffer; size_t sz; ssize_t ret; + buffer = malloc(buffer_size); while (size) { sz = size; - if (sz > sizeof buffer) - sz = sizeof buffer; + if (sz > buffer_size) + sz = buffer_size; ret = read(fd, buffer, sz); if (ret < 0) err(1, "read: %s", filename); @@ -41,6 +42,7 @@ void read_from_pipe(int fd, const char *filename, size_t size) } size -= sz; } + free(buffer); } void do_splice1(int fd, const char *filename, size_t size) @@ -108,7 +110,7 @@ void do_splice2(int fd, const char *filename, size_t size) void usage(const char *argv0) { - fprintf(stderr, "USAGE: %s [-rd] {filename}\n", basename(argv0)); + fprintf(stderr, "USAGE: %s [-rd] [-s sectorsize] {filename}\n", basename(argv0)); exit(2); } @@ -120,11 +122,22 @@ int main(int argc, char *argv[]) int opt, open_flags, fd; ssize_t ret; + /* + * init default sector_size and buffer_size, might be changed if the -s + * option is specified + */ + sector_size = 512; + buffer_size = 150 * sector_size; + do_splice = do_splice1; open_flags = O_CREAT | O_TRUNC | O_RDWR | O_DIRECT; - while ((opt = getopt(argc, argv, "rd")) != -1) { + while ((opt = getopt(argc, argv, "rds:")) != -1) { switch(opt) { + case 's': + sector_size = strtol(optarg, NULL, 0); + buffer_size = 150 * sector_size; + break; case 'r': do_splice = do_splice2; break; @@ -146,7 +159,7 @@ int main(int argc, char *argv[]) do_splice == do_splice1 ? "sequential" : "concurrent", (open_flags & O_DIRECT) ? "with" : "without"); - buffer = memalign(SECTOR_SIZE, BUFFER_SIZE); + buffer = memalign(sector_size, buffer_size); if (buffer == NULL) err(1, "memalign"); @@ -154,11 +167,11 @@ int main(int argc, char *argv[]) if (fd == -1) err(1, "open: %s", filename); - memset(buffer, 'x', BUFFER_SIZE); - ret = write(fd, buffer, BUFFER_SIZE); + memset(buffer, 'x', buffer_size); + ret = write(fd, buffer, buffer_size); if (ret < 0) err(1, "write: %s", filename); - if (ret != BUFFER_SIZE) { + if (ret != buffer_size) { fprintf(stderr, "%s: short write\n", filename); exit(1); } @@ -167,7 +180,7 @@ int main(int argc, char *argv[]) if (ret != 0) err(1, "lseek: %s", filename); - do_splice(fd, filename, BUFFER_SIZE); + do_splice(fd, filename, buffer_size); if (unlink(filename) == -1) err(1, "unlink: %s", filename); diff --git a/tests/generic/591 b/tests/generic/591 index 5efc5136..4de50e2a 100755 --- a/tests/generic/591 +++ b/tests/generic/591 @@ -24,9 +24,11 @@ _require_test _require_odirect _require_test_program "splice-test" -$here/src/splice-test -r $TEST_DIR/a +diosize=`_min_dio_alignment $TEST_DEV` + +$here/src/splice-test -s $diosize -r $TEST_DIR/a $here/src/splice-test -rd $TEST_DIR/a -$here/src/splice-test $TEST_DIR/a +$here/src/splice-test -s $diosize $TEST_DIR/a $here/src/splice-test -d $TEST_DIR/a # success, all done From patchwork Wed Jun 1 06:37:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 12866379 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B9ADC433FE for ; Wed, 1 Jun 2022 06:37:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345648AbiFAGho (ORCPT ); Wed, 1 Jun 2022 02:37:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349922AbiFAGhn (ORCPT ); Wed, 1 Jun 2022 02:37:43 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA2B64DF43 for ; Tue, 31 May 2022 23:37:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id A126CCE091C for ; Wed, 1 Jun 2022 06:37:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67FFBC3411D for ; Wed, 1 Jun 2022 06:37:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654065459; bh=ZRxqf9MbgJ/uu26QR2ewrq8aG8GLNaFm1RufNitv0Js=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oTYNFORRwo+/94n1wGDX1ADJYn8PR0jiLuh3kvbbC1gCEaQaq7+nHcyxMueN0P686 hKaIrgUuSxCmZGthsafc4V/cxAoxtVctY94n5roLPzSC8cT9QZ91oTjCCtrBM+P4cu 3pp50o2mDkyZ+qUUyAz6r72HATPp1B2H6QeOT+AGkOhH7q6mVBpFJ1azPmriOvRnBU VRgRmePF3n02CGj1rVG2OuhIwbP1OLxejXDtPDrRn4YiH1DngrWTmyhyTIYItRhQsD 5noSB7JeS8ZW46qpMCpM+2o0JUt1U8nRvHkI9eJsWJIJX74PTipXZGKcmTBLaqz3ND EjeJEIHYUeLbQ== From: Zorro Lang To: fstests@vger.kernel.org Subject: [PATCH v2 5/5] gitignore: ignore missed binary files in src Date: Wed, 1 Jun 2022 14:37:30 +0800 Message-Id: <20220601063730.1726879-6-zlang@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220601063730.1726879-1-zlang@kernel.org> References: <20220601063730.1726879-1-zlang@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org Add src/dmiperf and src/t_locks_execve into .gitignore file Signed-off-by: Zorro Lang --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 88c79412..24bde45c 100644 --- a/.gitignore +++ b/.gitignore @@ -77,6 +77,7 @@ tags /src/dirhash_collide /src/dirperf /src/dirstress +/src/dmiperf /src/e4compact /src/ext4_resize /src/fault @@ -146,6 +147,7 @@ tags /src/t_getcwd /src/t_holes /src/t_immutable +/src/t_locks_execve /src/t_mmap_collision /src/t_mmap_cow_race /src/t_mmap_dio