WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 0 of 4] CA-38567: Make Xapi more I/O error sensitive

To: Xen API <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH 0 of 4] CA-38567: Make Xapi more I/O error sensitive
From: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Date: Fri, 05 Mar 2010 23:20:55 -0000
Delivery-date: Fri, 05 Mar 2010 15:21:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.3.1
VDI copy/init/provision ops in xapi are all buffered. Means I/O
completes only deferred. The agent should carefully sync back buffers
to disk and test file status, or gust corruption goes unnoticed.

Presently covers:
 * XVA import
 * Raw VDI import
 * VDI.copy
 * VM.provision (e.g. the Debian Etch post-installation script)

There might be more, which I've been missing then.

Some of the changes below just use O_SYNC on the output fd. Most
assume a prior xen-api-libs patch to make Unixext.fsync provide the
necessary error detail. See related hg-email.

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api