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

Scrubbing an empty array returns exit code 1 #28

Open
gilgwath opened this issue Mar 26, 2023 · 0 comments
Open

Scrubbing an empty array returns exit code 1 #28

gilgwath opened this issue Mar 26, 2023 · 0 comments

Comments

@gilgwath
Copy link

Hello

First off, thank you for this wonderful tool!

Today I initialized my first snapraid array and I use snapraid-btrfs-runner to automate some of the maintenance. I ran the tool on my as yet empty array and it kept reporting that snapraid-btrfs scrub failed. I ran the command manually and got the following message:

Using 0 MiB of memory for the file-system.
Initializing...
The array appears to be empty.

To me this is not an error condition, just what should happen if the array is empty. So, I checked the exit code echo $?and it returned 1. That's why snapraid-btrfs-runner assumes there has been an error. Of course, this should go away once the used filled the array with some data, but since there is logic to check for this condition, shouldn't return exit code 0in this situation?

Best regards
Gilgwath

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

No branches or pull requests

1 participant