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

Keep the original file/directory structure on disk (ocis/s3ng) #5358

Closed
MrPixel1 opened this issue Jan 9, 2023 · 2 comments
Closed

Keep the original file/directory structure on disk (ocis/s3ng) #5358

MrPixel1 opened this issue Jan 9, 2023 · 2 comments
Labels

Comments

@MrPixel1
Copy link

MrPixel1 commented Jan 9, 2023

Describe the bug

I could not find documentation on how to keep the original file/directory structure on disk.
There are various reasons for this use case, e.g. having other services directly interacting with the files (using webdav may or may not be an applicable workaround) or not wanting a vendor lock-in.

Expected behavior

Documentation, e.g. here, on how to configure how files and directories are persisted on the disk/in the S3 buckets.

Actual behavior

There's no documentation to my knowledge.

Setup

docker-compose with the following environment variables:

- "STORAGE_SYSTEM_DRIVER=ocis"
- "STORAGE_USERS_DRIVER=s3ng"
- "STORAGE_USERS_S3NG_ENDPOINT=http://storage:3900"
- "STORAGE_USERS_S3NG_REGION=region"
- "STORAGE_USERS_S3NG_ACCESS_KEY=key"
- "STORAGE_USERS_S3NG_SECRET_KEY=key"
- "STORAGE_USERS_S3NG_BUCKET=bucket"

The issue applies to both the s3ng and ocis storage drivers.

@micbar
Copy link
Contributor

micbar commented Jan 9, 2023

@MrPixel1 I am not sure if i get the question right.

I assume you would like to write to the ocis filesystem bypassing the ocis APIs.

This is not possible with the two currently supported drivers (DecomposedFS, S3NG). Both drivers need exclusive access to the filesystem because it deconstructs the file tree and optimizes the reverse lookup.

There is the EOS driver available which is really built around that use case where aplications can directly access the filesystem.

There are plans to build a new SMB driver for samba file systems which would also support that use case.

@MrPixel1
Copy link
Author

MrPixel1 commented Jan 9, 2023

Thanks for the info! That's correct: I would like to be able to access the files bypassing ocis, but I understand this isn't possible (I thought I read that it's possible, hence my assumption).
Let me know if it makes sense opening a more detailed feature request.

I'll inform myself about the EOS driver, I wasn't aware of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants