comment about posix_fallocate
This commit is contained in:
parent
519d2e5819
commit
ef35360722
|
@ -1568,6 +1568,8 @@ namespace libtorrent
|
||||||
#if TORRENT_HAS_FALLOCATE
|
#if TORRENT_HAS_FALLOCATE
|
||||||
// if fallocate failed, we have to use posix_fallocate
|
// if fallocate failed, we have to use posix_fallocate
|
||||||
// which can be painfully slow
|
// 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);
|
ret = posix_fallocate(m_fd, 0, s);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue