Compare commits
2 commits
openbsd/23
...
openbsd
Author | SHA1 | Date | |
---|---|---|---|
Jérémy Dubois | 01b6eef030 | ||
Jérémy Dubois | 7ffca45354 |
|
@ -20,6 +20,12 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
## [24.01] 2024-01-12
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
* ignore one of the errors in disklabel, bioctl and atactl due to incompatible disk types
|
||||||
|
|
||||||
## [23.06] 2023-06-05
|
## [23.06] 2023-06-05
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
PROGNAME="dump-server-state"
|
PROGNAME="dump-server-state"
|
||||||
REPOSITORY="https://gitea.evolix.org/evolix/dump-server-state"
|
REPOSITORY="https://gitea.evolix.org/evolix/dump-server-state"
|
||||||
|
|
||||||
VERSION="23.06"
|
VERSION="24.01"
|
||||||
readonly VERSION
|
readonly VERSION
|
||||||
|
|
||||||
dump_dir=
|
dump_dir=
|
||||||
|
@ -296,7 +296,7 @@ task_disks() {
|
||||||
last_result=$(${disklabel_bin} "${disk}" 2>&1 > "${dump_dir}/partitions-${disk}")
|
last_result=$(${disklabel_bin} "${disk}" 2>&1 > "${dump_dir}/partitions-${disk}")
|
||||||
last_rc=$?
|
last_rc=$?
|
||||||
|
|
||||||
if [ ${last_rc} -eq 0 ]; then
|
if [ ${last_rc} -eq 0 ] || { [ ${last_rc} -ne 0 ] && [ "${last_result}" = "disklabel: DIOCGDINFO: Input/output error" ]; }; then
|
||||||
debug "* disklabel ${disk} OK"
|
debug "* disklabel ${disk} OK"
|
||||||
else
|
else
|
||||||
debug "* disklabel ${disk} ERROR"
|
debug "* disklabel ${disk} ERROR"
|
||||||
|
@ -312,7 +312,7 @@ task_disks() {
|
||||||
last_result=$(${bioctl_bin} "${disk}" 2>&1 > "${dump_dir}/bioctl-${disk}")
|
last_result=$(${bioctl_bin} "${disk}" 2>&1 > "${dump_dir}/bioctl-${disk}")
|
||||||
last_rc=$?
|
last_rc=$?
|
||||||
|
|
||||||
if [ ${last_rc} -eq 0 ] || { [ ${last_rc} -ne 0 ] && [ "${last_result}" = "bioctl: DIOCINQ: Inappropriate ioctl for device" ]; }; then
|
if [ ${last_rc} -eq 0 ] || { [ ${last_rc} -ne 0 ] && [ "${last_result}" = "bioctl: DIOCINQ: Inappropriate ioctl for device" ]; } || { [ ${last_rc} -ne 0 ] && [ "${last_result}" = "bioctl: BIOCINQ: Input/output error" ]; }; then
|
||||||
debug "* bioctl ${disk} OK"
|
debug "* bioctl ${disk} OK"
|
||||||
else
|
else
|
||||||
debug "* bioctl ${disk} ERROR"
|
debug "* bioctl ${disk} ERROR"
|
||||||
|
@ -328,7 +328,7 @@ task_disks() {
|
||||||
last_result=$(${atactl_bin} "${disk}" 2>&1 > "${dump_dir}/atactl-${disk}")
|
last_result=$(${atactl_bin} "${disk}" 2>&1 > "${dump_dir}/atactl-${disk}")
|
||||||
last_rc=$?
|
last_rc=$?
|
||||||
|
|
||||||
if [ ${last_rc} -eq 0 ] || { [ ${last_rc} -ne 0 ] && [ "${last_result}" = "atactl: ATA device returned error register 0" ]; }; then
|
if [ ${last_rc} -eq 0 ] || { [ ${last_rc} -ne 0 ] && [ "${last_result}" = "atactl: ATA device returned error register 0" ]; } || { [ ${last_rc} -ne 0 ] && [ "${last_result}" = "atactl: ATAIOCCOMMAND failed: Input/output error" ]; }; then
|
||||||
debug "* atactl ${disk} OK"
|
debug "* atactl ${disk} OK"
|
||||||
else
|
else
|
||||||
debug "* atactl ${disk} ERROR"
|
debug "* atactl ${disk} ERROR"
|
||||||
|
|
Loading…
Reference in a new issue