From 2ecd8748d26fd5676dc54f630bc955b0ba22dc6e Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 12 Jan 2015 14:00:21 -0800 Subject: [PATCH] osd: enable filestore_extsize by default Note that this will only get used if the kernel is new enough; if it is older than 3.5 the option will get disabled and extsize will not be used even if the option is set to true. This partially reverts 01cd3cdc726a3e838bce05b355a021778b4e5db1. Fixes: #9956 Signed-off-by: Sage Weil --- src/common/config_opts.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 23f62ab61610..dc35c70ef1ea 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -746,10 +746,11 @@ OPTION(filestore_fsync_flushes_journal_data, OPT_BOOL, false) OPTION(filestore_fiemap, OPT_BOOL, false) // (try to) use fiemap OPTION(filestore_fadvise, OPT_BOOL, true) -// (try to) use extsize for alloc hint -// WARNING: extsize seems to trigger data corruption in xfs -- that is why it is -// off by default, see bug #8830 -OPTION(filestore_xfs_extsize, OPT_BOOL, false) +// (try to) use extsize for alloc hint NOTE: extsize seems to trigger +// data corruption in xfs prior to kernel 3.5. filestore will +// implicity disable this if it cannot confirm the kernel is newer +// than that. +OPTION(filestore_xfs_extsize, OPT_BOOL, true) OPTION(filestore_journal_parallel, OPT_BOOL, false) OPTION(filestore_journal_writeahead, OPT_BOOL, false) -- 2.47.3