]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: enable filestore_extsize by default 3302/head
authorSage Weil <sage@redhat.com>
Mon, 12 Jan 2015 22:00:21 +0000 (14:00 -0800)
committerSage Weil <sage@redhat.com>
Mon, 12 Jan 2015 22:00:21 +0000 (14:00 -0800)
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 <sage@redhat.com>
src/common/config_opts.h

index 23f62ab6161067ce59f5e969b6c351ade96134c3..dc35c70ef1ead52bda7c353fdfecc3bf4b554a17 100644 (file)
@@ -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)