From: Ilya Dryomov Date: Fri, 17 Jan 2014 09:49:40 +0000 (+0200) Subject: rbd: expose mount_timeout map option X-Git-Tag: v0.78~309^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b1a853e4335c644f723f75d3da0b1f7b92863c86;p=ceph.git rbd: expose mount_timeout map option 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 --- diff --git a/src/rbd.cc b/src/rbd.cc index 5143c306b4f9..a7243f438884 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -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;