diff options
| author | Stefan Boberg <[email protected]> | 2026-03-16 10:16:46 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-16 10:16:46 +0100 |
| commit | e5b97e8e769108ba45d6a064a46f892b68f1e950 (patch) | |
| tree | c0d9abb1191b0caf3d35fdaa1c1f267c17a0bf85 /src/zencore/testing.cpp | |
| parent | add buildid updates to oplog and builds test scripts (#838) (diff) | |
| download | zen-e5b97e8e769108ba45d6a064a46f892b68f1e950.tar.xz zen-e5b97e8e769108ba45d6a064a46f892b68f1e950.zip | |
block/file cloning support for macOS / Linux (#786)
- Add block cloning (copy-on-write) support for Linux and macOS to complement the existing Windows (ReFS) implementation
- **Linux**: `TryCloneFile` via `FICLONE` ioctl, `CloneQueryInterface` with range cloning via `FICLONERANGE` (Btrfs/XFS)
- **macOS**: `TryCloneFile` via `clonefile()` syscall (APFS), `SupportsBlockRefCounting` via `VOL_CAP_INT_CLONE`. `CloneQueryInterface` is not implemented as macOS lacks a sub-file range clone API
- Promote `ScopedFd` to file scope for broader use in filesystem code
- Add test scripts for block cloning validation on Linux (Btrfs via loopback) and macOS (APFS)
- Also added test script for testing on Windows (ReFS)
Diffstat (limited to 'src/zencore/testing.cpp')
0 files changed, 0 insertions, 0 deletions