From patchwork Wed Jul 17 14:03:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wayne Xia X-Patchwork-Id: 259693 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EBB2F2C00CF for ; Thu, 18 Jul 2013 00:11:14 +1000 (EST) Received: from localhost ([::1]:53615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzSRk-0002Wi-O9 for incoming@patchwork.ozlabs.org; Wed, 17 Jul 2013 10:11:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzSRD-0002Wc-7t for qemu-devel@nongnu.org; Wed, 17 Jul 2013 10:10:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzSR8-0004sf-4W for qemu-devel@nongnu.org; Wed, 17 Jul 2013 10:10:39 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:34553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzSR7-0004sR-Fn for qemu-devel@nongnu.org; Wed, 17 Jul 2013 10:10:34 -0400 Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 17 Jul 2013 19:30:09 +0530 Received: from d28dlp03.in.ibm.com (9.184.220.128) by e28smtp03.in.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 17 Jul 2013 19:30:08 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 8F2C9125805C for ; Wed, 17 Jul 2013 19:36:06 +0530 (IST) Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r6HE6S0H20185264 for ; Wed, 17 Jul 2013 19:36:28 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r6HE6Rsp017795 for ; Thu, 18 Jul 2013 00:06:28 +1000 Received: from RH63Wenchao.localdomain ([9.77.182.164]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r6HE3vL8003310; Thu, 18 Jul 2013 00:06:22 +1000 From: Wenchao Xia To: qemu-devel@nongnu.org Date: Wed, 17 Jul 2013 22:03:54 +0800 Message-Id: <1374069835-14287-4-git-send-email-xiawenc@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1374069835-14287-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1374069835-14287-1-git-send-email-xiawenc@linux.vnet.ibm.com> X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13071714-3864-0000-0000-0000091FD077 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 122.248.162.3 Cc: kwolf@redhat.com, pbonzini@redhat.com, dietmar@proxmox.com, stefanha@redhat.com, Wenchao Xia Subject: [Qemu-devel] [PATCH 3/4] qemu-nbd: add doc for internal snapshot export X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Wenchao Xia --- qemu-nbd.c | 2 ++ qemu-nbd.texi | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qemu-nbd.c b/qemu-nbd.c index 46be2b2..8eeee33 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -80,6 +80,8 @@ static void usage(const char *name) "Block device options:\n" " -r, --read-only export read-only\n" " -s, --snapshot use snapshot file\n" +" -l, --snapshot-load temporarily load an internal snapshot and export it as\n" +" an read-only device, format is 'id=[ID],name=[NAME]'\n" " -n, --nocache disable host cache\n" " --cache=MODE set cache mode (none, writeback, ...)\n" #ifdef CONFIG_LINUX_AIO diff --git a/qemu-nbd.texi b/qemu-nbd.texi index 6055ec6..86e8e1b 100644 --- a/qemu-nbd.texi +++ b/qemu-nbd.texi @@ -28,6 +28,9 @@ Export QEMU disk image using NBD protocol. only expose partition @var{num} @item -s, --snapshot use snapshot file +@item -l, --snapshot-load + temporarily load an internal snapshot and export it as + an read-only device, format is 'id=[ID],name=[NAME]' @item -n, --nocache @itemx --cache=@var{cache} set cache mode to be used with the file. See the documentation of