From: Sage Weil Date: Mon, 12 Jan 2015 22:00:21 +0000 (-0800) Subject: osd: enable filestore_extsize by default X-Git-Tag: v0.92~24^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3302%2Fhead;p=ceph.git 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 --- 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)