[Libguestfs] [PATCH 2/3] Call sync after guestfsd exits
Richard W.M. Jones
rjones at redhat.com
Tue Aug 17 11:49:58 UTC 2010
On Tue, Aug 03, 2010 at 05:20:12PM +0100, Matthew Booth wrote:
> sync
> sleep 1
> sync
Definitely can't have a sleep here. What's wrong with a single
'sync'? It is documented that it doesn't return until all outstanding
writes have been committed to disk.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
More information about the Libguestfs
mailing list