#file #file-system #lock #duplicate #flock

archived fs3

Cross-platform file locks and file duplication

2 unstable releases

0.5.0 Mar 31, 2020
0.4.4 Mar 27, 2020

#7 in #file-system

Download history 1511/week @ 2022-06-07 1660/week @ 2022-06-14 1506/week @ 2022-06-21 1816/week @ 2022-06-28 1784/week @ 2022-07-05 1712/week @ 2022-07-12 2087/week @ 2022-07-19 2072/week @ 2022-07-26 2398/week @ 2022-08-02 2070/week @ 2022-08-09 2207/week @ 2022-08-16 2461/week @ 2022-08-23 2108/week @ 2022-08-30 2282/week @ 2022-09-06 2533/week @ 2022-09-13 1838/week @ 2022-09-20

9,195 downloads per month
Used in 17 crates (8 directly)

MIT/Apache

38KB
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

~54KB