From patchwork Mon Oct 7 21:49:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 175425 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4845995ill; Mon, 7 Oct 2019 14:49:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBkqZLVn69poIxryb/xZkyWCq1OBoSrJYkx48qHuS1zemKl6BA0NT0yJm2nOjrTIAK/2Pe X-Received: by 2002:a92:91da:: with SMTP id e87mr31918528ill.53.1570484993272; Mon, 07 Oct 2019 14:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570484993; cv=none; d=google.com; s=arc-20160816; b=jwExPVJ/WFzK7gVr/iwzBAfocwbSrkur3GxH6xG6XiC4pYScf9cuS09GVSfbuBz6+p +Pl7j/Y3CQEGDqxPPZS2ha6jkHLU2GJv7TuUa1SiSv+Kra2yNKnSB+1S9UMR9EhEb5+T sfGERT/kWiH2R6jHZKEjk+uhZH6kVCPlsNufQ+LwbhOzSkfafsZYDeMGEVTMoYJ7X2sX wjptsfApd+aXOijqCIKP6Q747Sfjw1ELEww7Te2PgKVIT7ECLMdP7bRB9ncSCcYWBl51 Dni4zXdtkBA0jWgtDI0qiFASKDf6THPLaDMfOb0Kkm9EapTyU525Nq3z75twEvfn+l0K 1cxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :delivered-to; bh=qdC76TJnDtWZ/BSqrUYA6+WME5fqhvv1KP5J/G7TEYo=; b=uP28ERXA3R6mLk3QAlcT8YcQKczhXoxFScU1u1ARGeAiJj5e94xVGeGW8KS+aXEs0L HuBYPJfboTLtx+xHorhU/sRVbw0hB4XDFTT+UvF4rXLGw2xGofDHjFCKuxqfct7k1L7V DqS/MxZVhTO9qqaSWVzlANG/JxEQiEnAx/gaAP2QAkIw+J9u5K8jksept6HgpLoZ75Yf SXN4PUJEwpGvQD9NQzfV4PRN0qw20VQCFvpAY6u9Yc7RTStMRAmgsrg9PFqAAiMDlxVU 0oucv4DKOmdGrsSNj6o0zrSl9vnE1jo6hF3xWkv1kQMUfjDqjRhGVFNAH8pgJpHTjpDn A+iQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id u138si19035222jab.122.2019.10.07.14.49.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Oct 2019 14:49:53 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2273CC00A167; Mon, 7 Oct 2019 21:49:52 +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 F390460166; Mon, 7 Oct 2019 21:49:51 +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 AEBBB180BA9C; Mon, 7 Oct 2019 21:49:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x97LnUkp014602 for ; Mon, 7 Oct 2019 17:49:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id BBF9C5C219; Mon, 7 Oct 2019 21:49:30 +0000 (UTC) Delivered-To: libvir-list@redhat.com Received: from worklaptop.redhat.com (ovpn-123-156.rdu2.redhat.com [10.10.123.156]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E0295C1D4; Mon, 7 Oct 2019 21:49:30 +0000 (UTC) From: Cole Robinson To: libvir-list@redhat.com Date: Mon, 7 Oct 2019 17:49:24 -0400 Message-Id: <01bc2d20b5b73ba4f28c405f99af62d7f23569a3.1570482718.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 10/30] storagefile: Rename qcow2GetBackingStoreFormat 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 07 Oct 2019 21:49:52 +0000 (UTC) ...to qcow2GetExtensions. We will extend it for more extension parsing in future patches Signed-off-by: Cole Robinson --- src/util/virstoragefile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list Reviewed-by: Daniel Henrique Barboza diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index b8f7faf580..d6bd38777b 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -427,9 +427,9 @@ cowGetBackingStore(char **res, static int -qcow2GetBackingStoreFormat(int *format, - const char *buf, - size_t buf_size) +qcow2GetExtensions(int *format, + const char *buf, + size_t buf_size) { size_t offset; size_t extension_start; @@ -561,7 +561,7 @@ qcowXGetBackingStore(char **res, memcpy(*res, buf + offset, size); (*res)[size] = '\0'; - if (qcow2GetBackingStoreFormat(format, buf, buf_size) < 0) + if (qcow2GetExtensions(format, buf, buf_size) < 0) return BACKING_STORE_INVALID; return BACKING_STORE_OK;