]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add JSON serialization of virLockSpacePtr objects for process re-exec()
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 9 Aug 2012 10:54:37 +0000 (11:54 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 16 Oct 2012 14:45:55 +0000 (15:45 +0100)
commit8057c04e8d8ed4b371d3eb67ade34ef7ff55e08a
tree3954bdddbdfd33f2d0dadf0a2661d49d68ae3c88
parenteca72d4759213eca1e71e721f6588ce4e547a36d
Add JSON serialization of virLockSpacePtr objects for process re-exec()

Add two new APIs virLockSpaceNewPostExecRestart and
virLockSpacePreExecRestart which allow a virLockSpacePtr
object to be created from a JSON object and saved to a
JSON object, for the purposes of re-exec'ing a process.

As well as saving the state in JSON format, the second
method will disable the O_CLOEXEC flag so that the open
file descriptors are preserved across the process re-exec()

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/libvirt_private.syms
src/util/virlockspace.c
src/util/virlockspace.h