{"id":20187321,"url":"https://github.com/anaskhan96/litfs","last_synced_at":"2025-04-10T06:41:24.100Z","repository":{"id":67947207,"uuid":"118030464","full_name":"anaskhan96/litfs","owner":"anaskhan96","description":"A FUSE file system in Go extended with persistent file storage","archived":false,"fork":false,"pushed_at":"2020-11-03T14:04:34.000Z","size":316,"stargazers_count":124,"open_issues_count":0,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T07:48:53.228Z","etag":null,"topics":["filesystem","fs","fuse","persistence"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anaskhan96.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","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":"2018-01-18T19:50:40.000Z","updated_at":"2024-12-21T15:08:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"a226a6fe-081f-4d75-ac2a-1cd9553ff9e5","html_url":"https://github.com/anaskhan96/litfs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anaskhan96%2Flitfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anaskhan96%2Flitfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anaskhan96%2Flitfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anaskhan96%2Flitfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anaskhan96","download_url":"https://codeload.github.com/anaskhan96/litfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248173019,"owners_count":21059591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["filesystem","fs","fuse","persistence"],"created_at":"2024-11-14T03:22:46.250Z","updated_at":"2025-04-10T06:41:24.079Z","avatar_url":"https://github.com/anaskhan96.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# litfs\n\n![Image of litfs at work](https://raw.githubusercontent.com/anaskhan96/litfs/master/working.png)\n\nThis FUSE filesystem, apart from providing the normal file I/O operations, implements persistence by emulating a single binary Unix file as disk and performing read/writes on it.\n\n## Build and Run\n\n```bash\ngo get github.com/anaskhan96/litfs\ncd $GOPATH/src/github.com/anaskhan96/litfs\ngo run main.go data # data/ is the directory on which to mount the filesystem on\n```\n\nRun `umount \u003cpath-to-directory\u003e` to unmount the filesystem.\n\n## File System Characteristics\n\n- Create, remove a directory\n- Create, remove, read from, and write to files inside a directory\n- Copy, move the contents of a file to another, across directories\n\n## Persistence Implementation\n\n`disklib/sda` is the created binary file emulating a disk. Keeping a block size of `4096` bytes:\n\n- A serialized form of the tree representation of the filesystem is stored in the first block\n- A structure containing two components - a bitmap indicating free and allocated blocks in the filesystem and an integer containing the lowest free block at the moment - is serialized and stored in the second block\n- File data is stored from the third block onwards, with a block as a whole being allocated to/deallocated from the file\n\n---\n\nThis project was built under the course *Unix Systems Programming* at *PES University*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanaskhan96%2Flitfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanaskhan96%2Flitfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanaskhan96%2Flitfs/lists"}