Hi
Every now and then, but not always it seems (of course, it's just me not understanding when) when I do issue a
snapraid DIFF, I got an exit code 2 instead of zero.
I'm guessing RC2 stands for "Some file has changed".. am I right?
is there an RC table?
The closest match I found is here but nothing else..
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Steve.. you share my pain :)
I had alrady log parsing in place, hence my doubt
Everything is ok, but RC2 anyways..
I check RC of DIFF in a script before doing a sync (among other things) and laterly (since SR 9.0 it seems) I've got those errors out of nowhere...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
Every now and then, but not always it seems (of course, it's just me not understanding when) when I do issue a
snapraid DIFF, I got an exit code 2 instead of zero.
I'm guessing RC2 stands for "Some file has changed".. am I right?
is there an RC table?
The closest match I found is here but nothing else..
Thanks!
Exit codes are a bit of a mystery. Touch the timestamp in an array and it gives you Exit Code: 512 for a single modified file.
Would love to have some API type docs showing all the exit codes and why.
You can parse the log file
Output:
Last edit: Steve Miles 2016-05-23
Thanks Steve.. you share my pain :)
I had alrady log parsing in place, hence my doubt
Everything is ok, but RC2 anyways..
I check RC of DIFF in a script before doing a sync (among other things) and laterly (since SR 9.0 it seems) I've got those errors out of nowhere...
Ehm.. sorry but can we have an official RC list? :)
Thanks
From latest help on github
Sure I got 512 after touch'ing a timestamp. Will check again tomorrow.
Last edit: Steve Miles 2016-05-26
Thanks Steve! :)
Yep Exit Code for diff is 2 if sync needed!