From 20b4acc0835d87604007645f0f2070a6fedbfcfb Mon Sep 17 00:00:00 2001 From: nikita Date: Fri, 7 Jul 2006 11:34:51 +0000 Subject: [PATCH] osd_object_exists(): return strictly 0,1 rather then false/true --- lustre/osd/osd_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index 75992a7..4dbfc27 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -347,7 +347,7 @@ static int osd_object_exists(const struct lu_context *ctx, const struct lu_object *o) { LASSERT(osd_invariant(osd_obj(o))); - return osd_obj(o)->oo_inode != NULL; + return !!(osd_obj(o)->oo_inode != NULL); } static int osd_object_print(const struct lu_context *ctx, @@ -770,7 +770,7 @@ int osd_xattr_get(const struct lu_context *ctxt, struct dt_object *dt, } int osd_xattr_set(const struct lu_context *ctxt, struct dt_object *dt, - const void *buf, int buf_len, const char *name, + const void *buf, int buf_len, const char *name, struct thandle *handle) { return 0; -- 1.8.3.1