]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: verify kernel is new enough before using extsize ioctl
authorSage Weil <sage@redhat.com>
Mon, 12 Jan 2015 21:59:39 +0000 (13:59 -0800)
committerSage Weil <sage@redhat.com>
Mon, 12 Jan 2015 21:59:39 +0000 (13:59 -0800)
commitb76d0dc0f2a276594b23afb670301278426c0670
tree44b79fafadc94042bcba1c8ccbc6d7da902b1bf6
parentd253badb8d0403d84be95c81abbd38c43d2ff8e4
os/FileStore: verify kernel is new enough before using extsize ioctl

Old kernels have an XFS bug that exposes uninitialized data when the
extsize hint is set and only partially written.  This is fixed by Linux
commit aff3a9edb7080f69f07fe76a8bd089b3dfa4cb5d, documented in XFS bug
http://oss.sgi.com/bugzilla/show_bug.cgi?id=874, and tested by XFS
test xfs/229 to prevent regressions.

Notably the original bug affects kernel 3.2, which is widely deployed with
ubuntu precise 12.04.

Backport: giant, firefly
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/XfsFileStoreBackend.cc