#coreutils #sparse

libfs

libfs is a library of file and filesystem operations that is supplementary to std::fs

21 releases

Uses new Rust 2024

0.9.4 May 3, 2026
0.9.3 Jan 29, 2026
0.9.2 Aug 27, 2025
0.9.1 Apr 11, 2025
0.5.0 Dec 20, 2023

#2022 in Filesystem

Download history 28/week @ 2026-04-18 39/week @ 2026-04-25 201/week @ 2026-05-02 53/week @ 2026-05-09 54/week @ 2026-05-16 69/week @ 2026-05-23 40/week @ 2026-05-30 56/week @ 2026-06-06 75/week @ 2026-06-13 80/week @ 2026-06-20 84/week @ 2026-06-27 112/week @ 2026-07-04 60/week @ 2026-07-11 52/week @ 2026-07-18 127/week @ 2026-07-25 71/week @ 2026-08-01

319 downloads per month
Used in 2 crates

GPL-3.0-only

48KB
1K SLoC

libfs: Advanced file and fs operations

libfs is a library of file and filesystem operations that is supplementary to std::fs. Current features:

  • High and mid-level functions for creating and copying sparse files.
  • Copying will use Linux copy_file_range where possible, with fall-back to userspace.
  • Scanning and merging extent information on filesystems that support it.
  • File permission copying, including xattrs.

Some of the features are Linux specific, but most have fall-back alternative implementations for other Unix-like OSs. Further support is todo.

libfs is part of the xcp project.

Crates.io doc.rs Github Actions

Dependencies

~12–17MB
~461K SLoC