]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: expose mount_timeout map option 1109/head
authorIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 17 Jan 2014 09:49:40 +0000 (11:49 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 17 Jan 2014 09:53:38 +0000 (11:53 +0200)
Expose mount_timeout map option.  (I missed it in commit 9b7364d2450c,
which added -o / --options option and among other options exposed
osdkeepalive and osd_idle_ttl timeouts.)

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/rbd.cc

index 5143c306b4f9753db70d9e4279e8d9800b622d8e..a7243f438884dde978bedbd221d3a82f223db764 100644 (file)
@@ -2168,6 +2168,9 @@ static int parse_map_options(char *options)
       put_map_option("share", this_char);
     } else if (!strcmp(this_char, "crc") || !strcmp(this_char, "nocrc")) {
       put_map_option("crc", this_char);
+    } else if (!strcmp(this_char, "mount_timeout")) {
+      if (put_map_option_value("mount_timeout", value_char, map_option_int_cb))
+        return 1;
     } else if (!strcmp(this_char, "osdkeepalive")) {
       if (put_map_option_value("osdkeepalive", value_char, map_option_int_cb))
         return 1;