Exit with code 1 instead of aborting when the OSD fails to open its devices #108

Closed
koolkhel wants to merge 1 commits from koolkhel/vitastor:osd-open-error into master

1 Commits

Author SHA1 Message Date
8dd49393f2 Exit with code 1 instead of aborting when the OSD fails to open its devices
Blockstore errors at startup, such as a data device that cannot be opened,
escaped from the etcd callback that creates the blockstore, and configuration
errors escaped from osd_t construction. vitastor-osd then died with
"terminate called after throwing std::runtime_error" and a core dump. Print
the error and exit with code 1, so that a startup error can be told from a
crash. Other exceptions still abort.
2026-10-26 21:03:12 +03:00