aboutsummaryrefslogtreecommitdiff
path: root/zenstore/filecas.cpp
Commit message (Collapse)AuthorAgeFilesLines
* If open(O_CREAT) is used then a file mode must be givenMartin Ridgers2022-02-211-1/+1
|
* Explicitly set access permissions so we're not affected by process' umaskMartin Ridgers2022-02-211-1/+8
|
* Marked a few file descriptors to be closed on execute (POSIX)Martin Ridgers2022-02-211-1/+1
|
* Format fix.Per Larsson2022-01-221-1/+2
|
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-10/+6
|
* Missing override decorationMartin Ridgers2022-01-071-1/+1
|
* Enabled POSIX-compatible implementations on MacMartin Ridgers2022-01-071-6/+2
|
* Paths are not wide on non-Windows so WideToUtf8() cannot be usedMartin Ridgers2021-12-151-5/+5
|
* Merged main.Per Larsson2021-12-141-14/+115
|\
| * Implemented filecas.cpp for POSIX platformsMartin Ridgers2021-10-251-2/+92
| |
| * Compile fixes due to std::fs::path's differing character typesMartin Ridgers2021-10-201-4/+7
| |
| * Fixed concrete Visitor to use the correct argument typesMartin Ridgers2021-10-201-2/+2
| |
| * Cross-platform argument to ZEN_DEBUG()Martin Ridgers2021-10-201-1/+1
| |
| * Use cross-platform ExtPathBuilder instead of ExtWideStrBuilderMartin Ridgers2021-10-181-3/+3
| |
| * Merged mainMartin Ridgers2021-10-161-7/+2
| |\
| * \ Merged mainMartin Ridgers2021-10-151-4/+4
| |\ \
| * | | Only include zencore/windows.h on WindowsMartin Ridgers2021-10-121-4/+6
| | | |
| * | | Corrected incorrect casing of include statementsMartin Ridgers2021-10-121-1/+1
| | | |
* | | | Remove Cid to CAS chunk mapping after GC.Per Larsson2021-12-131-0/+2
| | | |
* | | | Added size to GcStorage.Per Larsson2021-12-101-5/+5
| | | |
* | | | Added tombstone flag to file cas.Per Larsson2021-12-081-2/+11
| | | |
* | | | Added CAS total size.Per Larsson2021-11-301-5/+29
| | | |
* | | | gc: added DeletionMode flag to allow gc dry runsStefan Boberg2021-11-011-0/+11
| | | |
* | | | filecas: Fixed debug loggingStefan Boberg2021-11-011-10/+60
| | | |
* | | | cas: fixed some warningsStefan Boberg2021-10-231-5/+9
| | | | | | | | | | | | | | | | unsure why we don't get these when building in VS
* | | | filecas: Added commit log, chunk gcStefan Boberg2021-10-211-6/+89
| | | |
* | | | gc: Added GcStorage base class and hooked it up to CasGcStefan Boberg2021-10-211-6/+10
| | | |
* | | | cas: Adding cas.file.gc test for exercising garbage collection (incomplete)Stefan Boberg2021-10-201-1/+35
| |_|/ |/| |
* | | zencore: Enabled MSC warning 4668 to get warnings when preprocessor macros ↵Stefan Boberg2021-10-151-7/+2
| |/ |/| | | | | | | | | | | | | are used without an explicit definition Also fixed up various code to compile with this, by using ZEN_THIRD_PARTY_INCLUDES_START/ZEN_THIRD_PARTY_INCLUDES_END macros Removed prewindows.h/postwindows.h since they are no longer to be used due to the above
* | clang-formatStefan Boberg2021-10-151-4/+4
|/
* filecas: stress test code to understand access denied errorsStefan Boberg2021-10-081-6/+130
| | | | | | Added stress test for file cas file rename strategy (compiled out by default), to understand behaviour and why we get access denied errors in some cases when opening a file Also added code to ensure source file is deleted in the case where we end up hitting this error condition
* filecas: Added handling of error when a rename is attempted but the target ↵Stefan Boberg2021-10-081-1/+8
| | | | already exists
* Merged from upstreamStefan Boberg2021-10-051-2/+10
|
* Ensure FILE_RENAME_INFO structure allocation is freed also if ↵Stefan Boberg2021-09-251-2/+3
| | | | FileCasStrategy::InsertChunk() throws
* Encapsulated containers in CasChunkSet to allow for more efficient ↵Stefan Boberg2021-09-211-38/+21
| | | | udpates/queries
* Wired up scrubbing to more higher level servicesStefan Boberg2021-09-211-30/+53
| | | | Also moved sharding logic for filecas into a function to redduce cut/pasta
* Fixed another issue with filecas name shardingStefan Boberg2021-09-201-1/+1
|
* Moved more code into zen namespace, for consistencyStefan Boberg2021-09-201-1/+1
| | | | Also removed snapshot_manifest (remnants of vfs prototype)
* Fixed unused variable warnings exposed by xmake build (unclear why I do not ↵Stefan Boberg2021-09-191-1/+7
| | | | receive them in VS, but likely due to vcpkg versioning)
* Implemended basic scrubbing / detection of disk corruption. Still needs more ↵Stefan Boberg2021-09-191-17/+78
| | | | code to propagate errors and make adjustments to account for them in higher level data structures
* Changed some code over from ATL to BasicFile and added Scrub() stubs.Stefan Boberg2021-09-191-0/+5
|
* Changed logging implementationStefan Boberg2021-09-151-6/+6
| | | | | | * Code should no longer directly `#include spdlog/spdlog.h`, instead use `#include <zencore/logging.h>` * Instead of explicit calls to `spdlog::info(...)` and such please use the logging macros defined in `zencore/logging.h`. I.e `ZEN_INFO`, `ZEN_DEBUG`, `ZEN_TRACE`, `ZEN_ERROR`, `ZEN_CRITITCAL` * The macros will pick up the "most local" logger via a `Log()` call to retrieve a logger instance. To override the default logger in a class please implement your own `Log()` function
* Changed direct includes of spdlog/spdlog.h into zencore/logging.h to make it ↵Stefan Boberg2021-09-151-1/+1
| | | | easier to tweak implementation
* Silence unused parameter warningStefan Boberg2021-09-041-0/+1
|
* Format fix.Per Larsson2021-08-311-1/+1
|
* Removed FileCasImpl (unused)Stefan Boberg2021-08-261-80/+4
|
* Added missing lock to side channel InsertChunk() implementationStefan Boberg2021-08-261-6/+39
| | | | Previously, this could cause file contention as two threads would try to create the same chunk file
* Clang-format fixesStefan Boberg2021-08-241-1/+1
|
* Implemented more formalised CAS chunk filtering (with plenty of room for ↵Stefan Boberg2021-08-231-0/+39
| | | | optimization)
* Improved comment while reviewing codeStefan Boberg2021-08-211-1/+1
|