]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/FileStore: put SUPER usage in ifdef __linux__
authorJohn Spray <jspray@redhat.com>
Sat, 28 Jun 2014 16:40:05 +0000 (17:40 +0100)
committerJohn Spray <jspray@redhat.com>
Sun, 29 Jun 2014 16:32:16 +0000 (17:32 +0100)
This is an update to take account of 9312c5e wherein
the FS_* enum was replaced by direct use of SUPER_MAGIC
macros.

Signed-off-by: John Spray <john.spray@redhat.com>
src/os/FileStore.cc

index a072d4051f8a1d4af91e70b8965e02b9f4d08aea..a10a21639d6d135f370009a9bf46227ba4d2ccae 100644 (file)
@@ -627,6 +627,7 @@ void FileStore::create_backend(long f_type)
          << dendl;
 
   switch (f_type) {
+#if defined(__linux__)
   case BTRFS_SUPER_MAGIC:
     wbthrottle.set_fs(WBThrottle::BTRFS);
     break;
@@ -640,6 +641,7 @@ void FileStore::create_backend(long f_type)
       assert(m_filestore_replica_fadvise == false);
     }
     break;
+#endif
   }
 
   set_xattr_limits_via_conf();
@@ -4997,6 +4999,7 @@ void FileStore::set_xattr_limits_via_conf()
   uint32_t fs_xattrs;
 
   switch (m_fs_type) {
+#if defined(__linux__)
   case XFS_SUPER_MAGIC:
     fs_xattr_size = g_conf->filestore_max_inline_xattr_size_xfs;
     fs_xattrs = g_conf->filestore_max_inline_xattrs_xfs;
@@ -5005,6 +5008,7 @@ void FileStore::set_xattr_limits_via_conf()
     fs_xattr_size = g_conf->filestore_max_inline_xattr_size_btrfs;
     fs_xattrs = g_conf->filestore_max_inline_xattrs_btrfs;
     break;
+#endif
   default:
     fs_xattr_size = g_conf->filestore_max_inline_xattr_size_other;
     fs_xattrs = g_conf->filestore_max_inline_xattrs_other;