From patchwork Wed May 18 08:19:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 793152 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4I8O3wt004358 for ; Wed, 18 May 2011 08:24:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755812Ab1ERIYB (ORCPT ); Wed, 18 May 2011 04:24:01 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:37524 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755554Ab1ERIYA (ORCPT ); Wed, 18 May 2011 04:24:00 -0400 Received: by mail-pz0-f46.google.com with SMTP id 9so601787pzk.19 for ; Wed, 18 May 2011 01:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=l8jIGTDNniriZM3B6JJBEJO+NV1IkZd8M9DsHFhBQ2c=; b=je78TNGNM63XVMeH+s6AslVpwlV5uPXIMZjA363n1dYicLuwPyxi7RmuB2wxMolob8 zrF1HnybE7TQ3FdZ6fcEAszlEMSMd1xJ6/mjUaaThZ9BK/Lz7IrC/SxcACkzXmhWDpRM y4VZtI0Yopq3Mi6NLLEm4dgHQmzps7nxft1rE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=tYp/djPDReRllRtIwP/m+5vkPhhs4Mi4WgFbGRHOVV8iaOzD9VXP/O2V6BZlpOWGCp 9jbhV0bJeZRSC2KbW4f0M9Ur340xkUBsVWakEBErpBxSWU1AtUvGZa/5k7ZFIqmbqBUy BiiIzTQmSEq5/xU5FLgA9vmkLOGuPwlBQObgw= Received: by 10.143.21.1 with SMTP id y1mr1000711wfi.441.1305707040351; Wed, 18 May 2011 01:24:00 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id q10sm912018pbk.39.2011.05.18.01.23.53 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 May 2011 01:23:59 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org, Asias He Subject: [PATCH 14/14] kvm tools: Print debug info for qcow1_nowrite_sector Date: Wed, 18 May 2011 16:19:15 +0800 Message-Id: <1305706755-2816-14-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.5.1 In-Reply-To: <1305706755-2816-1-git-send-email-asias.hejun@gmail.com> References: <1305706755-2816-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 18 May 2011 08:24:07 +0000 (UTC) Print debug info when we are in qcow1_nowrite_sector Signed-off-by: Asias He --- tools/kvm/disk/qcow.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/kvm/disk/qcow.c b/tools/kvm/disk/qcow.c index dd11ed97..29964b9 100644 --- a/tools/kvm/disk/qcow.c +++ b/tools/kvm/disk/qcow.c @@ -323,6 +323,7 @@ static ssize_t qcow1_write_sector(struct disk_image *disk, u64 sector, void *src static ssize_t qcow1_nowrite_sector(struct disk_image *disk, u64 sector, void *src, u32 src_len) { /* I/O error */ + info("qcow1_nowrite_sector: no write support\n"); return -1; }