On Thu, Jan 11, 2007 at 06:00:02PM +0100, Emiliano Gabrielli (aka AlberT) wrote:
> On Thursday 11 January 2007 12:00, Ulrich Windl wrote:
> > when returning from the syscall the OS may still be
> > writing buffers, but I'm not too sure about that.
>
> even if the OS has flushed his buffers the disk write cache may be still not
> empty ...
>
> cfr man 2 sync:
> According to the standard specification (e.g., SVID), sync() schedules
> the writes, but may return before the actual writing is done. However,
> since version 1.3.20 Linux does actually wait. (This still does not
> guarantee data integrity: modern disks have large caches.)
>
The domU will be writing to the dom0, since ultimately the disk I/O has to be
scheduled in the host kernel. So as far accessing the LVM from dom0 is
concerned, a sync in the domU should ensure that the file system is consistent.
Thanks.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|