From nobody Sun Apr 28 01:15:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1567016724; cv=none; d=zoho.com; s=zohoarc; b=XQAXYee5g8OoLQAL01ViQE+zjhIOhG6cQzSCIcGVEjFdIQbl6KIsW0OMyx/taY85Hn1V1Z6nOeDRfPFuq0JIUwBus5IdnqrKWH4EGW0e1iNU5o8EN+0W43I7YC/n4aN76hpgrio1sQl/8br+CMskd5Qoy/pmK8cuweERL1ZVmYU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567016724; 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:ARC-Authentication-Results; bh=th51bbDYM/xu38GKJa3Hs3axar0Q/VM5RPKsWSP1wM8=; b=gx54uW0I7bnsAB7pjp5X/EDnWkM8ENuryotVNVamJ0BmCgE7cgqvB5YqHv1lZaC9zoRLtWcxrQ0IWQ1Qd4yx8R/auIRdafBjHtEdbSuyIz+3s5vugBKmQYMke5Oijm9Xlfre8f/zD42XspVW+1KPdY+WLj0QD+c7JAT6n2+RfGs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1567016724250337.90300686181433; Wed, 28 Aug 2019 11:25:24 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id 17730308219F; Wed, 28 Aug 2019 18:25:22 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 85B8D100194E; Wed, 28 Aug 2019 18:25:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1BD34180B536; Wed, 28 Aug 2019 18:25:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7SIPIhF012653 for ; Wed, 28 Aug 2019 14:25:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1106B60BF7; Wed, 28 Aug 2019 18:25:18 +0000 (UTC) Received: from himantopus.redhat.com (ovpn-116-135.phx2.redhat.com [10.3.116.135]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D358160BEC for ; Wed, 28 Aug 2019 18:25:15 +0000 (UTC) From: Jonathon Jongsma To: libvir-list@redhat.com Date: Wed, 28 Aug 2019 13:25:08 -0500 Message-Id: <20190828182508.13384-1-jjongsma@redhat.com> In-Reply-To: <20190827203556.14798-1-jjongsma@redhat.com> References: <20190827203556.14798-1-jjongsma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] lib: minor fixes to virDomainGetGuestInfo docs X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Wed, 28 Aug 2019 18:25:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" - Due to a typo, some of the field names didn't have closing quotes - the information about the hostname was accidentally omitted. - filesystem total-bytes and used-bytes did not specify data type Signed-off-by: Jonathon Jongsma --- Replacement for patch 1/4. This patch adds type info for filesystem usage fields ('total-bytes', 'used-bytes' are unsigned long long) as noted by Dan= iel Berrange (Hopefully your mail client threads this email properly) src/libvirt-domain.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c index cea4d2c11b..94d22752ed 100644 --- a/src/libvirt-domain.c +++ b/src/libvirt-domain.c @@ -12237,10 +12237,10 @@ virDomainSetVcpu(virDomainPtr domain, * * "user.count" - the number of active users on this domain as an * unsigned int - * "user..name - username of the user as a string - * "user..domain - domain of the user as a string (may only be + * "user..name" - username of the user as a string + * "user..domain" - domain of the user as a string (may only be * present on certain guest types) - * "user..login-time - the login time of a user in milliseconds + * "user..login-time" - the login time of a user in milliseconds * since the epoch as unsigned long long * * VIR_DOMAIN_GUEST_INFO_OS: @@ -12282,12 +12282,20 @@ virDomainSetVcpu(virDomainPtr domain, * "fs..name" - device name in the guest (e.g. "sda1") * "fs..fstype" - the type of filesystem * "fs..total-bytes" - the total size of the filesystem - * "fs..used-bytes" - the number of bytes used in the filesystem + * "fs..used-bytes" - the number of bytes used in the filesystem= as + * unsigned long long * "fs..disk.count" - the number of disks targeted by this files= ystem + * as unsigned long long * "fs..disk..alias" - the device alias of the disk (e.g. s= da) * "fs..disk..serial" - the serial number of the disk * "fs..disk..device" - the device node of the disk * + * VIR_DOMAIN_GUEST_INFO_HOSTNAME: + * Returns information about the hostname of the domain. The typed + * parameter keys are in this format: + * + * "hostname" - the hostname of the domain + * * Using 0 for @types returns all information groups supported by the given * hypervisor. * --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list