diff options
-rw-r--r-- | src/mongo/util/file_allocator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/util/file_allocator.cpp b/src/mongo/util/file_allocator.cpp index b8fb7bf78d9..f476ed25a9a 100644 --- a/src/mongo/util/file_allocator.cpp +++ b/src/mongo/util/file_allocator.cpp @@ -162,8 +162,11 @@ 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 TMPFS_MAGIC 0x01021994 - return (fs_stats.f_type == NFS_SUPER_MAGIC); + return (fs_stats.f_type == NFS_SUPER_MAGIC) + || (fs_stats.f_type == TMPFS_MAGIC) + ; #elif defined(__freebsd__) |