From patchwork Tue Apr 13 17:29:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Hrubis X-Patchwork-Id: 1465916 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FKXrG5fKmz9sV5 for ; Wed, 14 Apr 2021 03:38:06 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 6CE7A3C7293 for ; Tue, 13 Apr 2021 19:37:57 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 0587B3C720A for ; Tue, 13 Apr 2021 19:37:53 +0200 (CEST) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-5.smtp.seeweb.it (Postfix) with ESMTPS id C37FB600728 for ; Tue, 13 Apr 2021 19:37:52 +0200 (CEST) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3F128B141 for ; Tue, 13 Apr 2021 17:37:52 +0000 (UTC) From: Cyril Hrubis To: ltp@lists.linux.it Date: Tue, 13 Apr 2021 19:29:15 +0200 Message-Id: <20210413172916.24434-1-chrubis@suse.cz> X-Mailer: git-send-email 2.26.3 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.2 required=7.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-5.smtp.seeweb.it Subject: [LTP] [PATCH 1/2] [COMMITTED] syscalls/*sync: Skip test on tmpfs X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" As sync() is no-op for tmpfs no bytes are transfered. Signed-off-by: Cyril Hrubis --- testcases/kernel/syscalls/fdatasync/fdatasync03.c | 4 ++++ testcases/kernel/syscalls/fsync/fsync04.c | 4 ++++ testcases/kernel/syscalls/msync/msync04.c | 4 ++++ testcases/kernel/syscalls/sync/sync01.c | 4 ++++ .../kernel/syscalls/sync_file_range/sync_file_range02.c | 6 +++++- testcases/kernel/syscalls/syncfs/syncfs01.c | 4 ++++ 6 files changed, 25 insertions(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/fdatasync/fdatasync03.c b/testcases/kernel/syscalls/fdatasync/fdatasync03.c index 263175b85..5f3e0c96f 100644 --- a/testcases/kernel/syscalls/fdatasync/fdatasync03.c +++ b/testcases/kernel/syscalls/fdatasync/fdatasync03.c @@ -58,4 +58,8 @@ static struct tst_test test = { .all_filesystems = 1, .mntpoint = MNTPOINT, .test_all = verify_fdatasync, + .skip_filesystems = (const char *[]) { + "tmpfs", + NULL + } }; diff --git a/testcases/kernel/syscalls/fsync/fsync04.c b/testcases/kernel/syscalls/fsync/fsync04.c index 1e4b8754c..9aa1584c1 100644 --- a/testcases/kernel/syscalls/fsync/fsync04.c +++ b/testcases/kernel/syscalls/fsync/fsync04.c @@ -58,4 +58,8 @@ static struct tst_test test = { .all_filesystems = 1, .mntpoint = MNTPOINT, .test_all = verify_fsync, + .skip_filesystems = (const char *[]) { + "tmpfs", + NULL + } }; diff --git a/testcases/kernel/syscalls/msync/msync04.c b/testcases/kernel/syscalls/msync/msync04.c index 7c295d961..4a564a3d1 100644 --- a/testcases/kernel/syscalls/msync/msync04.c +++ b/testcases/kernel/syscalls/msync/msync04.c @@ -98,5 +98,9 @@ static struct tst_test test = { .mntpoint = "msync04", .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]) { + "tmpfs", + NULL + }, .min_kver = "2.6.25", }; diff --git a/testcases/kernel/syscalls/sync/sync01.c b/testcases/kernel/syscalls/sync/sync01.c index dc093d863..423662678 100644 --- a/testcases/kernel/syscalls/sync/sync01.c +++ b/testcases/kernel/syscalls/sync/sync01.c @@ -53,6 +53,10 @@ static struct tst_test test = { .needs_root = 1, .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]) { + "tmpfs", + NULL + }, .mntpoint = MNTPOINT, .test_all = verify_sync, }; diff --git a/testcases/kernel/syscalls/sync_file_range/sync_file_range02.c b/testcases/kernel/syscalls/sync_file_range/sync_file_range02.c index f68f46233..d9a8eec31 100644 --- a/testcases/kernel/syscalls/sync_file_range/sync_file_range02.c +++ b/testcases/kernel/syscalls/sync_file_range/sync_file_range02.c @@ -121,7 +121,11 @@ static struct tst_test test = { .needs_root = 1, .mount_device = 1, .all_filesystems = 1, - .skip_filesystems = (const char *const []){"fuse", NULL}, + .skip_filesystems = (const char *const []){ + "fuse", + "tmpfs", + NULL + }, .mntpoint = MNTPOINT, .setup = setup, .test = run, diff --git a/testcases/kernel/syscalls/syncfs/syncfs01.c b/testcases/kernel/syscalls/syncfs/syncfs01.c index 333726eaa..24e3f2285 100644 --- a/testcases/kernel/syscalls/syncfs/syncfs01.c +++ b/testcases/kernel/syscalls/syncfs/syncfs01.c @@ -62,6 +62,10 @@ static struct tst_test test = { .needs_root = 1, .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char*[]) { + "tmpfs", + NULL + }, .mntpoint = MNTPOINT, .setup = setup, .test_all = verify_syncfs, From patchwork Tue Apr 13 17:29:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Hrubis X-Patchwork-Id: 1465917 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FKXrK59cTz9sV5 for ; Wed, 14 Apr 2021 03:38:09 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id DCDCA3C729B for ; Tue, 13 Apr 2021 19:38:06 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [IPv6:2001:4b78:1:20::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id ED6283C7283 for ; Tue, 13 Apr 2021 19:37:56 +0200 (CEST) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id A1A241A000A8 for ; Tue, 13 Apr 2021 19:37:55 +0200 (CEST) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0ADF0B309 for ; Tue, 13 Apr 2021 17:37:55 +0000 (UTC) From: Cyril Hrubis To: ltp@lists.linux.it Date: Tue, 13 Apr 2021 19:29:16 +0200 Message-Id: <20210413172916.24434-2-chrubis@suse.cz> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210413172916.24434-1-chrubis@suse.cz> References: <20210413172916.24434-1-chrubis@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.2 required=7.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-3.smtp.seeweb.it Subject: [LTP] [PATCH 2/2] [COMMITTED] syscalls/p{read, write}v03: Skip test on tmpfs X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Since open with O_DIRECT returns EINVAL on tmpfs. Signed-off-by: Cyril Hrubis --- testcases/kernel/syscalls/preadv/preadv03.c | 4 ++++ testcases/kernel/syscalls/pwritev/pwritev03.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/testcases/kernel/syscalls/preadv/preadv03.c b/testcases/kernel/syscalls/preadv/preadv03.c index c456d4105..59c3b84f7 100644 --- a/testcases/kernel/syscalls/preadv/preadv03.c +++ b/testcases/kernel/syscalls/preadv/preadv03.c @@ -135,4 +135,8 @@ static struct tst_test test = { .mntpoint = MNTPOINT, .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]) { + "tmpfs", + NULL + } }; diff --git a/testcases/kernel/syscalls/pwritev/pwritev03.c b/testcases/kernel/syscalls/pwritev/pwritev03.c index f32c368c0..91a5e3c54 100644 --- a/testcases/kernel/syscalls/pwritev/pwritev03.c +++ b/testcases/kernel/syscalls/pwritev/pwritev03.c @@ -134,4 +134,8 @@ static struct tst_test test = { .mntpoint = MNTPOINT, .mount_device = 1, .all_filesystems = 1, + .skip_filesystems = (const char *[]){ + "tmpfs", + NULL + } };