]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: set default pool when none is specified
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 22 Sep 2011 22:39:58 +0000 (15:39 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Thu, 22 Sep 2011 22:40:16 +0000 (15:40 -0700)
096e3b6353e5035362cffdcbd2e4a4f5572aa2ba broke this by only using
set_pool_image_name for commands that accept the snapshot
parameter. This whole undocumented format parsing should be reworked
or removed at some point.

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

index f80e1ad2919ce203636dec75b29cbf22bcb32cb1..5da55850403fbc1e9530fb5589ccff5fd8d71fdf 100644 (file)
@@ -1020,6 +1020,8 @@ int main(int argc, const char **argv)
 
   set_pool_image_name(dest_poolname, destname, (char **)&dest_poolname, (char **)&destname, NULL);
 
+  if (!poolname)
+    poolname = "rbd";
   if (!dest_poolname)
     dest_poolname = poolname;