Re: [PATCH] qemu: qemu_fopen_fd: differentiate between reader and writer user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Sunday, October 12, 2008 - 9:55 am

Uri Lublin wrote:

Anthony, this is a problem with qemu-upstream so I'd like to solve it in 
a way that's acceptable for upstream.

The proposed patch is less that ideal IMO as it introduces limitations 
on what you can do with a file.  An alternative implementation would add 
a read/write mode to the buffer, based on the last access type.  When 
switching from read to write, we drop the buffer, and when switching 
from write to read, we flush it and then drop it.  This is more complex 
but results in a cleaner API.

-- 
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] qemu: qemu_fopen_fd: differentiate between rea ..., Avi Kivity, (Sun Oct 12, 9:55 am)