{"id":18267662,"url":"https://github.com/oxeu/simplefs","last_synced_at":"2026-07-15T19:02:28.528Z","repository":{"id":186368703,"uuid":"675070594","full_name":"OXeu/simplefs","owner":"OXeu","description":"Rust Simple FileSystem which supports UNLIMITED size of file","archived":false,"fork":false,"pushed_at":"2023-08-29T13:16:47.000Z","size":340,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"exfs","last_synced_at":"2025-10-31T00:22:02.940Z","etag":null,"topics":["exfs","filesystem","fs","rust"],"latest_commit_sha":null,"homepage":"","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/OXeu.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}},"created_at":"2023-08-05T17:11:51.000Z","updated_at":"2024-01-21T01:32:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"52fee2ad-95a0-4822-8cde-e69d4db7e291","html_url":"https://github.com/OXeu/simplefs","commit_stats":null,"previous_names":["thankrain/simplefs","oxeu/simplefs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OXeu/simplefs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fsimplefs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fsimplefs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fsimplefs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fsimplefs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OXeu","download_url":"https://codeload.github.com/OXeu/simplefs/tar.gz/refs/heads/exfs","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fsimplefs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35517479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["exfs","filesystem","fs","rust"],"created_at":"2024-11-05T11:28:12.730Z","updated_at":"2026-07-15T19:02:28.456Z","avatar_url":"https://github.com/OXeu.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e SimpleFS \u003c/h1\u003e\r\n\u003cp align=\"center\"\u003e Simple Toy FileSystem \u003c/p\u003e\r\n\r\n## 特性\r\n\r\n- [x] 多级索引，可退化为直接索引，理论最高支持 256 级索引，64 ZB文件最多使用 8 级索引\r\n- [x] 区间索引\r\n- [x] 单文件大小上限(寻址上限) $2\\space^{64} * 4\\space KB = 64 \\space ZB$\r\n- [x] LRU 文件块缓存\r\n- [x] 软链接 \u0026 硬链接\r\n\r\n## 文件结构\r\n\r\n![layout](imgs/layout.png)\r\n\r\n### Inode\r\n\r\n```rust\r\n// 存储在 Inode Blocks 区\r\npub struct Inode {\r\n    // 1 索引等级,最小为 1,直接指向数据块,当前等级的索引无法满足上限后将索引升一级,最高 255 级\r\n    pub index_level: u8,\r\n    pub extra: [u8; 9],\r\n    pub mode: u16,\r\n    pub link_count: u32,\r\n    pub created: u64,\r\n    pub modified: u64,\r\n    pub size: u64,\r\n    pub uid: u32,\r\n    pub gid: u32,\r\n    pub index_node: IndexNode, // top-level 索引区间\r\n}\r\n\r\n// 存储在 Data Blocks\r\npub struct IndexNode {\r\n    start_blk: usize,\r\n    // inclusive\r\n    len: usize,       // exclusive start_blk + len\r\n}\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxeu%2Fsimplefs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxeu%2Fsimplefs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxeu%2Fsimplefs/lists"}