From nobody Mon Feb 9 05:43:26 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1662385032; cv=none; d=zohomail.com; s=zohoarc; b=MQys8ii/dv0SwGOlKL1C4aJcPaTbdhSlT/jSzfsRcB7zKO7LzpehplAoT0PCEqwxebQ+MYOJi3wFmb0DVaXxn4JFe+UH7Exn0RHMo03fX5f3RUbIF2UWG3XMRzoCtHbyH9ZxYRu070W+J2e/hFJo+IdZ6jcbgJTIsLaOk8Whn5M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662385032; h=Content-Type:Content-Transfer-Encoding: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=yD62u0V0jDweZlQK0DFsI0gPnAtdx4/oYMkMpq+XHnM=; b=QD42A9NV4cstqqpRRtgmEjWnpznYfI69qjkeAQObENW9CNVT7Th7gNxEU4Fc2mLZiASlxp2h7T2MnSW5M7WswcUZJM1G6g8VQlHnMiuyuUkJWct3P5iL7vu2GDGkzxQiH0Sa8rpTs8FJHMcRkdO+Y6GVUI33aJZW25ZVst5Y/QY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1662385032423728.8351933427523; Mon, 5 Sep 2022 06:37:12 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-315-DJPwAjMIPAqk0QU9yxisaA-1; Mon, 05 Sep 2022 09:34:29 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DEAB33C0F398; Mon, 5 Sep 2022 13:34:26 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 942709458A; Mon, 5 Sep 2022 13:34:26 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5ED2C194035B; Mon, 5 Sep 2022 13:34:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7428F193F515 for ; Mon, 5 Sep 2022 13:34:25 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6946C40D2830; Mon, 5 Sep 2022 13:34:25 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4F1DE40D282E for ; Mon, 5 Sep 2022 13:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662385031; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=yD62u0V0jDweZlQK0DFsI0gPnAtdx4/oYMkMpq+XHnM=; b=GbqpUIUR/OEmFQF7i0Bz+oTVRhryhEK6xPSOPxY4xJNUODptyFzACHCFQA8yElVedlXKL9 BnK6msYX+nsXMT72Rz5RvZ0YJieVAMZ4N/gP3lOSINmBa1VqLl4T6dfY9pxBYXGOo8qO34 o+mvUENME7JUXRZ+Rf4nxeQX8wvYqcc= X-MC-Unique: DJPwAjMIPAqk0QU9yxisaA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 1/7] util: virFileIsSharedFSType: Pass bitmap of checked fs types as unsigned Date: Mon, 5 Sep 2022 15:34:15 +0200 Message-Id: <388cc1e696cca9b32b7e8fa54e8b7256334b849e.1662384799.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1662385032839100001 Content-Type: text/plain; charset="utf-8" We populate the bits individualy so unsigned is the proper type. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- src/util/virfile.c | 4 ++-- src/util/virfile.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/virfile.c b/src/util/virfile.c index ce541b8946..1def05b6c4 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -3394,7 +3394,7 @@ virFileIsSharedFixFUSE(const char *path, int virFileIsSharedFSType(const char *path, - int fstypes) + unsigned int fstypes) { g_autofree char *dirpath =3D NULL; char *p =3D NULL; @@ -3601,7 +3601,7 @@ virFileFindHugeTLBFS(virHugeTLBFS **ret_fs, #else /* defined __linux__ */ int virFileIsSharedFSType(const char *path G_GNUC_UNUSED, - int fstypes G_GNUC_UNUSED) + unsigned int fstypes G_GNUC_UNUSED) { /* XXX implement me :-) */ return 0; diff --git a/src/util/virfile.h b/src/util/virfile.h index 4af1ad9136..8d6df034f8 100644 --- a/src/util/virfile.h +++ b/src/util/virfile.h @@ -224,7 +224,7 @@ enum { VIR_FILE_SHFS_ACFS =3D (1 << 9), }; -int virFileIsSharedFSType(const char *path, int fstypes) ATTRIBUTE_NONNULL= (1); +int virFileIsSharedFSType(const char *path, unsigned int fstypes) ATTRIBUT= E_NONNULL(1); int virFileIsSharedFS(const char *path) ATTRIBUTE_NONNULL(1); int virFileIsClusterFS(const char *path) ATTRIBUTE_NONNULL(1); int virFileIsMountPoint(const char *file) ATTRIBUTE_NONNULL(1); --=20 2.37.1