]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: disable fadvise on XFS
authorSage Weil <sage@inktank.com>
Wed, 19 Jun 2013 04:44:15 +0000 (21:44 -0700)
committerSage Weil <sage@inktank.com>
Wed, 19 Jun 2013 17:57:13 +0000 (10:57 -0700)
commit95bd048062dbcb5d221b8f41459cd21ba30f1461
treeb3f205798c3311dac3648b910f506a67ed04b5d5
parentded0a5f4498afe4406636f47420f9276fdaf558a
os/FileStore: disable fadvise on XFS

fadvise(DONTNEED) on XFS can break writeback ordering and zeroing; see

      http://oss.sgi.com/archives/xfs/2013-06/msg00066.html

If we detect XFS, turn this option off.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
src/os/FileStore.cc