Add a new internal-autosync API to perform autosync.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 28 Jan 2011 15:28:25 +0000 (15:28 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 28 Jan 2011 15:28:25 +0000 (15:28 +0000)
commitd2636b0984830d950423dadd936114ff242c4a00
treed773c806f380fdaaeee7a0393e990f7156e2ad5e
parent1d999540bddd7aea7c2d0fef8b15223d4acc645f
Add a new internal-autosync API to perform autosync.

Instead of explicitly calling umount-all; sync, we add a daemon
function called internal-autosync which does the same.

Apart from slightly simplifying the process of closing the handle, the
main advantage is we can modify the daemon for the standalone case so
that internal-autosync does not do the umount-all operation.
daemon/sync.c
generator/generator_actions.ml
src/MAX_PROC_NR
src/guestfs.c