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>
<< dendl;
switch (f_type) {
+#if defined(__linux__)
case BTRFS_SUPER_MAGIC:
wbthrottle.set_fs(WBThrottle::BTRFS);
break;
assert(m_filestore_replica_fadvise == false);
}
break;
+#endif
}
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;
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;