From nobody Tue Sep 9 03:19:45 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1738081993658807.9274785784279; Tue, 28 Jan 2025 08:33:13 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id B75F51BA0; Tue, 28 Jan 2025 11:33:12 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id C38151B97; Tue, 28 Jan 2025 11:29:06 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id C813A188F; Tue, 28 Jan 2025 11:28:59 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 820591B6F for ; Tue, 28 Jan 2025 11:28:41 -0500 (EST) Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-665-wdDkdIMRM0e15WMv_0Kuvw-1; Tue, 28 Jan 2025 11:28:40 -0500 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3EF161800361 for ; Tue, 28 Jan 2025 16:28:39 +0000 (UTC) Received: from speedmetal.lan (unknown [10.45.242.2]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6F1EB19560AA for ; Tue, 28 Jan 2025 16:28:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1738081721; h=from:from: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; bh=MKPWbj3yFWc1n+ploj8PUmYXbbnXXU94ghEzToSHO3o=; b=he0+WFZkiMkQXatjZQl6j27igGeuoypF5RhJZpNFxH9aUDeWMDETrsuFnfoSzcR+KaMVLb Gsfj+9aY8isF0YrCaKzN9olFCHpY636mykjaI0ZoRk2Zg1hJ3KvDnJgQ9UXovkUjS8gPlW O1r5YEVgEur7/hVK5vpjn639neaEodY= X-MC-Unique: wdDkdIMRM0e15WMv_0Kuvw-1 X-Mimecast-MFC-AGG-ID: wdDkdIMRM0e15WMv_0Kuvw From: Peter Krempa To: devel@lists.libvirt.org Subject: [PATCH v2 13/15] include: libvirt-domain: Reword documentation for @reason of VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON Date: Tue, 28 Jan 2025 17:28:17 +0100 Message-ID: <2c602f7416cbf09879aabf17cecdfc6c29f6d645.1738081457.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 2AY78P4gUkgelqxm87hYP2wS9Wyjpb809cL0XuUWu24_1738081719 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: KPB2R7VQQ3E7QBELKSUWRMP6QMKBYJ4F X-Message-ID-Hash: KPB2R7VQQ3E7QBELKSUWRMP6QMKBYJ4F X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1738081995934019000 Content-Type: text/plain; charset="utf-8" Emphasise that it's an enumeration and convert the possibilities to a list of values with explanation. Signed-off-by: Peter Krempa Reviewed-by: Daniel P. Berrang=C3=A9 --- include/libvirt/libvirt-domain.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-dom= ain.h index 9e9016cfe7..941e67aab1 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -4805,11 +4805,13 @@ typedef void (*virConnectDomainEventIOErrorCallback= )(virConnectPtr conn, * The callback signature to use when registering for an event of type * VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON with virConnectDomainEventRegisterA= ny() * - * If the I/O error is known to be caused by an ENOSPC condition in - * the host (where resizing the disk to be larger will allow the guest - * to be resumed as if nothing happened), @reason will be "enospc". - * Otherwise, @reason will be "", although future strings may be added - * if determination of other error types becomes possible. + * Although @reason is a string, it is considered to be an enumeration of = the + * following values: + * + * - "" (empty string): unknown I/O error reason + * - "enospc": The I/O error is known to be caused by an ENOSPC condition = in + * the host. Resizing the disk source to be larger will allow = the + * guest to be resumed as if nothing happened. * * Since: 0.8.1 */ --=20 2.48.1