#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

#1564 in Filesystem

Download history 5721/week @ 2024-01-22 7671/week @ 2024-01-29 8292/week @ 2024-02-05 7225/week @ 2024-02-12 4039/week @ 2024-02-19 8140/week @ 2024-02-26 8735/week @ 2024-03-04 10102/week @ 2024-03-11 11276/week @ 2024-03-18 9741/week @ 2024-03-25 11595/week @ 2024-04-01 13581/week @ 2024-04-08 11210/week @ 2024-04-15 12288/week @ 2024-04-22 15274/week @ 2024-04-29 13706/week @ 2024-05-06

53,183 downloads per month
Used in 44 crates (19 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