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

Add configuration file support #56

Merged
merged 2 commits into from
Apr 30, 2021
Merged

Add configuration file support #56

merged 2 commits into from
Apr 30, 2021

Conversation

ligurio
Copy link
Owner

@ligurio ligurio commented Mar 4, 2021

@ligurio ligurio force-pushed the configuration_file branch 21 times, most recently from 7e636a1 to 3d7bec6 Compare March 10, 2021 13:04
@ligurio ligurio force-pushed the configuration_file branch 5 times, most recently from 205b61b to 8c1db72 Compare April 14, 2021 13:37
ligurio added a commit that referenced this pull request Apr 15, 2021
unreliablefs can be managed in runtime using simple .INI configuration
file. unreliablefs config uses configuration language which provides a
structure similar to what's found in Microsoft Windows INI files or used
by configparser Python module [2]. To make it possible was imported
third-party C library [1].

Supported error injections:

- errinj_errno
- errinj_kill_caller
- errinj_noop
- errinj_remove_target
- errinj_sleep_op
- errinj_truncate_target

TODO:
  - mandoc: update unreliablefs.conf.5, see [2]
  - mandoc: update unreliablefs.1
  - mandoc: describe regex options (REG_ICASE | REG_EXTENDED)
  - mandoc: describe limitations (PATH_MAX)
  - learn how to read global fuse configuration (seed, base_dir)
  - add random errno support
  - send specified signal and SIGKILL by default

1. https://github.com/benhoyt/inih
2. https://docs.python.org/3/library/configparser.html
3. https://github.com/mariusae/trickle/blob/master/trickled.conf.5
4. libfuse/libfuse#155

Closes #3
Closes #4
Closes #56

Closes #35
Closes #34
Closes #28
Closes #6
Closes #9
Closes #18
Closes #29
@ligurio ligurio force-pushed the configuration_file branch 2 times, most recently from 60ea405 to 21a9cbb Compare April 15, 2021 13:00
@ligurio ligurio force-pushed the configuration_file branch 4 times, most recently from 74085f5 to 875e574 Compare April 19, 2021 16:07
@ligurio ligurio force-pushed the configuration_file branch 5 times, most recently from 8554f64 to 795bb15 Compare April 26, 2021 16:24
@ligurio ligurio force-pushed the configuration_file branch 6 times, most recently from 54d9232 to d864fec Compare April 30, 2021 11:14
@ligurio ligurio force-pushed the configuration_file branch 2 times, most recently from b799828 to 177361e Compare April 30, 2021 20:48
Patch adds command line options and configuration file support
to unreliablefs.

unreliablefs can be managed in runtime using simple .INI configuration
file. unreliablefs config uses configuration language which provides a
structure similar to what's found in Microsoft Windows INI files or used
by configparser Python module [2]. To make it possible third-party C
library [1] has been imported.

There is only one supported error injection - "errinj_noop" that replaces
file operation with no operation. More error injections are coming.

1. https://github.com/benhoyt/inih
2. https://docs.python.org/3/library/configparser.html

Closes #3
Closes #18

Closes #1
Closes #7
Closes #12
Closes #60
@ligurio ligurio merged commit f923f02 into master Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant