[sheepdog] [PATCH] object cache: use fcntl() for create_cache_object()
Liu Yuan
namei.unix at gmail.com
Tue May 29 11:08:40 CEST 2012
On 05/29/2012 05:05 PM, Christoph Hellwig wrote:
> Given that everything else in the object cache uses fcntl locking
> this makes sense.
>
> This just leaves my store locking using lockf, which probably also
> should switch to fcntl locking.
>
> In addition some little helpers to isolate the calling code from using
> struct flock manipulation would be nice.
>
I think of candy helpers for flock manipulation, but didn't get any
better ones than directly call fcntl(). It would be nice if you can come
up with nicer interface.
Thanks,
Yuan
More information about the sheepdog
mailing list