Fix whitespace in config_file_sync.ml

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Don't check config file's hash before syncing

The config file hash check is a left-over relic from when we had a flash-memory
based "OEM edition". We would check the hash of the "config files" (aka
/etc/passwd) before writing the modified config files to disk. This was meant
to save wear and tear on flash media.

We no longer make a flash-based OEM edition. Furthermore, we're rewriting the
config_file_sync mechanism to only transmit a single hashed password. We might
as well send this over without hashing, and just write the new password if it's
different than the old one.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Remove config_file_io.ml

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Fix warning: arg given to const constructor

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Config_file_sync just transmits JSON-coded root password

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Support legacy clients for config_file_sync

During a rolling pool upgrade, if a slave xapi restarts then it will attempt to
sync config files, and will expect the old-style passwd file response. The
config_file_sync handler now supports versioned URIs, so that clients accessing
the original URI will receive the legacy config files, while clients accessing
the URI with a version number appended will receive the new config files.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Config_file_sync uses new opasswd interface

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Rename xenops/memory.ml to xenopsMemory.ml; conflicted with ctypes

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Merge pull request #1533 from mcclurmc/theshadowknows

Xapi supports shadow password files