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

Generate default config #1535

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Generate default config #1535

wants to merge 29 commits into from

Conversation

ashruti-msft
Copy link
Collaborator

@ashruti-msft ashruti-msft commented Oct 8, 2024

Have added flag to generate optimal config for direct io mode as well.
sample file cache config file generated:
image

cmd/default-config.go Outdated Show resolved Hide resolved
@jainakanksha-msft
Copy link
Collaborator

jainakanksha-msft commented Oct 11, 2024

Thinking about our genConfig functionality should be treated as an independent feature. Much like how our mount and unmount commands operate as standalone functions, it makes sense for genConfig to independently generate and dump all default configurations into a file. This way, it won't rely on the existing implementation, ensuring a cleaner, more modular approach.

Flow -
image

So rather than just extending the current functionality make it an independent feature as describe in sequence diagram.
@ashruti-msft

@jainakanksha-msft
Copy link
Collaborator

also rename the command file to genConfig to align with product design.

@ashruti-msft
Copy link
Collaborator Author

@jainakanksha-msft made the reqd changes according to your suggestions lmk if this looks good.

component/libfuse/libfuse.go Show resolved Hide resolved
component/libfuse/libfuse.go Show resolved Hide resolved
cmd/gen-config.go Outdated Show resolved Hide resolved
cmd/gen-config.go Outdated Show resolved Hide resolved
cmd/gen-config.go Outdated Show resolved Hide resolved
component/attr_cache/attr_cache.go Show resolved Hide resolved
component/libfuse/libfuse.go Show resolved Hide resolved
cmd/gen-config.go Show resolved Hide resolved
Copy link
Collaborator

@jainakanksha-msft jainakanksha-msft left a comment

Choose a reason for hiding this comment

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

Looks good.

cmd/gen-config.go Outdated Show resolved Hide resolved
cmd/gen-config.go Outdated Show resolved Hide resolved
cmd/gen-config.go Outdated Show resolved Hide resolved
cmd/gen-config.go Outdated Show resolved Hide resolved
cmd/gen-config_test.go Show resolved Hide resolved
common/util.go Outdated Show resolved Hide resolved
component/file_cache/file_cache.go Outdated Show resolved Hide resolved
component/block_cache/block_cache.go Outdated Show resolved Hide resolved
component/attr_cache/attr_cache.go Outdated Show resolved Hide resolved
component/libfuse/libfuse.go Outdated Show resolved Hide resolved
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.

4 participants