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

Wildcard Support for Fault Injection Configuration #10

Open
Natnael-Getachew-Yirga opened this issue Jan 6, 2025 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@Natnael-Getachew-Yirga
Copy link

I'm using LazyFS for fault injection, but I need to target files where the names aren’t known in advance. It would be great if I could use a wildcard (e.g., *.txt) in the configuration instead of specifying exact file names. Right now, trying to add faults after files are created hasn’t worked.

Example Configuration

Current setup:

[[injection]]
type="torn-op"
file="output1.txt"
occurrence=5
parts=3 # or parts_bytes=[4096,3600,1260]
persist=[1,3]

What I would like to use:

[[injection]]
type="torn-op"
file="*.txt"
occurrence=5
parts=3 # or parts_bytes=[4096,3600,1260]
persist=[1,3]

Feature Request

Please add wildcard support (like *)for the file field to make fault injection work with dynamic file names.

Expected Behavior

  • Applying fault rules to any file that matches a wildcard (e.g., *.txt).

If there’s a workaround I may have missed, I would greatly appreciate your guidance. Thank you for your time and consideration!

@mj-ramos mj-ramos self-assigned this Jan 9, 2025
@mj-ramos mj-ramos added the enhancement New feature or request label Jan 9, 2025
@mj-ramos
Copy link
Collaborator

mj-ramos commented Jan 9, 2025

Hello :)
Thank you for your interest in LazyFS! We'll add this feature in a future update.

Thank you for your feedback!

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

No branches or pull requests

2 participants