aboutsummaryrefslogtreecommitdiff
path: root/zenstore/basicfile.cpp
Commit message (Collapse)AuthorAgeFilesLines
* remove fallocate on MacOSDan Engelbrecht2022-04-121-8/+0
|
* switch posix_fallocate to fallocate on MacOSDan Engelbrecht2022-04-121-1/+1
|
* don't try to allocate file space for a zero size fileDan Engelbrecht2022-04-021-6/+12
|
* more linux fixesDan Engelbrecht2022-04-021-6/+6
|
* proper error handling when setting file sizeDan Engelbrecht2022-04-021-8/+24
|
* rename EMode to ModeDan Engelbrecht2022-04-011-16/+16
|
* error handling in BasicFile::SetFileSizeDan Engelbrecht2022-04-011-6/+28
|
* linux fixesDan Engelbrecht2022-04-011-1/+1
|
* make sure we allocate disk space when we set file sizeDan Engelbrecht2022-04-011-1/+3
|
* fix BasicFile::Open on LinuxDan Engelbrecht2022-04-011-1/+1
|
* cleanupDan Engelbrecht2022-03-311-14/+16
|
* incremental migration with optional clean of sourceDan Engelbrecht2022-03-311-7/+39
| | | | add more fine-grained access modes for BasicFile
* Migration now works in larger disk IO chunksDan Engelbrecht2022-03-311-24/+40
| | | | BasicFile and CasLogFile now has new explicit modes instead of create true/false
* We need DELETE access to be able to mark a file for delete on close.Dan Engelbrecht2022-03-311-6/+1
|
* void copy of std::filesystem::pathDan Engelbrecht2022-03-311-2/+2
|
* linux fixesDan Engelbrecht2022-03-311-3/+3
|
* Move MarkAsDeleteOnClose to BasicFileDan Engelbrecht2022-03-311-0/+25
|
* Fix BasicFile::SetFileSize for Mac/LinuxDan Engelbrecht2022-03-311-1/+4
|
* fix posix SetFileSizeDan Engelbrecht2022-03-311-1/+1
|
* Manage lifetime of FileHandleDan Engelbrecht2022-03-311-0/+14
|
* If open(O_CREAT) is used then a file mode must be givenMartin Ridgers2022-02-211-2/+2
|
* Explicitly set access permissions so we're not affected by process' umaskMartin Ridgers2022-02-211-2/+7
|
* Marked a few file descriptors to be closed on execute (POSIX)Martin Ridgers2022-02-211-2/+2
|
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-5/+3
|
* Enabled POSIX-compatible implementations on MacMartin Ridgers2022-01-071-6/+2
|
* Missing includeMartin Ridgers2022-01-071-0/+1
|
* Merged main.Per Larsson2021-12-141-0/+86
|\
| * Do not block when trying to lock a lock file (POSIX)Martin Ridgers2021-12-021-1/+1
| |
| * Remove a LockFile's lock on destructionMartin Ridgers2021-12-021-0/+6
| |
| * Alphebetical include orderMartin Ridgers2021-10-281-1/+1
| |
| * LockFile implementation for LinuxMartin Ridgers2021-10-281-0/+22
| |
| * Merged mainMartin Ridgers2021-10-281-0/+48
| |\ | |/ |/|
| * open() flags were incorrect and it would not create new filesMartin Ridgers2021-10-251-1/+1
| |
| * Merged mainMartin Ridgers2021-10-151-1/+1
| |\
| * | Implemented basicfile.cpp for POSIX platformsMartin Ridgers2021-10-141-0/+54
| | |
| * | Moved zencore/windows.h include from basicfile.h to basicfile.cppMartin Ridgers2021-10-131-0/+4
| | |
* | | Lockfile implementation (#24)Stefan Boberg2021-10-271-0/+48
| |/ |/| | | | | | | Implemented lockfile synchronization To be used instead of or in conjunction with existing events to coordinate launching and discovery of server instances
* | clang-formatStefan Boberg2021-10-151-1/+1
|/
* basicfile: Added Write member functions accepting MemoryView for convenienceStefan Boberg2021-10-081-0/+12
|
* Various BasicFile improvementsStefan Boberg2021-09-261-22/+88
| | | | | | | * BasicFile::Open clears error_code on entry, and exits early on failure to avoid initialization of m_FileHandle * Made BasicFile::Read handle large reads * Made BasicFile::Write handle large writes * Added BasicFile::WriteAll which may be optimized in the future to handle what is essentially a file copy more efficiently
* Added TemporaryFile implementation, provides a simple abstraction around ↵Stefan Boberg2021-09-251-1/+83
| | | | temporary files
* It's not possible to compile out testsStefan Boberg2021-09-201-1/+5
| | | | Tests are now compiled in if `ZEN_WITH_TESTS=1`, and compiled out if not. Compiling tests out reduces the footprint of the resulting executables quite significantly.
* Implemented BasicFile::StreamByteRangeStefan Boberg2021-09-191-2/+8
|
* Added BasicFile::StreamFile helper function to support reading large files ↵Stefan Boberg2021-09-191-0/+23
| | | | in a chunked fashion (will be using memory-mapped strategy in the future where it makes sense)
* Changed BasicFile implementationStefan Boberg2021-09-191-17/+73
| | | | | | * No longer uses ATL on Windows (we just use raw Win32 API) * Added non-throwing Open() implementation * Added beginnings of a test suite, for verifying cross-platform implementation
* Implemented support for dropping z$ buckets while onlineStefan Boberg2021-08-171-0/+6
|
* clang-formatStefan Boberg2021-05-221-1/+3
|
* Fixed up error reporting in BasicFile, now uses ThrowSystemException() to ↵Stefan Boberg2021-05-211-6/+5
| | | | correctly report the HRESULT error code which would previously always be zero
* Renamed CasBlobFile -> BasicFileStefan Boberg2021-05-211-6/+6
|
* Moved CasBlobFile into basicfile.hStefan Boberg2021-05-211-0/+85