#file #lock #duplicate #flock #locking

fs3

Cross-platform file locks and file duplication

2 unstable releases

0.5.0 Mar 31, 2020
0.4.4 Mar 27, 2020

#1856 in Filesystem

Download history 6766/week @ 2024-11-15 8175/week @ 2024-11-22 10365/week @ 2024-11-29 10633/week @ 2024-12-06 9989/week @ 2024-12-13 6891/week @ 2024-12-20 4621/week @ 2024-12-27 7782/week @ 2025-01-03 7242/week @ 2025-01-10 7040/week @ 2025-01-17 9440/week @ 2025-01-24 8959/week @ 2025-01-31 10422/week @ 2025-02-07 10956/week @ 2025-02-14 10984/week @ 2025-02-21 9329/week @ 2025-02-28

43,765 downloads per month
Used in 62 crates (21 directly)

MIT/Apache

39KB
898 lines

fs3

Extended utilities for working with files and filesystems in Rust. fs3 is a fork of fs2.

Documentation Crate

Features

  • file descriptor duplication.
  • file locks.
  • file (pre)allocation.
  • file allocation information.
  • filesystem space usage information.

Platforms

fs3 should work on any platform supported by libc.

Benchmarks

Simple benchmarks are provided for the methods provided. Many of these benchmarks use files in a temporary directory. On many modern Linux distros the default temporary directory, /tmp, is mounted on a tempfs filesystem, which will have different performance characteristics than a disk-backed filesystem. The temporary directory is configurable at runtime through the environment (see env::temp_dir).

License

fs3 is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, LICENSE-MIT for details.

Copyright (c) 2015 Dan Burkert.

Copyright 2020 Oxide Computer Company

Dependencies

~235KB