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

tools: remove perl in mtx changer #1816

Conversation

bruno-at-bareos
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos commented May 15, 2024

Backport of PR #1740 to bareos-23

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

Source code quality (if there were changes to the original PR)
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

Backport quality

- add max_wait_drive variable with a default of 300s
  which can be extended in the mtx-changer.conf file to larger value
  (maybe needed for LTO9 drive due to calibration)
- use awk expression if most cases
- unify the way we use awk (-F, double quotes, etc)
- shfmt -i2 -ci
- shellcheck code
- systemtests: add mtx-changer test
- trim trailing whitespace on list cmd
- improve readability of longer awk code use direct input in awk
  expression without variables

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
(cherry picked from commit 68710b7)
Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
(cherry picked from commit 64f747e)
@BareosBot BareosBot merged commit 78e650e into bareos:bareos-23 May 16, 2024
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.

None yet

3 participants