From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 From: Wenchao Xia Date: Wed, 17 Jul 2013 22:03:54 +0800 Message-Id: <1374069835-14287-4-git-send-email-xiawenc@linux.vnet.ibm.com> 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> Subject: [Qemu-devel] [PATCH 3/4] qemu-nbd: add doc for internal snapshot export List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, dietmar@proxmox.com, stefanha@redhat.com, Wenchao Xia 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 -- 1.7.1