Bug 490231 - net-libs/libktorrent test fail if /tmp is on XFS PreallocationTest::testPreallocationMultiFileCache PreallocationTest::testPreallocationSingleFileCache
Summary: net-libs/libktorrent test fail if /tmp is on XFS PreallocationTest::testPreal...
Status: REPORTED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: 23.08.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-13 14:48 UTC by lg3dx6fd
Modified: 2024-09-13 15:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lg3dx6fd 2024-07-13 14:48:05 UTC
SUMMARY
net-libs/libktorrent fails 2 tests if /tmp is on partition with XFS  : 
PreallocationTest::testPreallocationMultiFileCache PreallocationTest::testPreallocationSingleFileCache

Some logs:
```
from ./preallocation.log :
```
Thu Jul 11 20:32:15 2024: Tot Size : 35858964
Thu Jul 11 20:32:15 2024: Num Chunks : 137
Thu Jul 11 20:32:15 2024: Chunk Size : 262144
Thu Jul 11 20:32:15 2024: Last Size : 207380
Thu Jul 11 20:32:15 2024: Created /tmp/preallocationtest-QKlEmptorrent
Thu Jul 11 20:32:16 2024: Tot Size : 10825048
Thu Jul 11 20:32:16 2024: Num Chunks : 42
Thu Jul 11 20:32:16 2024: Chunk Size : 262144
Thu Jul 11 20:32:16 2024: Last Size : 77144
Thu Jul 11 20:32:16 2024: Created /tmp/preallocationtest-Nuvsdztorrent
Thu Jul 11 20:32:16 2024: Preallocating file /tmp/preallocationtest-QKlEmpdata/movies/aaa.avi (11438415 bytes)
Thu Jul 11 20:32:16 2024: file_size = 0
Thu Jul 11 20:32:16 2024: Preallocating file /tmp/preallocationtest-QKlEmpdata/movies/bbb.avi (9124816 bytes)
Thu Jul 11 20:32:16 2024: file_size = 0
Thu Jul 11 20:32:16 2024: Preallocating file /tmp/preallocationtest-QKlEmpdata/movies/ccc.avi (15295733 bytes)
Thu Jul 11 20:32:16 2024: file_size = 0
Thu Jul 11 20:32:16 2024: PreallocationThread has finished
Thu Jul 11 20:32:16 2024: bw: 0, ts: 35858964
Thu Jul 11 20:32:16 2024: Preallocating file /tmp/preallocationtest-Nuvsdzdata/bla.avi (10825048 bytes)
Thu Jul 11 20:32:16 2024: file_size = 0
Thu Jul 11 20:32:16 2024: PreallocationThread has finished
Thu Jul 11 20:32:16 2024: bw: 0, ts: 10825048
```

The code that produces such is at /var/tmp/portage/net-libs/libktorrent-23.08.5/work/libktorrent-23.08.5/src/diskio/tests/preallocationtest.cpp nearly at 80-90 lines.
```

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo 
(available in About System)
KDE Plasma Version: 5.27.11
KDE Frameworks Version:  5.116.0
Qt Version: 5.15.14

ADDITIONAL INFORMATION
It doesn't fail if /tmp is on ext4, btrfs or tmpfs .

Bug downstream : https://bugs.gentoo.org/934425