From patchwork Mon Aug 26 17:51:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1976948 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=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=LeWROMMp; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 4Wsyt06Yrkz1yYl for ; Tue, 27 Aug 2024 03:51:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC365385DDD4 for ; Mon, 26 Aug 2024 17:51:50 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 595AB3858D26 for ; Mon, 26 Aug 2024 17:51:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 595AB3858D26 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 595AB3858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724694695; cv=none; b=nE1JnZafoDdOsPp9dR0F7a6w1NTS/9TGSttLONqKQB3G++K80lW3dlz/EUZ6TGXmEEj+VHM8Bix3fl7bw9uAU5JJz+IDVtapUqrbZH705uS7ooYGzThhbcxV7/oIyqMjf4dJFS16+pIwfyYIhX069wJL2sCRV73nmSQh/eusDFw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724694695; c=relaxed/simple; bh=rg3OytBBG1DEcpxXOLJSZooNLvgDO2Trbmv9TKu5AXs=; h=DKIM-Signature:From:To:Subject:Message-ID:Date:MIME-Version; b=REPLSTCh0i0gzBIjDk8V9cCsDq0OL7oR/0DYwPT9XHlVYgqWGinzeKchm9Wj8pPAjRKaejzp3+4FROY3zZpJgNuam0cfeQmUo3vK1p68pWk9IwC2y+2FYg4YbTQ0VHp1dQS3262wThzhRYVG5xaasfqtX7wcTuOiSuGLPtbvnyw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724694694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=bvMfxpwLYborHhUbzdGIa8+4OGZ6yP5zG+D2CDqT3YE=; b=LeWROMMpwRS3TFxcTTn6GFtZPHcLvGdzi2gB/Du8iWB5rBNDbsqkTFJsuJ9d9V9l18NSfp JAAPCucsSh5ZTTilD+A162f4Oj7EzroU7ODEb/xqoN1nQ8ZsDZ1x432xekHLi7qX9Ebip5 9OthLn0AN41eDna+q3ofsNaZCqbDIKM= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-641-UfUsR09kNsuo46WgkVU5qA-1; Mon, 26 Aug 2024 13:51:32 -0400 X-MC-Unique: UfUsR09kNsuo46WgkVU5qA-1 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 242B91955BEE for ; Mon, 26 Aug 2024 17:51:32 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.8]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 050371955F44 for ; Mon, 26 Aug 2024 17:51:30 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH v3 0/4] FUSE-based testing for file system functions Message-ID: X-From-Line: b1a734b35e60782ba3c81c9ad1f6372c28eb54c4 Mon Sep 17 00:00:00 2001 Date: Mon, 26 Aug 2024 19:51:27 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org This version uses the recommended way for tracking FUSE userspace API changes (bundle ). As a result, it is possible to build the code and tests on Hurd as well, so the patch does that. FUSE is not Linux-specific as an API (there are implementations for BSD variants, it seems). The bundling should not add maintenance overhead because we only need to update the bundled header if we want to add a test that depends on newer FUSE features. Thanks, Florian Florian Weimer (4): Bundle userspace header from Linux 6.10 support: Add FUSE-based file system test framework to support/ misc: FUSE-based tests for mkstemp io: Add FUSE-based test for fchmod io/Makefile | 1 + io/tst-fchmod-fuse.c | 117 ++ misc/Makefile | 6 + misc/tst-mkstemp-fuse-parallel.c | 211 +++ misc/tst-mkstemp-fuse.c | 198 +++ support/Makefile | 2 + support/bundled/README | 5 + support/bundled/linux/COPYING | 20 + .../LICENSES/exceptions/Linux-syscall-note | 24 + .../bundled/linux/LICENSES/preferred/GPL-2.0 | 359 +++++ .../bundled/linux/include/uapi/linux/fuse.h | 1189 +++++++++++++++++ support/fuse.h | 183 +++ support/support_fuse.c | 608 +++++++++ support/tst-support_fuse.c | 314 +++++ 14 files changed, 3237 insertions(+) create mode 100644 io/tst-fchmod-fuse.c create mode 100644 misc/tst-mkstemp-fuse-parallel.c create mode 100644 misc/tst-mkstemp-fuse.c create mode 100644 support/bundled/README create mode 100644 support/bundled/linux/COPYING create mode 100644 support/bundled/linux/LICENSES/exceptions/Linux-syscall-note create mode 100644 support/bundled/linux/LICENSES/preferred/GPL-2.0 create mode 100644 support/bundled/linux/include/uapi/linux/fuse.h create mode 100644 support/fuse.h create mode 100644 support/support_fuse.c create mode 100644 support/tst-support_fuse.c base-commit: ca90758b2a2b1c21fcf1f04b3e5ddad238b3aefe