#cow #btrfs #reflink #copy #xfs #system

reflink-copy

copy-on-write mechanism on supported file systems

23 releases

0.1.26 Mar 19, 2025
0.1.24 Feb 25, 2025
0.1.20 Nov 10, 2024
0.1.19 Jul 4, 2024
0.1.5 Jul 12, 2023

#81 in Filesystem

Download history 26307/week @ 2024-12-09 25451/week @ 2024-12-16 16104/week @ 2024-12-23 18423/week @ 2024-12-30 29467/week @ 2025-01-06 31527/week @ 2025-01-13 32757/week @ 2025-01-20 27082/week @ 2025-01-27 29091/week @ 2025-02-03 28443/week @ 2025-02-10 32393/week @ 2025-02-17 34904/week @ 2025-02-24 42128/week @ 2025-03-03 47001/week @ 2025-03-10 45457/week @ 2025-03-17 39046/week @ 2025-03-24

176,022 downloads per month
Used in 96 crates (12 directly)

MIT/Apache

38KB
678 lines

reflink-copy

Build

Cross-platform(!) COW reflink copy of files

Some file systems implement COW (copy on write) functionality in order to speed up file copies. On a high level, the new file does not actually get copied, but shares the same on-disk data with the source file. As soon as one of the files is modified, the actual copying is done by the underlying OS.

This library supports Linux, Android, OSX, ios and Windows. As soon as other OS support the functionality, support will be added. For implementation details, visit the docs.

Dependencies

~0–37MB
~553K SLoC