[virtio-9p] Ignore O_DIRECT hint from client.
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Sun, 19 Sep 2010 17:47:11 +0000 (10:47 -0700)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Oct 2010 17:10:58 +0000 (12:10 -0500)
commit0f8151cb75e09c9a7de24a37f22166e46a9eaf7b
treefeb70b137196bc20f6d07176ecf5391ba9e0cbdc
parentdf0973a4650d4889463ff66cb6fbdf0ab8090c70
[virtio-9p] Ignore O_DIRECT hint from client.

The O_DIRECT flag imposes alignment restrictions on the length and address
of userspace buffers and the file offset of I/Os.

While VirtFS/9P has plans to implement O_DIRECT behavior on the server,
for now we will stick to a behavior like NFS by bypassing the page cache
only on the client. Server may still cache the I/O.

Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
hw/virtio-9p.c