From patchwork Sun Dec 1 09:36:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 2017208 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=ZNjaBwxc; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=CvH3dTFN; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Y24TL2R4cz1yQN for ; Tue, 3 Dec 2024 00:32:21 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1733146340; h=to : date : message-id : in-reply-to : references : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : cc : content-type : content-transfer-encoding : sender : from; bh=xMtU5hDTvHyY2hB4TmsmjHvZUqL3JB8x0Rd2ziqEaxs=; b=ZNjaBwxczMfaTKnozUnXZIQr7Bwumb40jQWZun76k+L4wvX1c2wtfygT636BGb3Px7Dx+ qR7WtQpShkViXCa9t1yAHlS9uuJFYyOHEqu2712vfF4SuA409l1IbCuMvum3GwTaLtWyOmD Vh6Kv0XB//WCAwMrq64bmJ9RK/dAQC0= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 233AE3DD45C for ; Mon, 2 Dec 2024 14:32:20 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::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 D26093DC5B7 for ; Sun, 1 Dec 2024 10:36:14 +0100 (CET) Authentication-Results: in-4.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=zlang@kernel.org; receiver=lists.linux.it) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (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 EDE2B1017B48 for ; Sun, 1 Dec 2024 10:36:13 +0100 (CET) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id F3E875C5EA2; Sun, 1 Dec 2024 09:35:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADA46C4CED2; Sun, 1 Dec 2024 09:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733045771; bh=IE4LAlT4CHnSy+VJG/nkGoQkCvxrzBq1C5OtbyvYSR0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CvH3dTFNIul33BtAeIOy/ThatctQznqEhgqDCwzANcySa2Km66nN3B1uc0YB13i9F KJDAzR8vb3JTTjph7l5nHgXsqzsxlxM056XbQrlhjn8XwL3KsySKYNui2w95XSSPJU GWjOpL4JC6f/p00TFYf56kH+PtynZf2hQRMAUZ59QcFWWiW70ZZQZV6yzn6/6O4vQC ioiCn7ch5lzdHJIwXamM/SFNfd4J08CMtKUH3AZN9zteMaq8ux/+Bt4u+g7358+FVp 13VlsOu1oiu3ETMC69YevbcabMRVtRxw0MGZ6E476yIly58S9HlQHEGPYxqeOuXkIK PWt6zOL56yyTQ== To: ltp@lists.linux.it Date: Sun, 1 Dec 2024 17:36:04 +0800 Message-ID: <20241201093606.68993-2-zlang@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241201093606.68993-1-zlang@kernel.org> References: <20241201093606.68993-1-zlang@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-4.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Mailman-Approved-At: Mon, 02 Dec 2024 14:31:52 +0100 Subject: [LTP] [PATCH 1/3] ioctl_ficlone02.c: set all_filesystems to zero 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: , X-Patchwork-Original-From: Zorro Lang via ltp From: Zorro Lang Reply-To: Zorro Lang Cc: linux-btrfs@vger.kernel.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This test need to skip test known filesystems, but according to below code logic (in lib/tst_test.c): if (!tst_test->all_filesystems && tst_test->skip_filesystems) { long fs_type = tst_fs_type("."); const char *fs_name = tst_fs_type_name(fs_type); if (tst_fs_in_skiplist(fs_name, tst_test->skip_filesystems)) { tst_brk(TCONF, "%s is not supported by the test", fs_name); } tst_res(TINFO, "%s is supported by the test", fs_name); } if all_filesystems is 1, the skip_filesystems doesn't work. So set all_filesystems to 0. Signed-off-by: Zorro Lang --- testcases/kernel/syscalls/ioctl/ioctl_ficlone02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/ioctl/ioctl_ficlone02.c b/testcases/kernel/syscalls/ioctl/ioctl_ficlone02.c index fab0daaee..b7f676ec7 100644 --- a/testcases/kernel/syscalls/ioctl/ioctl_ficlone02.c +++ b/testcases/kernel/syscalls/ioctl/ioctl_ficlone02.c @@ -57,7 +57,7 @@ static struct tst_test test = { .needs_root = 1, .mount_device = 1, .mntpoint = MNTPOINT, - .all_filesystems = 1, + .all_filesystems = 0, .skip_filesystems = (const char *[]) { "bcachefs", "btrfs", From patchwork Sun Dec 1 09:36:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 2017210 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=Icz3ZUJn; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=IAaUhQby; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Y24Tm51dMz1yQN for ; Tue, 3 Dec 2024 00:32:44 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1733146362; h=to : date : message-id : in-reply-to : references : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : cc : content-type : content-transfer-encoding : sender : from; bh=CkxR+3KRGYFoQ7uSkd+YkrS4vuwA8eu4laFvtKUdNyI=; b=Icz3ZUJnhqzLP6K/qUylfNVXPOca8vgeUBlwcybo3ZRsLf6bP1HLCl+6yjwRTjXr1AL7u jHChV33gGms1pRTzDU56efe1Fytxn8al4U/4+4XGkREbW1sFNKudwmwwbDUfzkSYa5XOIGV Jp3/mX41VlA9Hon86s5pYX5h+zOJVAw= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id D0B843DD459 for ; Mon, 2 Dec 2024 14:32:42 +0100 (CET) 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 ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id A28933DC5B7 for ; Sun, 1 Dec 2024 10:36:16 +0100 (CET) Authentication-Results: in-3.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:45d1:ec00::3; helo=nyc.source.kernel.org; envelope-from=zlang@kernel.org; receiver=lists.linux.it) Received: from nyc.source.kernel.org (nyc.source.kernel.org [IPv6:2604:1380:45d1:ec00::3]) (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-3.smtp.seeweb.it (Postfix) with ESMTPS id C025B1BC24ED for ; Sun, 1 Dec 2024 10:36:15 +0100 (CET) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 2BDD2A40A22; Sun, 1 Dec 2024 09:34:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55AB3C4CECF; Sun, 1 Dec 2024 09:36:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733045773; bh=ACdJRYtvT54h2D5uwzZyukQ5TybF5LCQCuBGDaRqadA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IAaUhQbyVifk1SBtkY9VPE6CiF86oFUu3ILFofqve0zuXvyPFSpxs87/dYon8sHba 16w47wSn3MyKD0meaKvzancjOXGjqRysx9lEUPiKrCkf6WJy2nUXu/kxKgPaUUlz0M NufCm3Com12YqJi7yD99lTMMiBXVJral7WXK89aUI47qggUfw/nDbxjJFXu1/JYXIx eZ2KPaK+fQyM94xKtPigLZsxsULRjs7Dt9LxaXgs4KYp75a/ecVX/xamnwb6zuzSQK zpoZiMvzgQ39ZNQBLKrkzmswzlkiIR5IaPHa98dKzMQoelqNrR33t25VBTMDel4Ivo KTltt0x7hA0ng== To: ltp@lists.linux.it Date: Sun, 1 Dec 2024 17:36:05 +0800 Message-ID: <20241201093606.68993-3-zlang@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241201093606.68993-1-zlang@kernel.org> References: <20241201093606.68993-1-zlang@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-3.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-3.smtp.seeweb.it X-Virus-Status: Clean X-Mailman-Approved-At: Mon, 02 Dec 2024 14:31:52 +0100 Subject: [LTP] [PATCH 2/3] stat04+lstat03: fix bad blocksize mkfs option for xfs 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: , X-Patchwork-Original-From: Zorro Lang via ltp From: Zorro Lang Reply-To: Zorro Lang Cc: linux-btrfs@vger.kernel.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Not all filesystems use "-b 1024" to set its blocksize. XFS uses "-b size=1024", so this test fails as "unknown option -b 1024" on xfs. Signed-off-by: Zorro Lang --- testcases/kernel/syscalls/lstat/lstat03.c | 8 ++++++-- testcases/kernel/syscalls/stat/stat04.c | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/testcases/kernel/syscalls/lstat/lstat03.c b/testcases/kernel/syscalls/lstat/lstat03.c index d48af180b..675fb56f4 100644 --- a/testcases/kernel/syscalls/lstat/lstat03.c +++ b/testcases/kernel/syscalls/lstat/lstat03.c @@ -44,8 +44,9 @@ static void run(void) static void setup(void) { + char *opt_name="-b"; char opt_bsize[32]; - const char *const fs_opts[] = {opt_bsize, NULL}; + const char *const fs_opts[] = {opt_name, opt_bsize, NULL}; struct stat sb; int pagesize; int fd; @@ -54,7 +55,10 @@ static void setup(void) SAFE_STAT(".", &sb); pagesize = sb.st_blksize == 4096 ? 1024 : 4096; - snprintf(opt_bsize, sizeof(opt_bsize), "-b %i", pagesize); + if (strcmp(tst_device->fs_type, "xfs") == 0) + snprintf(opt_bsize, sizeof(opt_bsize), "size=%i", pagesize); + else + snprintf(opt_bsize, sizeof(opt_bsize), "%i", pagesize); SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, 0); diff --git a/testcases/kernel/syscalls/stat/stat04.c b/testcases/kernel/syscalls/stat/stat04.c index 05ace606a..2a17cc7d7 100644 --- a/testcases/kernel/syscalls/stat/stat04.c +++ b/testcases/kernel/syscalls/stat/stat04.c @@ -43,8 +43,9 @@ static void run(void) static void setup(void) { + char *opt_name="-b"; char opt_bsize[32]; - const char *const fs_opts[] = {opt_bsize, NULL}; + const char *const fs_opts[] = {opt_name, opt_bsize, NULL}; struct stat sb; int pagesize; int fd; @@ -56,7 +57,10 @@ static void setup(void) SAFE_STAT(".", &sb); pagesize = sb.st_blksize == 4096 ? 1024 : 4096; - snprintf(opt_bsize, sizeof(opt_bsize), "-b %i", pagesize); + if (strcmp(tst_device->fs_type, "xfs") == 0) + snprintf(opt_bsize, sizeof(opt_bsize), "size=%i", pagesize); + else + snprintf(opt_bsize, sizeof(opt_bsize), "%i", pagesize); SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, 0); From patchwork Sun Dec 1 09:36:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zorro Lang X-Patchwork-Id: 2017211 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=lists.linux.it header.i=@lists.linux.it header.a=rsa-sha256 header.s=picard header.b=D5Emvx3V; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=r/JAXunz; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (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 legolas.ozlabs.org (Postfix) with ESMTPS id 4Y24VC5xHMz1yQN for ; Tue, 3 Dec 2024 00:33:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it; i=@lists.linux.it; q=dns/txt; s=picard; t=1733146385; h=to : date : message-id : in-reply-to : references : mime-version : subject : list-id : list-unsubscribe : list-archive : list-post : list-help : list-subscribe : from : reply-to : cc : content-type : content-transfer-encoding : sender : from; bh=wjD75wpXVZz98h8BSNE08BM8+eA8lYfclSHTbA2YslM=; b=D5Emvx3VkbeYnDqQWpJtoGBAgNwMdB/KJ0nECgABSoz8z9eUNYgj/Er5jUa8cAFw9V4o7 K8itgMMmpwwowLC9csLJpTwwFsBhDcoGby5dMSyj0kQoSYGBxxNxZGCyIZvESZ2aKCc7cSS QAl9arkX9Is6Z+/WkUsAUE276Dn9Nz0= Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 787373CE808 for ; Mon, 2 Dec 2024 14:33:05 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2]) (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 D99813DC5B7 for ; Sun, 1 Dec 2024 10:36:16 +0100 (CET) Authentication-Results: in-2.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:45d1:ec00::3; helo=nyc.source.kernel.org; envelope-from=zlang@kernel.org; receiver=lists.linux.it) Received: from nyc.source.kernel.org (nyc.source.kernel.org [IPv6:2604:1380:45d1:ec00::3]) (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-2.smtp.seeweb.it (Postfix) with ESMTPS id 44DD1600FDE for ; Sun, 1 Dec 2024 10:36:16 +0100 (CET) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id C661AA40A24; Sun, 1 Dec 2024 09:34:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D85FDC4CECF; Sun, 1 Dec 2024 09:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733045775; bh=V/oXOD9GbNSan96odxreYJIhYatuukOGYYeIiyfKbhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r/JAXunzkbNKtJdGNBL6BqAoAETre/av319LAREQ9a9f5oHEoUWHPr1kw0k5mCz4A 21g+7z5JAPu5UrN3HNWi2gZSK9n681O8PaBIP4zLQfF9QoFZqJYBGGdQyF2fVfsjBP V5FGRukVQr7kcirrdg3oSUAg1rgD2v8g7C1yNwGpvY0xZE0/B1gDm+YjtdOHn+GTNX 1Moj7snxOEW9buiVoiE3nn6No/v1yVpgxGTozLJB1QESpu+4uoaBIlIMshniDvujzp VzCGKuJpnYkT+Wif/JHuPUoWVsi7/vOaWGy4yYFPC/6pRp/tQ/VF91VByd2LKP7sAN RGJtyrshrY0gg== To: ltp@lists.linux.it Date: Sun, 1 Dec 2024 17:36:06 +0800 Message-ID: <20241201093606.68993-4-zlang@kernel.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241201093606.68993-1-zlang@kernel.org> References: <20241201093606.68993-1-zlang@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-2.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-2.smtp.seeweb.it X-Virus-Status: Clean X-Mailman-Approved-At: Mon, 02 Dec 2024 14:31:52 +0100 Subject: [LTP] [PATCH 3/3] stat04+lstat03: skip test on btrfs 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: , X-Patchwork-Original-From: Zorro Lang via ltp From: Zorro Lang Reply-To: Zorro Lang Cc: linux-btrfs@vger.kernel.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" The "-b" option for mkfs.btrfs isn't a blocksize option, it does "specify the size of each device as seen by the filesystem" for btrfs. There's not an blocksize mkfs option for btrfs, so skip this test. Signed-off-by: Zorro Lang --- testcases/kernel/syscalls/lstat/lstat03.c | 2 ++ testcases/kernel/syscalls/stat/stat04.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/testcases/kernel/syscalls/lstat/lstat03.c b/testcases/kernel/syscalls/lstat/lstat03.c index 675fb56f4..f7346893d 100644 --- a/testcases/kernel/syscalls/lstat/lstat03.c +++ b/testcases/kernel/syscalls/lstat/lstat03.c @@ -57,6 +57,8 @@ static void setup(void) if (strcmp(tst_device->fs_type, "xfs") == 0) snprintf(opt_bsize, sizeof(opt_bsize), "size=%i", pagesize); + else if (strcmp(tst_device->fs_type, "btrfs") == 0) + tst_brk(TCONF, "btrfs is not supported"); else snprintf(opt_bsize, sizeof(opt_bsize), "%i", pagesize); SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL); diff --git a/testcases/kernel/syscalls/stat/stat04.c b/testcases/kernel/syscalls/stat/stat04.c index 2a17cc7d7..3c4f1a6b4 100644 --- a/testcases/kernel/syscalls/stat/stat04.c +++ b/testcases/kernel/syscalls/stat/stat04.c @@ -59,6 +59,8 @@ static void setup(void) if (strcmp(tst_device->fs_type, "xfs") == 0) snprintf(opt_bsize, sizeof(opt_bsize), "size=%i", pagesize); + else if (strcmp(tst_device->fs_type, "btrfs") == 0) + tst_brk(TCONF, "btrfs is not supported"); else snprintf(opt_bsize, sizeof(opt_bsize), "%i", pagesize); SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL);