https://github.com/the8472/defrag-dirs
Directory index defragmentation tool for linux
https://github.com/the8472/defrag-dirs
Last synced: 3 months ago
JSON representation
Directory index defragmentation tool for linux
- Host: GitHub
- URL: https://github.com/the8472/defrag-dirs
- Owner: the8472
- License: gpl-3.0
- Created: 2017-05-06T21:33:31.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T01:55:53.000Z (almost 8 years ago)
- Last Synced: 2025-03-23T20:04:19.927Z (3 months ago)
- Language: Rust
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://crates.io/crates/defrag-dirs)
# defrag-dirs
A simple directory index "defragmentation" tool since e4defrag only handles regular files
It works by moving all directory contents into temporary directories and then replacing the old ones.Caveats:
* Will interfere with any process that tries to access the directories at the same time.
* Does not preserve xattrs, acls or timestamps of directories. Metadata of other dir entries is preserved
* If an error is encountered in the middle of a move files may be left stranded in a temporary directory## Build
* install liblzo2 and libz (build-time dependencies)
* install rust and cargo
* clone repo
* `cargo build --release`
* `target/release/defrag-dirs --help`