Signed-off-by: Wenchao Xia <xiaw...@linux.vnet.ibm.com> --- 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