oxenstored: move functions that process simple operations
authorJonathan Davies <jonathan.davies@citrix.com>
Thu, 17 Mar 2016 17:51:13 +0000 (17:51 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 24 Mar 2016 14:27:40 +0000 (14:27 +0000)
commitbe244d8667ab7a5fad642fab4fcc064b36a8402b
treeaf210b3e02707a672b7ceac09b0a779570b6f527
parent0ae7f678bcc593bfd46ebe0a38d64e2aa609abd5
oxenstored: move functions that process simple operations

Separate the functions which process operations that can be done as part of a
transaction. Specifically, these operations are: read, write, rm, getperms,
setperms, getdomainpath, directory, mkdir.

Also split function_of_type into two functions: one for processing the simple
operations and one for processing the rest.

This will help allow replay of transactions, allowing us to invoke the functions
that process the simple operations as part of the processing of transaction_end.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jon Ludlam <jonathan.ludlam@citrix.com>
Reviewed-by: Euan Harris <euan.harris@citrix.com>
Acked-by: David Scott <dave@recoil.org>
tools/ocaml/xenstored/process.ml