Skip to content

Commit

Permalink
Remove check for BtrFS SERVER-4885
Browse files Browse the repository at this point in the history
As of 2.6.31 it supports fallocate so don't need to use sparse files anyway
  • Loading branch information
RedBeard0531 committed Feb 9, 2012
1 parent 74c1ffb commit 3bc8e32
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mongo/util/file_allocator.cpp
Expand Up @@ -151,15 +151,12 @@ namespace mongo {
#if defined(__linux__)
// these are from <linux/magic.h> but that isn't available on all systems
# define NFS_SUPER_MAGIC 0x6969
# define BTRFS_SUPER_MAGIC 0x9123683E

struct statfs fs_stats;
int ret = fstatfs(fd, &fs_stats);
uassert(16062, "fstatfs failed: " + errnoWithDescription(), ret == 0);

return ( fs_stats.f_type == NFS_SUPER_MAGIC
//|| fs_stats.f_type == BTRFS_SUPER_MAGIC // commented out due to signed unsigned comparison
);
return (fs_stats.f_type == NFS_SUPER_MAGIC);

#elif defined(__freebsd__) || defined(__sunos__)
// assume using ZFS which is copy-on-write so no benefit to zero-filling
Expand Down

0 comments on commit 3bc8e32

Please sign in to comment.