]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
FileStore: detect XFS properly
authorGreg Farnum <greg@inktank.com>
Thu, 9 Jan 2014 22:03:12 +0000 (14:03 -0800)
committerGreg Farnum <greg@inktank.com>
Fri, 10 Jan 2014 03:15:36 +0000 (19:15 -0800)
commit29da2ec403e42f84a739a7ef605d5e76e9e91578
tree40ebce8b89561f3a0991a8220db778ee46dafa03
parent8c5c55c8b47ee3c94c0dbcd82e0588ae629ba0ea
FileStore: detect XFS properly

We were only setting m_fs_type = FS_TYPE_XFS if
m_filestore_replica_fadvise was also set -- presumably
the bug fix accidentally blocked off too much of the code type. This
resulted in our xattr counts always being set too low: the store
is mounted (and thus does _detectfs) twice; once in as part of the
not-as-conditional-as-it-looks convertfs in ceph_osd.cc, and once
as part of OSD::init().

Reported-by: Sushma Gurram <Sushma.Gurram@sandisk.com>
Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/os/FileStore.cc