HomeClusterLabs Projects

cib: move disk validation code from CIB daemon to CIB library

Description

cib: move disk validation code from CIB daemon to CIB library

This revision moves duplicated functionality in cib/io.c:validate_on_disk_cib()
and retrieveCib() to a new, internally exposed function
lib/cib/cib_file.c:cib_read_and_verify(). The original two functions have been
reimplemented as wrappers for the new function, and a new error code
pcmk_err_cib_corrupt has been added.

Details

Provenance
kgaillotAuthored on Feb 16 2015, 5:19 PM
Parents
rPbf1fab3c498e: Core: refactor: separate CIB-specific code from XML stream writer
Branches
Unknown
Tags
Unknown

Event Timeline