On Wed, Dec 10, 2008 at 08:08:10PM +0100, Andrea Arcangeli wrote: > On Wed, Dec 10, 2008 at 12:50:17PM -0600, Anthony Liguori wrote: > > But opening twice means that you lose coherency with NFS. > > Not sure why. They're not running from different nfs clients. If this
I just got confirmation from Trond that from nfs point of view, opening the file multiple times or duping it, is the same as I expected (all it matters is that the inode is the same so the pagecache radix tree is the same etc..). So opening the file each time a thread starts, would provide a local f_pos and it would work fine on older/current kernels too. In theory other nfs clients should also behave. Not sure what's best, if to hack around the bdrv api and open the file multiple times or wait for preadv/pwritev. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
