{"id":16380863,"url":"https://github.com/biont/files_fuse_mount","last_synced_at":"2025-03-23T03:33:13.392Z","repository":{"id":38424172,"uuid":"435929241","full_name":"Biont/files_fuse_mount","owner":"Biont","description":"Nextcloud app to expose user storage as a FUSE filesystem managed by the filesystem API","archived":false,"fork":false,"pushed_at":"2023-03-11T02:57:48.000Z","size":355,"stargazers_count":5,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T17:24:34.189Z","etag":null,"topics":["fuse","fuse-filesystem","nextcloud"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Biont.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-12-07T15:18:37.000Z","updated_at":"2025-03-04T12:50:58.000Z","dependencies_parsed_at":"2024-10-28T15:24:09.446Z","dependency_job_id":"075d910c-0c3b-4476-9a5e-eea87669e886","html_url":"https://github.com/Biont/files_fuse_mount","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biont%2Ffiles_fuse_mount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biont%2Ffiles_fuse_mount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biont%2Ffiles_fuse_mount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biont%2Ffiles_fuse_mount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Biont","download_url":"https://codeload.github.com/Biont/files_fuse_mount/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052659,"owners_count":20553162,"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":["fuse","fuse-filesystem","nextcloud"],"created_at":"2024-10-11T03:52:40.336Z","updated_at":"2025-03-23T03:33:13.013Z","avatar_url":"https://github.com/Biont.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Files FUSE Mount\n[![Test](https://github.com/Biont/files_fuse_mount/actions/workflows/test.yaml/badge.svg)](https://github.com/Biont/files_fuse_mount/actions/workflows/test.yaml)\n\nExpose a user's Nextcloud storage as a filesystem. Every reading \u0026 writing operation in this filesystem is controlled by Nextcloud and its filesystem API.\nThis has some key benefits over direct filesystem access:\n\n* Shares are working\n* Flows are properly triggered\n* No rescan of file changes required\n\n## Use cases:\n* Create a pool of shared media with colleagues and family. Then mount the whole library in some external media player like Jellyfin\n* Expose a user's storage as a Samba share without worrying about consistency with Nextcloud.\n* Replace an existing WebDAV mount. Benchmarks are needed, but chances are this solution here will perform a LOT better\n* Use powerful third-party server tools for processing and organizing data and see changes immediately reflected in Nextcloud\n\n## Requirements\n * Your system needs to be set up for mounting FUSE filesystems: You need the have `libfuse-dev` and `fuse` installed.\n * You need PHP 7.4+ with `ext-ffi`\n\n## Usage\nThis app has no GUI and probably won't ever need one. For now, it just ships a new CLI command called `files:fuse-mount`. It supports specifying one or more users and a mount point.\nFor example, to mount a single user directory, run\n`./occ files:fuse-mount --user john /mnt/nextcloud-fuse/john`\n\nYou can also pass multiple users. In this case the root of the mount point will contain all individual user folders as subdirectories\n`./occ files:fuse-mount -u john -u jane /mnt/nextcloud-fuse/john`\n\nThe command will stay in the foreground as long as the mount is active. To unmount and terminate the process, use `fusermount -u \u003cMOUNTPOINT\u003e`\n## Caveats\nThis a very very rudimentary implementation. It currently supports:\n* Directory listing\n* Read operations\n* Write operations\n* File deletion\n\nSo there is a lot of stuff missing that you might expect:\n* Polling (Might need to look into PHP8.1 Fibers for this one)\n* Symlinks (A limited implementation that enables sharing between users could work. Otherwise it just does not make sense to support symlinks)\n* Integration of common linux concepts like ownership/permissions and locking (where possible, correlating Nextcloud concepts are applied though)\n\n# Troubleshooting\n\n*Failed loading 'libfuse.so'*\nMake sure your system has the required packages. On Debian for example, you need `fuse` and `libfuse-dev`\n\n*`/dev/fuse` not found!*\n[Check that your user has acces to that file](https://superuser.com/questions/466304/how-do-i-make-sshfs-work-in-debian-i-get-dev-fuse-permission-denied)\nIf you're seeing the error inside a container, ensure that you are passing the `/dev/fuse` device into it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiont%2Ffiles_fuse_mount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiont%2Ffiles_fuse_mount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiont%2Ffiles_fuse_mount/lists"}