From mboxrd@z Thu Jan 1 00:00:00 1970 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 98AEAC433F5 for ; Wed, 5 Oct 2022 02:25:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229777AbiJECZh (ORCPT ); Tue, 4 Oct 2022 22:25:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbiJECZf (ORCPT ); Tue, 4 Oct 2022 22:25:35 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05C3C1E708 for ; Tue, 4 Oct 2022 19:25:33 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3054C21979 for ; Wed, 5 Oct 2022 02:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1664936732; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7QPZOmdCRR/LwgYBnN6zIGU5yx7xPW8USyp0Y7+O9HY=; b=kf/HPlYcgoK2JsAcJTgPMzf0PtxCMMvRzn9u0pmD1ZZfaUCJ16w4tzVSpaZmOLw76DWYBW 53Pi84H8QQAM9JqeHv1AGjTA/24XCnzgnDv2zzlQ850N9l39n2J1NUHFekZ1s+uK/t1DsB /9QR7jspBrNyLzH7SbmhVBQ7Du7Dnqo= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8548313345 for ; Wed, 5 Oct 2022 02:25:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id j+3uExvrPGPddgAAMHmgww (envelope-from ) for ; Wed, 05 Oct 2022 02:25:31 +0000 From: Qu Wenruo To: linux-btrfs@vger.kernel.org Subject: [PATCH 0/3] btrfs-progs: selftests fixes Date: Wed, 5 Oct 2022 10:25:11 +0800 Message-Id: X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org There are 3 bugs exposed during my tests for unified mkfs features, and they are all from the selftest itself: - check_min_kernel_version() doesn't handle 6.x kernels at all The original check never handles major number check properly. And when we change major number, returns in correct number now. - Missing a space between "!" and function call This bug is there for a long time. Without previous fix, one may incorrectly remove the "!" and cause new problems. - Convert/022 doesn't check if we have support for reiserfs Qu Wenruo (3): btrfs-progs: tests: fix the wrong kernel version check btrfs-progs: mkfs-tests/025: fix the wrong function call btrfs-progs: convert-tests/022: add reiserfs support check tests/common | 23 +++++++++++++++---- .../022-reiserfs-parent-ref/test.sh | 5 ++++ tests/mkfs-tests/025-zoned-parallel/test.sh | 2 +- 3 files changed, 25 insertions(+), 5 deletions(-) -- 2.37.3