Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support subdirectories #372

Open
mildred opened this issue Aug 8, 2023 · 2 comments
Open

Support subdirectories #372

mildred opened this issue Aug 8, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@mildred
Copy link

mildred commented Aug 8, 2023

I have an app that will create a separate sqlite database for every user in the system. I'd like to have them organised in a tree structure for better organization but currently, mkdir does not seems to be permitted within the litefs mount

2874de4c016738:/# mount | grep litefs
/dev/vdb on /var/lib/litefs type ext4 (rw,relatime,stripe=64)
litefs on /var/lib/sqlemail type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)
2874de4c016738:/# mkdir /var/lib/sqlemail/users
mkdir: can't create directory '/var/lib/sqlemail/users': Operation not permitted

By the way, congratulation for the great work and thanks to LiteFS I discovered Fly.io which seems to be really awesome.

@benbjohnson
Copy link
Collaborator

Thanks for the bug report (and the nice words!) Adding support for subdirectories adds a surprising amount of complexity to LiteFS so I held off on it. I'll mark this as a possible enhancement but also a documentation issue since we should call it out better.

@benbjohnson benbjohnson added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 8, 2023
@benbjohnson benbjohnson changed the title mkdir not permitted within litefs mount Support subdirectories Aug 8, 2023
@mildred
Copy link
Author

mildred commented Aug 8, 2023

It's easy to workaround this, so I suppose this is not going to be top priority, and if it adds complexity, perhaps it's best to leave it out. It's easy to just prefix our filename instead and if I truly have too many files around, perhaps I should have multiple litefs instances then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants