forked from premiere/premiere-libtorrent
small modification to linux path for discover sparse files support
This commit is contained in:
parent
f5c449837f
commit
734305f78d
|
@ -904,9 +904,9 @@ namespace libtorrent
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
struct statfs buf;
|
struct statfs buf;
|
||||||
if (statfs(p.native_directory_string().c_str(), &buf) != 0);
|
int err = statfs(p.native_directory_string().c_str(), &buf);
|
||||||
return false;
|
if (err == 0)
|
||||||
|
{
|
||||||
switch (buf.f_type)
|
switch (buf.f_type)
|
||||||
{
|
{
|
||||||
case 0x5346544e: // NTFS
|
case 0x5346544e: // NTFS
|
||||||
|
@ -917,6 +917,7 @@ namespace libtorrent
|
||||||
case 0x58465342: // XFS
|
case 0x58465342: // XFS
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: POSIX implementation
|
// TODO: POSIX implementation
|
||||||
|
|
Loading…
Reference in New Issue