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

feat(ovfs): add readme and user configuration #4686

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zjregee
Copy link
Member

@zjregee zjregee commented Jun 4, 2024

No description provided.

/// format: <scheme>://?<key>=<value>&<key>=<value>
/// example: fs://?root=/tmp
#[arg(env = "OVFS_BACKEND", index = 2)]
backend: Url,
Copy link
Member

@Xuanwo Xuanwo Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the idea of introducing a URL here. How about just using a HashMap? Our command line coule be like:

ovfs path/to/mount --scheme=s3 --access-key-id=xxx --secret-access-key=yyy --root=/tmp

Reading OVFS_BACKEND also doesn't make sense to me. We can start by accepting a simple map.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok for me, but I will have a concern about the alignment with ofs. I think ofs and ovfs should be used in a similar way. The usage here refers to the current implementation of ofs.

Copy link
Member

@Xuanwo Xuanwo Jun 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will initiate another discussion with ofs. However, I believe ovfs is a separate project that shouldn't adhere to the same design as ofs, especially when that design seems flawed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that we're currently pushing too aggressively to release the binary to users. Instead, we should focus on developing a library, ensuring it functions correctly and passes the tests before making it available to users.

For example, we don't need to play with the config/command line/args right now. We should make it work and than design our user interface.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got this. I'll draft this PR first. We should reopen this PR to discuss the user interface of the binary after the ovfs library is fully developed.

@zjregee zjregee marked this pull request as draft June 13, 2024 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants