[ovs-dev] [PATCH RFC] ovsdb-server: Preserve remotes across crash and restart.

Ben Pfaff blp at nicira.com
Thu Jun 13 16:14:18 UTC 2013

On Thu, Jun 13, 2013 at 08:29:25AM -0700, Gurucharan Shetty wrote:
> On Wed, Jun 12, 2013 at 5:10 PM, Ben Pfaff <blp at nicira.com> wrote:
> > This is unpolished but it shows the approach I have in mind.
> > Sending out for comments on the approach.
> >
> I am fine with the approach. The two negatives I see with this:
> * If /tmp is cleaned up routinely, we will loose the information. If we
> decide to put this in /etc/openvswitch, it may look a little dirty when
> program is abnormally terminated.

tmpfile() normally creates a file and then deletes it anyhow.  I don't
know of any /tmp reaper that can affect it.

> * If we have multiple run time data, (ex: add/remove databases) we may need
> multiple files.

I thought that we could simply use a little more sophisticated JSON.
Is there a reason why not?

More information about the dev mailing list