factored out the test for sparse files support

This commit is contained in:
Arvid Norberg
2007-04-18 00:36:09 +00:00
parent e49c49c892
commit af779b6349
3 changed files with 103 additions and 56 deletions

View File

@@ -113,6 +113,10 @@ namespace libtorrent
TORRENT_EXPORT storage_interface* default_storage_constructor(torrent_info const& ti
, boost::filesystem::path const& path, file_pool& fp);
// returns true if the filesystem the path relies on supports
// sparse files or automatic zero filling of files.
TORRENT_EXPORT bool supports_sparse_files(boost::filesystem::path const& p);
class TORRENT_EXPORT piece_manager : boost::noncopyable
{
public: