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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6696C433F5 for ; Fri, 1 Oct 2021 14:38:27 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9D1961381 for ; Fri, 1 Oct 2021 14:38:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A9D1961381 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=crudebyte.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:35104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWJgA-0007zs-Hh for qemu-devel@archiver.kernel.org; Fri, 01 Oct 2021 10:38:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <90c65d1c1ca11c1b434bb981b1fc7966f7711c8f@lizzy.crudebyte.com>) id 1mWJdm-0005Wa-4t for qemu-devel@nongnu.org; Fri, 01 Oct 2021 10:36:03 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]:57649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <90c65d1c1ca11c1b434bb981b1fc7966f7711c8f@lizzy.crudebyte.com>) id 1mWJdj-0008K8-PG for qemu-devel@nongnu.org; Fri, 01 Oct 2021 10:35:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Subject:Date:From:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Content-ID: Content-Description; bh=AbEr1cMeepv5cYbB/4Yli0IlGUCW7Xs3QmQHmc7g77E=; b=AnOvJ DSaNCkm78HeZ7ticWR4At9xAcJ8F+d0WghS1aQcKEiHoadeQ7Ab9dy7c4UdLxetc58bEdmuwJKOjP gLlkkrkmhTNCt8Grn8A3Y2IYvolXoMkkYDEvWnUMfVWsPynb6lk11qNMGyhvLot4Gjk8t28DNOJ8r olC7a5xfHTWKB5U6q/F2oMOK8ZpsjshYbILWUsA+YHT1KcR3ZG56kN/b37Hjj4uTr7sd0ag+uEV2y crCr4A6Rs8mnuRBC/qeZvlyCGfzLzGIeIAksVdnQsxmwiNXdEOZxMNvcOPUCVWJdMTD4U7KOys7eN SE0KBNuK669+lS8ZucN66V2TtgZ/w==; Message-Id: From: Christian Schoenebeck Date: Fri, 1 Oct 2021 16:25:22 +0200 Subject: [PATCH 0/5] 9pfs: introduce P9Array To: qemu-devel@nongnu.org Cc: Greg Kurz , Richard Henderson Received-SPF: none client-ip=91.194.90.13; envelope-from=90c65d1c1ca11c1b434bb981b1fc7966f7711c8f@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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This is simply a refactored follow-up of the following previous series ("introduce QArray"): https://lists.gnu.org/archive/html/qemu-devel/2021-08/msg04530.html There was no consensus about a project wide "QArray" shared utility code, nor does there seem to be a need for a project wide code, so let's just refactor QArray -> P9Array and make it a 9P local type for now: https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg07743.html Changes QArray v3 -> P9Array v1: * Moved header file, i.e. include/qemu/qarray.h -> fsdev/p9array.h * Refactored *QArray* -> *P9Array* * Refactored P9ARRAY_CREATE -> P9ARRAY_NEW and p9array_create_* -> p9array_new_* accordingly * Refactored DECLARE_P9ARRAY_TYPE -> P9ARRAY_DECLARE_TYPE * Refactored DEFINE_P9ARRAY_TYPE -> P9ARRAY_DEFINE_TYPE [No behaviour changes whatsoever] Christian Schoenebeck (5): 9pfs: introduce P9Array fsdev/p9array.h: check scalar type in P9ARRAY_NEW() 9pfs: make V9fsString usable via P9Array API 9pfs: make V9fsPath usable via P9Array API 9pfs: use P9Array in v9fs_walk() fsdev/9p-marshal.c | 2 + fsdev/9p-marshal.h | 3 + fsdev/file-op-9p.h | 2 + fsdev/p9array.h | 160 +++++++++++++++++++++++++++++++++++++++++++++ hw/9pfs/9p.c | 19 ++---- 5 files changed, 174 insertions(+), 12 deletions(-) create mode 100644 fsdev/p9array.h -- 2.20.1