From nobody Tue Feb 10 03:44:39 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1604334159; cv=none; d=zohomail.com; s=zohoarc; b=OBJj+9PRX33HPNzG3LJd3bU4oHZx0RbLpOaxksuyjSOvETGfjkb/C6+gLzMBqLex7Ae7ZpSF3bWrY+U3vgbH/amfuKO18lZSZxeu98cOBZIOE1TUVa5c9HLG6ebOUZG7FWaShIzbjUMV0kM2CI0grAXLpbXT/B1FHXqLTT63gfw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604334159; 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=Ej39XcH50MbgN33ompzeLPdwRqw3x3zamyjeQHkfz8Y=; b=W1hJ/reTKWZTkt0abbqWPfgID2t5g8ZWn3k2Bmlh7Gi+4CKIDRsq4D+a54zAJhfDIZQha+jfCBTgo7XwZwUHi0RxksY18euPaapX0H0A7rAO7ASlCGJokkrcKOlyQdxXdY5L+Bl6xonabsp3X8zM737l23e5QqOgIOIoo3U2NH0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1604334159117856.9520268860139; Mon, 2 Nov 2020 08:22:39 -0800 (PST) Received: from localhost ([::1]:54554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZcbN-0002SX-Sc for importer@patchew.org; Mon, 02 Nov 2020 11:22:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZcYj-0007Vu-34 for qemu-devel@nongnu.org; Mon, 02 Nov 2020 11:19:53 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:23672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kZcYh-0007YM-J5 for qemu-devel@nongnu.org; Mon, 02 Nov 2020 11:19:52 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-595-mkbW6RwsPUuhMKizJv7leg-1; Mon, 02 Nov 2020 11:19:47 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 77DBE108E1A2 for ; Mon, 2 Nov 2020 16:19:39 +0000 (UTC) Received: from localhost (unknown [10.40.194.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BA1BB1002C28; Mon, 2 Nov 2020 16:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604333991; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ej39XcH50MbgN33ompzeLPdwRqw3x3zamyjeQHkfz8Y=; b=SPbo6Ko8FNZR3yO0KJFaSAxC2op5VzxlReTh/VlU/vhi0DgCrQT8FlCNEuek+KChuXrKFe k9FJ7+P+eGlmhBeKIZU29fl+mbTe+qc4OpNVlxEo1qs625ytD1jMdiaCdmuScz8Q9mxJeS W3Jx3RLN9zvVilZJYFh+Lb6Im98gXeo= X-MC-Unique: mkbW6RwsPUuhMKizJv7leg-1 From: Max Reitz To: qemu-devel@nongnu.org Subject: [PATCH v3 2/7] virtiofsd: Add attr_flags to fuse_entry_param Date: Mon, 2 Nov 2020 17:18:54 +0100 Message-Id: <20201102161859.156603-3-mreitz@redhat.com> In-Reply-To: <20201102161859.156603-1-mreitz@redhat.com> References: <20201102161859.156603-1-mreitz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mreitz@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable 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: pass client-ip=216.205.24.124; envelope-from=mreitz@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/02 01:33:03 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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: , Cc: Miklos Szeredi , Eduardo Habkost , "Dr . David Alan Gilbert" , Max Reitz , virtio-fs@redhat.com, Stefan Hajnoczi Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" fuse_entry_param is converted to fuse_attr on the line (by fill_entry()), so it should have a member that mirrors fuse_attr.flags. fill_entry() should then copy this fuse_entry_param.attr_flags to fuse_attr.flags. Signed-off-by: Max Reitz Reviewed-by: Stefan Hajnoczi --- tools/virtiofsd/fuse_lowlevel.h | 5 +++++ tools/virtiofsd/fuse_lowlevel.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/tools/virtiofsd/fuse_lowlevel.h b/tools/virtiofsd/fuse_lowleve= l.h index 562fd5241e..9c06240f9e 100644 --- a/tools/virtiofsd/fuse_lowlevel.h +++ b/tools/virtiofsd/fuse_lowlevel.h @@ -102,6 +102,11 @@ struct fuse_entry_param { * large value. */ double entry_timeout; + + /** + * Flags for fuse_attr.flags that do not fit into attr. + */ + uint32_t attr_flags; }; =20 /** diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowleve= l.c index 370222339b..c70fb16a9a 100644 --- a/tools/virtiofsd/fuse_lowlevel.c +++ b/tools/virtiofsd/fuse_lowlevel.c @@ -341,6 +341,8 @@ static void fill_entry(struct fuse_entry_out *arg, .attr_valid_nsec =3D calc_timeout_nsec(e->attr_timeout), }; convert_stat(&e->attr, &arg->attr); + + arg->attr.flags =3D e->attr_flags; } =20 /* --=20 2.26.2