]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: specify which commands take --snap in usage
authorJosh Durgin <josh.durgin@dreamhost.com>
Tue, 18 Oct 2011 23:51:36 +0000 (16:51 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Mon, 24 Oct 2011 22:32:47 +0000 (15:32 -0700)
Maybe this will be less confusing.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/rbd.cc

index cdd8bbccf0e4e3be0f221ee14cffcdc4c77ca2ba..fdab9b5737eca279e64ca8c25c397eeb9569cd5b 100644 (file)
@@ -56,18 +56,18 @@ void usage()
   cout << "usage: rbd [-n <auth user>] [OPTIONS] <cmd> ...\n"
        << "where 'pool' is a rados pool name (default is 'rbd') and 'cmd' is one of:\n"
        << "  <ls | list> [pool-name]                   list rbd images\n"
-       << "  info [image-name]                         show information about image size,\n"
+       << "  info <--snap=name> [image-name]           show information about image size,\n"
        << "                                            striping, etc.\n"
        << "  create [image-name]                       create an empty image (requires size\n"
        << "                                            param)\n"
        << "  resize [image-name]                       resize (expand or contract) image\n"
        << "                                            (requires size param)\n"
        << "  rm [image-name]                           delete an image\n"
-       << "  export [image-name] [dest-path]           export image to file\n"
+       << "  export <--snap=name> [image-name] [path]  export image to file\n"
        << "  import [path] [dst-image]                 import image from file (dest defaults\n"
        << "                                            as the filename part of file)\n"
-       << "  <cp | copy> [src-image] [dest-image]      copy image to dest\n"
-       << "  <mv | rename> [src-image] [dest-image]    copy image to dest\n"
+       << "  <cp | copy> <--snap=name> [src] [dest]    copy src image to dest\n"
+       << "  <mv | rename> [src] [dest]                rename src image to dest\n"
        << "  snap ls [image-name]                      dump list of image snapshots\n"
        << "  snap create <--snap=name> [image-name]    create a snapshot\n"
        << "  snap rollback <--snap=name> [image-name]  rollback image head to snapshot\n"