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 picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 03F31CEACC2 for ; Tue, 1 Oct 2024 13:52:35 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 77E5C3C5916 for ; Tue, 1 Oct 2024 15:52:34 +0200 (CEST) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id E51AA3C58E2 for ; Tue, 1 Oct 2024 15:52:16 +0200 (CEST) Authentication-Results: in-4.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.de (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=andrea.cervesato@suse.de; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 61D2410089A0 for ; Tue, 1 Oct 2024 15:52:16 +0200 (CEST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (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 smtp-out2.suse.de (Postfix) with ESMTPS id BC0F11F897 for ; Tue, 1 Oct 2024 13:52:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1727790735; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cvk8GbtWZgKPyTfBh0Z/2Rr/7SObxaS0XyYNheumvbw=; b=TsHhBmJjQtfUpRJ84LxWubXNFi7G2/XVV0OIfhDeKKwwXBlIrmUBCtPyUjNqeSbmxfXX2R h/cOA9xvc8rR5CpqucodtRiezKmCz7M+ko3kGHOrPPkDqcNDAantSXsJI4JptSS4+J9MO6 1wyGG11rHwk8MDfQqxpxRQwaBlH8LlM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1727790735; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cvk8GbtWZgKPyTfBh0Z/2Rr/7SObxaS0XyYNheumvbw=; b=c466NlUsUUsqzv7Im/nvCWg81PnVPHOif4IB6g3S7paJpwmQitKflaiRt6hyOLi6q+4wDk j1FKlSfT95PoJxDw== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=TsHhBmJj; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=c466NlUs DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1727790735; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cvk8GbtWZgKPyTfBh0Z/2Rr/7SObxaS0XyYNheumvbw=; b=TsHhBmJjQtfUpRJ84LxWubXNFi7G2/XVV0OIfhDeKKwwXBlIrmUBCtPyUjNqeSbmxfXX2R h/cOA9xvc8rR5CpqucodtRiezKmCz7M+ko3kGHOrPPkDqcNDAantSXsJI4JptSS4+J9MO6 1wyGG11rHwk8MDfQqxpxRQwaBlH8LlM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1727790735; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cvk8GbtWZgKPyTfBh0Z/2Rr/7SObxaS0XyYNheumvbw=; b=c466NlUsUUsqzv7Im/nvCWg81PnVPHOif4IB6g3S7paJpwmQitKflaiRt6hyOLi6q+4wDk j1FKlSfT95PoJxDw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A3E7A13A91 for ; Tue, 1 Oct 2024 13:52:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id iL44Jo/++2bJFQAAD6G6ig (envelope-from ) for ; Tue, 01 Oct 2024 13:52:15 +0000 From: Andrea Cervesato Date: Tue, 01 Oct 2024 15:52:05 +0200 MIME-Version: 1.0 Message-Id: <20241001-ioctl_ficlone01_fix-v2-3-dd0b021dd31d@suse.com> References: <20241001-ioctl_ficlone01_fix-v2-0-dd0b021dd31d@suse.com> In-Reply-To: <20241001-ioctl_ficlone01_fix-v2-0-dd0b021dd31d@suse.com> To: ltp@lists.linux.it X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1727790735; l=3555; i=andrea.cervesato@suse.com; s=20240812; h=from:subject:message-id; bh=RgTfxfiluy9UvaTBEKpMBsjgt0Rgcjt91fUYwmzmWtg=; b=3tyjG8MQt1cbKdfEvlLfi0ygUAYoqboR7MVdXIQaUVmVLyLE0P1lu/nbeYMerkI9+YhQy/rRi hUvD0MK9hzMBqXZZyP0wTr/SfpKezborUuydHALG6iPATNKPqT1lpCJ X-Developer-Key: i=andrea.cervesato@suse.com; a=ed25519; pk=RG/nLJ5snb1tLKGwSORQXBJ5XA4juT0WF2Pc/lq9meo= X-Rspamd-Queue-Id: BC0F11F897 X-Spamd-Result: default: False [-4.51 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.com:email,suse.com:mid,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ltp@lists.linux.it]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action X-Virus-Scanned: clamav-milter 1.0.3 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v2 3/3] Setup minimal kernel for ioctl_clone(range) tests 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" From: Andrea Cervesato Some linux kernels don't support copy-on-write feature for the filesystems we are going to use during ioctl_ficlone and ioctl_ficlonerange tests. For this reason, fix the minimal kernel version required in order to skip test when it's needed. In particular: - 4.16 removed experimental support for XFS reflink - 6.7 added support for bcachefs Signed-off-by: Andrea Cervesato --- testcases/kernel/syscalls/ioctl/ioctl_ficlone01.c | 7 ++++++- testcases/kernel/syscalls/ioctl/ioctl_ficlone03.c | 7 ++++++- testcases/kernel/syscalls/ioctl/ioctl_ficlonerange01.c | 7 ++++++- testcases/kernel/syscalls/ioctl/ioctl_ficlonerange02.c | 7 ++++++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ficlone01.c b/testcases/kernel/syscalls/ioctl/ioctl_ficlone01.c index f5407f789..2e2962872 100644 --- a/testcases/kernel/syscalls/ioctl/ioctl_ficlone01.c +++ b/testcases/kernel/syscalls/ioctl/ioctl_ficlone01.c @@ -112,10 +112,15 @@ static struct tst_test test = { .mount_device = 1, .mntpoint = MNTPOINT, .filesystems = (struct tst_fs []) { - {.type = "bcachefs"}, {.type = "btrfs"}, + { + .type = "bcachefs", + .min_kver = "6.7", + }, { .type = "xfs", + .min_kver = "4.16", + .mkfs_ver = "mkfs.xfs >= 1.5.0", .mkfs_opts = (const char *const []) {"-m", "reflink=1", NULL}, }, {} diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ficlone03.c b/testcases/kernel/syscalls/ioctl/ioctl_ficlone03.c index 3cc386c59..fa99d634e 100644 --- a/testcases/kernel/syscalls/ioctl/ioctl_ficlone03.c +++ b/testcases/kernel/syscalls/ioctl/ioctl_ficlone03.c @@ -110,10 +110,15 @@ static struct tst_test test = { .mount_device = 1, .mntpoint = MNTPOINT, .filesystems = (struct tst_fs []) { - {.type = "bcachefs"}, {.type = "btrfs"}, + { + .type = "bcachefs", + .min_kver = "6.7", + }, { .type = "xfs", + .min_kver = "4.16", + .mkfs_ver = "mkfs.xfs >= 1.5.0", .mkfs_opts = (const char *const []) {"-m", "reflink=1", NULL}, }, {} diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ficlonerange01.c b/testcases/kernel/syscalls/ioctl/ioctl_ficlonerange01.c index e352c513b..800bf871d 100644 --- a/testcases/kernel/syscalls/ioctl/ioctl_ficlonerange01.c +++ b/testcases/kernel/syscalls/ioctl/ioctl_ficlonerange01.c @@ -145,10 +145,15 @@ static struct tst_test test = { .mount_device = 1, .mntpoint = MNTPOINT, .filesystems = (struct tst_fs []) { - {.type = "bcachefs"}, {.type = "btrfs"}, + { + .type = "bcachefs", + .min_kver = "6.7", + }, { .type = "xfs", + .min_kver = "4.16", + .mkfs_ver = "mkfs.xfs >= 1.5.0", .mkfs_opts = (const char *const []) {"-m", "reflink=1", NULL}, }, {} diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ficlonerange02.c b/testcases/kernel/syscalls/ioctl/ioctl_ficlonerange02.c index ad36df162..6c76f83f7 100644 --- a/testcases/kernel/syscalls/ioctl/ioctl_ficlonerange02.c +++ b/testcases/kernel/syscalls/ioctl/ioctl_ficlonerange02.c @@ -82,10 +82,15 @@ static struct tst_test test = { .mount_device = 1, .mntpoint = MNTPOINT, .filesystems = (struct tst_fs []) { - {.type = "bcachefs"}, {.type = "btrfs"}, + { + .type = "bcachefs", + .min_kver = "6.7", + }, { .type = "xfs", + .min_kver = "4.16", + .mkfs_ver = "mkfs.xfs >= 1.5.0", .mkfs_opts = (const char *const []) {"-m", "reflink=1", NULL}, }, {} -- 2.43.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp