[Sheepdog] [PATCH v6] add object cache for sheep

Liu Yuan namei.unix at gmail.com
Mon Mar 26 15:56:35 CEST 2012


On 03/26/2012 09:48 PM, Liu Yuan wrote:

> v5 -> v6:
>  address Kazum's comments, Thanks!
>   - remove flock
>   - always read the cached object if any (solve qemu-img non-flush problem, collie vdi list. etc.)
>   - return err code to bdrv_co_flush_to_disk
>   - use valloc instead of malloc
>   - qemu patch v2
>     1 add cache flag for read_write_object()
>     2 adjust cache_enabled location in sd_open()


Hi Kazum,

Sorry one of my trivial patch destroy the O_DIRECT operation for object
read/write, since our inode object size isn't block aligned. So current
patchset still openes the fd with O_DSYNC. When this patch set is
merged, I'll look at the issue for O_DIRECT operation.

Thanks,
Yuan



More information about the sheepdog mailing list