From 5e08a9b379c51d75813d00fb817c3e4149c00820 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 9 Jul 2007 23:29:58 +0000 Subject: [PATCH] added reiser4 as having sparse files support and improved detection on mac --- src/storage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/storage.cpp b/src/storage.cpp index 863cc5c07..4f2a55a13 100755 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -1019,7 +1019,11 @@ namespace libtorrent return true; } - return true; + if (!strcmp(fsinfo.f_fstypename, "hfs") + || !strcmp(fsinfo.f_fstypename, "ufs")) + return true; + + return false; #endif #if defined(__linux__) @@ -1037,6 +1041,7 @@ namespace libtorrent case 0xEF53: // EXT2 and EXT3 case 0x00011954: // UFS case 0x52654973: // ReiserFS + case 0x52345362: // Reiser4 case 0x58465342: // XFS return true; }