From 713cef059fed5745b93db19453e9e04dea6e7df2 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Mon, 3 Feb 2014 12:09:34 -0800 Subject: [PATCH] conf: add options for librados timeouts These will be implemented in subsequent patches. Signed-off-by: Josh Durgin (cherry picked from commit 0dcceff1378d85ca6d81d102d201890b8a71af6b) --- src/common/config_opts.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 0b3938ecb9e53..0331d849e2627 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -610,6 +610,9 @@ OPTION(journal_replay_from, OPT_INT, 0) OPTION(journal_zero_on_create, OPT_BOOL, false) OPTION(journal_ignore_corruption, OPT_BOOL, false) // assume journal is not corrupt +OPTION(rados_mon_op_timeout, OPT_DOUBLE, 0) // how many seconds to wait for a response from the monitor before returning an error from a rados operation. 0 means on limit. +OPTION(rados_osd_op_timeout, OPT_DOUBLE, 0) // how many seconds to wait for a response from osds before returning an error from a rados operation. 0 means no limit. + OPTION(rbd_cache, OPT_BOOL, false) // whether to enable caching (writeback unless rbd_cache_max_dirty is 0) OPTION(rbd_cache_writethrough_until_flush, OPT_BOOL, false) // whether to make writeback caching writethrough until flush is called, to be sure the user of librbd will send flushs so that writeback is safe OPTION(rbd_cache_size, OPT_LONGLONG, 32<<20) // cache size in bytes -- 2.39.5