From nobody Fri Sep 19 05:00:25 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1665669099; cv=none; d=zohomail.com; s=zohoarc; b=ABEhW9XQ5db0l/fXZk8XWTiHrIoarkWmKY3zqY0TW6PlVr+xavmg1l6SRo2/HBSc5hrG4c9g69rzw0CP01OKeSloi4VmNXLzAgDTTID17D0yM5Smsd/f4m4g1o1mpOPzg/Gz7RWwmDmm3NJHTuZz2lcMooSr0q6uYoJp6YryNpk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665669099; 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=HtEvum89bDy7P3QnxKlNjBZFWsWoVVMcWvMHogJ1enU=; b=P3JaCXbi9zdGxmZlZ8CUgHTrXJFwuXcvPyHR/g3J6l/0+vygRE1b8LauA8hIwaf8dQd8XVm+9MLmxfa/jS7si2O5ZymowFQ/9VTjes2/ThFeK9DUMwHxupblCPFj51e07/USd9DYKQnfvxxySkCNjEB5XgXmQU2zlYN4smp0U1Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1665669099960421.97627003481284; Thu, 13 Oct 2022 06:51:39 -0700 (PDT) Received: from localhost ([::1]:50730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiy97-00036u-PP for importer@patchew.org; Thu, 13 Oct 2022 09:21:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oixUA-0001mm-EH for qemu-devel@nongnu.org; Thu, 13 Oct 2022 08:38:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:26761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oixU3-0004Hf-1U for qemu-devel@nongnu.org; Thu, 13 Oct 2022 08:38:49 -0400 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-315-PGN9H0wpOUOyIEG-DiXPFg-1; Thu, 13 Oct 2022 08:38:19 -0400 Received: by mail-ed1-f70.google.com with SMTP id m10-20020a056402430a00b0045968bb0874so1416143edc.10 for ; Thu, 13 Oct 2022 05:38:19 -0700 (PDT) Received: from avogadro.local ([2001:b07:6468:f312:1c09:f536:3de6:228c]) by smtp.gmail.com with ESMTPSA id kw24-20020a170907771800b0073d87068042sm2880255ejc.110.2022.10.13.05.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 05:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665664700; 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=HtEvum89bDy7P3QnxKlNjBZFWsWoVVMcWvMHogJ1enU=; b=VRG+2Wx/FXWz+RKf6JpBX/9WrEqZ48XE3NZGVEwb/EVOCr2ZgRLGUpRZhEIScxR+7KnbzU VL6hvlzwsTqEI1wY5gMVhEvO+sFoUWwWaxykxuh2BNzuaUyi7qovS3f740AYJEXjUXbg8o 8v38T4K8R8T0GApXa9Xlry6WWFVtiGA= X-MC-Unique: PGN9H0wpOUOyIEG-DiXPFg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HtEvum89bDy7P3QnxKlNjBZFWsWoVVMcWvMHogJ1enU=; b=Ymft8i6o0wl5e9GIcrQD+scWt9T3MOkkyhxQkMzxsTV0WUhTR4a9C6rJ2m8sSJU90h 4VLzwrG5UAP9hWNzF5OaXtpXhuLY/FGv9ZkmBHns/S+FeBjqfvUHVj2tccMUeoCOzntv 9Yg4URDzOWOpr3lNo/xh15TRIqz41lxcVSm5DwTWSGmFFfeFNA0Zx7I3VQI8rZ2Y0Za0 vM8EKOuOwZvnvbF80hjPFNeid1WL6+LPLUPMgnihqD31UGLySeoM9nlOlLHjaSzK9jaF kN9rrCAS6cbMGJTHM6z2ebs1o+o1+HWt96TroWpM+oOzmaGGkoIf4GGRW+nt/NN1aX2H 3s9A== X-Gm-Message-State: ACrzQf2+XUMJ1wA+oGAQ3cUpajRA9dpfmFNsxVajIn7LTufqryPwXsSq LWteV/23AM875s8F42jSDgg6hAAJNSMSnTXfGGpl8ztISSjXW5jauHgcvXOtfBCcnxdNdPPw0cK cdEgpbKlSDQ6s6SmH+dLzcwZf0bXoxUcJJHGfRAIComlPNxXB1KnjORSaF/3yTDdLP0E= X-Received: by 2002:a05:6402:190f:b0:45b:d959:e2ae with SMTP id e15-20020a056402190f00b0045bd959e2aemr23994959edz.187.1665664698165; Thu, 13 Oct 2022 05:38:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4B1wlgLhgEQw3ymfAAStC+lfzWAlski8MIlkJPBeBCGXLI234TuOdtd12ULrFAmG+nQUlw/w== X-Received: by 2002:a05:6402:190f:b0:45b:d959:e2ae with SMTP id e15-20020a056402190f00b0045bd959e2aemr23994937edz.187.1665664697917; Thu, 13 Oct 2022 05:38:17 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, afaria@redhat.com Subject: [PATCH 22/24] vhdx: switch to *_co_* functions Date: Thu, 13 Oct 2022 14:37:09 +0200 Message-Id: <20221013123711.620631-23-pbonzini@redhat.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221013123711.620631-1-pbonzini@redhat.com> References: <20221013123711.620631-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, 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, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1665669101403100001 Content-Type: text/plain; charset="utf-8" From: Alberto Faria Signed-off-by: Alberto Faria Signed-off-by: Paolo Bonzini --- block/vhdx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/vhdx.c b/block/vhdx.c index e10e78ebfd..f7dd4eb092 100644 --- a/block/vhdx.c +++ b/block/vhdx.c @@ -2012,15 +2012,15 @@ static int coroutine_fn vhdx_co_create(BlockdevCrea= teOptions *opts, creator =3D g_utf8_to_utf16("QEMU v" QEMU_VERSION, -1, NULL, &creator_items, NULL); signature =3D cpu_to_le64(VHDX_FILE_SIGNATURE); - ret =3D blk_pwrite(blk, VHDX_FILE_ID_OFFSET, sizeof(signature), &signa= ture, - 0); + ret =3D blk_co_pwrite(blk, VHDX_FILE_ID_OFFSET, sizeof(signature), &si= gnature, + 0); if (ret < 0) { error_setg_errno(errp, -ret, "Failed to write file signature"); goto delete_and_exit; } if (creator) { - ret =3D blk_pwrite(blk, VHDX_FILE_ID_OFFSET + sizeof(signature), - creator_items * sizeof(gunichar2), creator, 0); + ret =3D blk_co_pwrite(blk, VHDX_FILE_ID_OFFSET + sizeof(signature), + creator_items * sizeof(gunichar2), creator, 0); if (ret < 0) { error_setg_errno(errp, -ret, "Failed to write creator field"); goto delete_and_exit; --=20 2.37.3