diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2012-04-27 02:17:32 +0200 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2012-04-27 02:40:52 +0200 |
commit | fe76c5ba7732808d3260f1926b9d6abfdbca83c9 (patch) | |
tree | 92a1de77dc768e568762bfa4e52e89e18bf675c5 | |
parent | filestore: fix a journal replay issue with collection_add() (diff) | |
download | ceph-fe76c5ba7732808d3260f1926b9d6abfdbca83c9.tar.xz ceph-fe76c5ba7732808d3260f1926b9d6abfdbca83c9.zip |
filestore: interprect any fiemap error as EOPNOTSUPP
On 2.6.32-5-amd64 (debian) and XFS I'm getting EINVAL.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
-rw-r--r-- | src/os/FileStore.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 8c11d6b8647..7f70f2fe863 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -1281,7 +1281,7 @@ int FileStore::_test_fiemap() // fiemap an extent inside that struct fiemap *fiemap; int r = do_fiemap(fd, 2430421, 59284, &fiemap); - if (r == -EOPNOTSUPP) { + if (r < 0) { dout(0) << "mount FIEMAP ioctl is NOT supported" << dendl; ioctl_fiemap = false; } else { |