]> git.proxmox.com Git - mirror_ovs.git/commit - ovsdb/ovsdb-client.c
log: Allow client to specify magic.
authorBen Pfaff <blp@ovn.org>
Sun, 24 Dec 2017 19:43:59 +0000 (11:43 -0800)
committerBen Pfaff <blp@ovn.org>
Sun, 24 Dec 2017 19:43:59 +0000 (11:43 -0800)
commit19b276cb4423b0cd723821eea0e91061080c76e5
tree1aab323854667c7f55f0e6a910684cd225fa18d0
parent09de8591d28ef596e1c62cf0b6a2d6e6a8988e1e
log: Allow client to specify magic.

Until now, the logging code in ovsdb has only supported a single file
format, for OVSDB standalone database files.  Upcoming commits will add
support for another, incompatible format, which uses a different magic
string for identification.  This commit allows the logging code to
support both formats.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
ovsdb/file.c
ovsdb/log.c
ovsdb/log.h
ovsdb/ovsdb-client.c
ovsdb/ovsdb-tool.c
tests/ovsdb-log.at
tests/test-ovsdb.c