[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH 2/3] Call sync after guestfsd exits



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]