{"id":17099836,"url":"https://github.com/cppcoffee/fragtop-rs","last_synced_at":"2026-04-30T17:32:05.038Z","repository":{"id":135559649,"uuid":"337909594","full_name":"cppcoffee/fragtop-rs","owner":"cppcoffee","description":"Linux file fragmentation top tool.","archived":false,"fork":false,"pushed_at":"2021-02-20T02:09:48.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T18:34:21.221Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cppcoffee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-11T02:21:58.000Z","updated_at":"2021-03-25T13:52:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"6468e162-b65e-4687-89b0-12c0a5419d66","html_url":"https://github.com/cppcoffee/fragtop-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cppcoffee/fragtop-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Ffragtop-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Ffragtop-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Ffragtop-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Ffragtop-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cppcoffee","download_url":"https://codeload.github.com/cppcoffee/fragtop-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cppcoffee%2Ffragtop-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32472396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T15:11:33.060Z","updated_at":"2026-04-30T17:32:05.019Z","avatar_url":"https://github.com/cppcoffee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fragtop-rs\n\n## Introduction\n\nSimilar to the top tool, use glob to traverse the file and save the number of fragments, sorted from largest to smallest and output.\n\n## Usage\n\n\n```shell\n$ ./fragtop-rs -h\nfragtop-rs 0.1.0\ncppcoffee \u003ccppcoffee@gmail.com\u003e\n\nUSAGE:\n    fragtop-rs [OPTIONS] -p \u003cpath\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -p \u003cpath\u003e         Set the glob file path\n    -n \u003ctop-n\u003e        Top fragment file [default: 20]\n```\n\n## Quick Start\n\nView all log files in the /var/log directory and sort them according to the number of fragments, the default output is top 20.\n\n```shell\n./fragtop-rs -p '/var/log/**/*'\n```\n\nView the jpg file fragments in the home directory top 10.\n\n```shell\n./fragtop-rs -p '/home/xyz/*.jpg' -n 10\n```\n\n## Example\n\n```shell\n$ ./target/debug/fragtop-rs -p '/var/log/**/*'\nIn progress: /var/log/yum.log-20210101\nScan total file: 657\n/var/log/access.log                               266\n/var/log/wtmp                                     39\n/var/log/messages-20210131                        22\n/var/log/messages-20210207                        21\n/var/log/messages-20210117                        20\n/var/log/audit/audit.log.2                        20\n/var/log/audit/audit.log.4                        19\n/var/log/messages-20210124                        18\n/var/log/audit/audit.log.1                        18\n/var/log/nginx/access.log                         17\n/var/log/audit/audit.log.3                        17\n/var/log/cron-20210207                            14\n/var/log/cron-20210131                            14\n/var/log/cron-20210124                            14\n/var/log/cron-20210117                            14\n/var/log/messages                                 13\n/var/log/audit/audit.log                          13\n/var/log/yum.log-20200511                         10\n/var/log/tuned/tuned.log                          10\n/var/log/grubby                                   8\n```\n\n## Reference\n\n[https://www.kernel.org/doc/Documentation/filesystems/fiemap.txt](https://www.kernel.org/doc/Documentation/filesystems/fiemap.txt)\n\n[https://man7.org/linux/man-pages/man8/filefrag.8.html](https://man7.org/linux/man-pages/man8/filefrag.8.html)\n\n[https://lib.rs/crates/fiemap](https://lib.rs/crates/fiemap)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppcoffee%2Ffragtop-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcppcoffee%2Ffragtop-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcppcoffee%2Ffragtop-rs/lists"}