comment about posix_fallocate

This commit is contained in:
Arvid Norberg 2010-04-08 05:31:00 +00:00
parent 519d2e5819
commit ef35360722
1 changed files with 2 additions and 0 deletions

View File

@ -1568,6 +1568,8 @@ namespace libtorrent
#if TORRENT_HAS_FALLOCATE
// if fallocate failed, we have to use posix_fallocate
// which can be painfully slow
// if you get a compile error here, you might want to
// define TORRENT_HAS_FALLOCATE to 0.
ret = posix_fallocate(m_fd, 0, s);
if (ret != 0)
{