Commit Graph
42 Commits
Author SHA1 Message Date
Arvid Norberg 712daab918 fixup merge 2026-05-18 01:36:44 +02:00
Arvid Norberg 61764b46e6 fixup disk_job_pool 2026-05-17 23:36:14 +02:00
Arvid Norberg 85f7cb2d0e Merge branch 'RC_2_0' into RC_2_1 2026-05-17 22:56:49 +02:00
Hassan RazaandArvid Norberg 33d7d9ed5e Use truncate helper in part file test 2026-05-17 12:55:37 +02:00
Hassan RazaandArvid Norberg a0ddb9469a Make short read test portable 2026-05-17 12:55:37 +02:00
Hassan RazaandArvid Norberg f59e493733 Tighten part file short read test 2026-05-17 12:55:37 +02:00
Hassan RazaandArvid Norberg 84f2fc6c66 Add part-file short read tests 2026-05-17 12:55:37 +02:00
arvidn 86820d2655 merged RC_2_0 into master 2022-08-10 20:14:20 +02:00
arvidnandArvid Norberg 049001ad80 remove vector I/O API from part file. use single buffers 2022-08-10 03:39:56 +02:00
arvidn 964ffc57ba merge RC_2_0 into master 2022-06-23 08:07:28 +02:00
arvidnandArvid Norberg 550d3c7d9f update copyright headers 2022-06-22 21:42:55 +02:00
arvidnandArvid Norberg 2db8b54c08 update copyright headers in source files 2021-06-13 21:04:55 +02:00
arvidnandArvid Norberg 0d3f80bedd update copyright and license headers (of a few new files merged from RC_2_0) 2021-03-29 19:35:45 +02:00
arvidn 6375df4539 merged RC_2_0 into master 2021-03-29 07:38:16 +02:00
arvidnandArvid Norberg 9b957f6268 use user defined literal for piece_index_t in tests 2021-03-22 14:08:53 +01:00
arvidn 0afc27d158 merged RC_2_0 into master 2021-02-06 21:41:31 +01:00
arvidnandArvid Norberg cf8945ad64 move exists() function that ignore errors to test utils, and clean up use in posix_storage and mmap_storage 2021-02-05 01:40:15 +01:00
Alden TorresandArvid Norberg b7867b20fb moved mmap_storage.hpp and part_file.hpp to aux 2021-01-07 22:46:41 +01:00
Arvid Norberg 109eaea545 merged RC_2_0 into master 2020-12-06 17:39:59 +01:00
Arvid NorbergandArvid Norberg 37a165def3 add posix_part_file, specific to posix_storage. It uses fopen/fclose and is not thread safe 2020-11-18 03:07:39 +01:00
arvidnandArvid Norberg 19e8c2f3ea remove full BSD license from all source files. reference LICENSE file in the root instead 2020-09-02 00:56:54 -07:00
arvidnandArvid Norberg d3f7a363c2 update copyright year 2019-08-29 00:13:04 +02:00
arvidnandArvid Norberg 8305c40d6a make disk_interface the customization point for storage, rather than storage_interface
remove the disk cache
remove trim_cache disk job
remove zero-storage
mark default_storage_constructor as deprecated
remove storage_interface
remove file_pool and default_storage_constructor. update connection_tester to use disk_io_thread.
only ftruncate files once
optimize hashing, by running sha1 directly on the memory mapped file
use boost-multi_index in file_view_pool
remove flush_piece and flush_hashed, simplify job-fence logic, remove prep_read_job_impl
support noatime
split out mmap implementation into a .cpp file
support hashing of content in part files. wraps up new disk storage
remove flush_piece disk job
separate out store_buffer into its own class
pass session_settings into storage operations instead of assigning a pointer in the storage object
use unordered_map in store_buffer
add fopen-based disk io back-end for non-64 bit systems or systems without mmap
factor out open_mode_t into its own header
first stab at windows memory mapped files support
build all of boost for autotools
remove flag in async_read callback handler
remove old open_mode_t, preadv/readv and coalesce buffers
support sparse and no_cache file flags in mmap
Remove use of overlapped I/O because we're no longer doing any scatter/gather syscalls the use of overlapped is an unnecessary complication.
don't explicitly specify global read and write. On MINGW we need to use libtorrent::read and libtorrent::write instead of the MINGW provided ::read and ::write.

If the underlying file is empty then m_mapping is expected to be null.
It is the caller's responsibilty to notice that the region's size is
zero and not dereference it in that case.

Otherwise there is no good way for users of default_storage::open_file
to determine that the opened file is empty.
2019-01-20 18:29:42 +01:00
Alden TorresandArvid Norberg 73a7050185 fixing warnings in tests code, part7 2018-01-30 12:34:53 +01:00
arvidnandArvid Norberg 348bc2b4fe remove some uses of memset in favour of std::array. add some noexcept to sha1_hash operations 2018-01-29 03:02:06 +01:00
Alden TorresandArvid Norberg 8d379dd944 fixing warnings in tests code, part3 2018-01-25 09:09:21 +01:00
arvidnandArvid Norberg 749d0da875 make iovec_t an alias for span<char>, in preparation for removing it altogether in favour of span 2017-04-30 11:49:08 -04:00
arvidnandArvid Norberg d138f02424 introduce lt namespace alias 2017-04-23 23:43:58 -04:00
arvidnandArvid Norberg cef9773c70 generalize part_file::export_file to pass back the buffers to a callback function 2017-04-15 20:01:18 -04:00
arvidnandArvid Norberg 79d7ae3638 separate path and filesystem functions out into its own translation unit/header file pair, separating it from the file and directory class 2017-04-11 18:07:55 -04:00
Arvid NorbergandGitHub 3d06371f31 factor out some common storage utilities out of storage.cpp (#1515)
factor out some common storage utilities out of storage.cpp
2017-01-11 00:42:10 -05:00
Arvid NorbergandGitHub 3f1084d63d strengthened type safety in handling of piece and file indices (#1409)
strengthened type safety in handling of piece and file indices
2016-12-22 10:42:33 -05:00
Steven SilotiandArvid Norberg f5366bd816 use span for scatter/gather lists (#1260)
use span for gather/scatter buffers. remove explicit size parameter from file_op
2016-10-26 20:40:56 -04:00
Arvid NorbergandGitHub 6148984426 remove whitespace at end of line (#1245) 2016-10-22 11:47:24 -04:00
arvidn 6c805bd06d simplify print statements in tests 2016-10-09 20:23:45 -04:00
Arvid NorbergandGitHub e801d2e6de modernize replace deprecated headers (#897) 2016-07-09 23:17:55 -04:00
Arvid Norberg e8380e1d0b factor out includes from config.hpp into the files actually using it. primarily, printf family of functions, since C++11 version is used now. This removes the need for an snprintf-wrapper on windows (#732) 2016-05-17 09:24:06 -04:00
Arvid Norberg c8443d0c7c msvc fixes 2015-05-31 12:21:16 +00:00
Arvid Norberg f9c9d0ad0d merge small unit tests to make running the tests quicker. expand the test framework a bit. add ax_boost_random.m4 script to link against boost.random correctly from makefile. 2015-05-30 04:31:23 +00:00
Arvid Norberg 051ca6b22c fix warnings 2015-05-18 05:32:18 +00:00
Arvid Norberg 9bfbb8a52a fix partfile on windows 2015-01-15 03:35:13 +00:00
Arvid Norberg 7351389ce8 land libtorrent_aio branch in trunk 2014-07-06 19:18:00 +00:00