[sheepdog] [PATCH RFC 4/5] sheep: replace open() with retry_open()
Liu Yuan
namei.unix at gmail.com
Wed Jul 17 10:57:58 CEST 2013
On Fri, Jul 12, 2013 at 10:54:25AM +0900, Hitoshi Mitake wrote:
> This patch replaces some important calling of open() with
> retry_open().
>
> Current retry_open() simply retries open() twice. This policy must be
> improved in the future.
>
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
> sheep/md.c | 2 +-
> sheep/object_cache.c | 8 ++++----
> sheep/plain_store.c | 6 +++---
> sheep/store.c | 2 +-
> 4 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/sheep/md.c b/sheep/md.c
> index 5ee3339..cfd2adb 100644
> --- a/sheep/md.c
> +++ b/sheep/md.c
> @@ -497,7 +497,7 @@ static int md_move_object(uint64_t oid, char *old, char *new)
> int fd, ret = -1;
> size_t sz = get_objsize(oid);
>
> - fd = open(old, O_RDONLY);
> + fd = retry_open(old, O_RDONLY);
I'd like to call it xopen()
Thanks
Yuan
More information about the sheepdog
mailing list