From nobody Sun Feb 8 22:57:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=crudebyte.com ARC-Seal: i=1; a=rsa-sha256; t=1646401785; cv=none; d=zohomail.com; s=zohoarc; b=R5NR7fqu6d+jOc/5IzUbqLCIMFKfPpYHSdxu4OKArHMobiobX7KkxNusu0qXsYTk8TzBrrNqius9SCZhCkL1sZpWWFC3LbGAtP5fSiWqkxmbSrLGyDEbo0ylaRLbLtO4wyaZeuXj2I9C5wHifTkBtl3rGkHJni9BhasrDrJ3sH4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646401785; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=5oLuXWTJKZvpRWIxoiPJFUVce5lljtpqW3n1BbXrpOw=; b=H8FXlHfXWDWDne17lQB56K8exyoBEAR0+I1wRms2m4UKLhi7ymyJHOvr31NLDeMQ8Z3y/xPP7FTiaK0ojgWyaxslGPDbn5FBNEPmjzu8PiDUFOKQ3Ztxy6ohdA+0pwMmD+tZHsp5OHTUHYjaDswmms0QI1Hk+lR2zI0sx6Ocrss= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646401785723991.6448950890161; Fri, 4 Mar 2022 05:49:45 -0800 (PST) Received: from localhost ([::1]:47856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQ8JU-0007lV-AD for importer@patchew.org; Fri, 04 Mar 2022 08:49:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <29241fc0ad2cf5c45ee005befc8d3bad04a79914@lizzy.crudebyte.com>) id 1nQ7tL-0007D4-AB for qemu-devel@nongnu.org; Fri, 04 Mar 2022 08:22:46 -0500 Received: from lizzy.crudebyte.com ([91.194.90.13]:57025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <29241fc0ad2cf5c45ee005befc8d3bad04a79914@lizzy.crudebyte.com>) id 1nQ7tG-0001i7-Dn for qemu-devel@nongnu.org; Fri, 04 Mar 2022 08:22:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Content-Transfer-Encoding:Content-Type: MIME-Version:Subject:Date:From:References:In-Reply-To:Message-Id:Content-ID: Content-Description; bh=5oLuXWTJKZvpRWIxoiPJFUVce5lljtpqW3n1BbXrpOw=; b=LeD6B gBR43o7tsMRUbG8KWwvV/C+MXm88W9UpJgUz/cyuRNfwNmInBcog0CKjTchhLwzCqafFJe2M3GL6N Q4v7e7L9FhkH0BsVJEOEGUJIUd8+BYECqQfeQjkT9e01IhWBVCTB4AqutuYxVSGP2Ro1pTGLmj0CK bYz7vdnPjDH4oRi/PudWDbtvevwoVQyzLBbdKLm+a2TmqhOQv1ojd9evlHttVp9Xd/h8h9Au/BD0u P3yRislJN8J5z+RyChRQTpopThVHNvdnQBTZGF5VrOIn2XPVDqZg8ps07SVHo73YgrAgbCnJ0cDjT cTPFbefPhYbleSvO40uXJPQdAz6NQ==; Message-Id: <29241fc0ad2cf5c45ee005befc8d3bad04a79914.1646396869.git.qemu_oss@crudebyte.com> In-Reply-To: References: From: Christian Schoenebeck Date: Fri, 04 Mar 2022 13:27:49 +0100 Subject: [PULL 02/19] 9p: Rename 9p-util -> 9p-util-linux MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: qemu-devel@nongnu.org, Peter Maydell Cc: Greg Kurz Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=91.194.90.13; envelope-from=29241fc0ad2cf5c45ee005befc8d3bad04a79914@lizzy.crudebyte.com; helo=lizzy.crudebyte.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @crudebyte.com) X-ZM-MESSAGEID: 1646401787805100001 From: Keno Fischer The current file only has the Linux versions of these functions. Rename the file accordingly and update the Makefile to only build it on Linux. A Darwin version of these will follow later in the series. Signed-off-by: Keno Fischer [Michael Roitzsch: - Rebase for NixOS] Signed-off-by: Michael Roitzsch Signed-off-by: Will Cohen Reviewed-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20220227223522.91937-3-wwcohen@gmail.com> Signed-off-by: Christian Schoenebeck --- hw/9pfs/{9p-util.c =3D> 9p-util-linux.c} | 2 +- hw/9pfs/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename hw/9pfs/{9p-util.c =3D> 9p-util-linux.c} (97%) diff --git a/hw/9pfs/9p-util.c b/hw/9pfs/9p-util-linux.c similarity index 97% rename from hw/9pfs/9p-util.c rename to hw/9pfs/9p-util-linux.c index 3221d9b498..398614a5d0 100644 --- a/hw/9pfs/9p-util.c +++ b/hw/9pfs/9p-util-linux.c @@ -1,5 +1,5 @@ /* - * 9p utilities + * 9p utilities (Linux Implementation) * * Copyright IBM, Corp. 2017 * diff --git a/hw/9pfs/meson.build b/hw/9pfs/meson.build index 99be5d9119..1b28e70040 100644 --- a/hw/9pfs/meson.build +++ b/hw/9pfs/meson.build @@ -4,7 +4,6 @@ fs_ss.add(files( '9p-posix-acl.c', '9p-proxy.c', '9p-synth.c', - '9p-util.c', '9p-xattr-user.c', '9p-xattr.c', '9p.c', @@ -14,6 +13,7 @@ fs_ss.add(files( 'coth.c', 'coxattr.c', )) +fs_ss.add(when: 'CONFIG_LINUX', if_true: files('9p-util-linux.c')) fs_ss.add(when: 'CONFIG_XEN', if_true: files('xen-9p-backend.c')) softmmu_ss.add_all(when: 'CONFIG_FSDEV_9P', if_true: fs_ss) =20 --=20 2.20.1