From: nikita Date: Fri, 4 Aug 2006 12:37:35 +0000 (+0000) Subject: osd: fix typo X-Git-Tag: v1_8_0_110~486^2~1280 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=df258aca63d1573669c11e328a9e07395be46866;p=fs%2Flustre-release.git osd: fix typo --- diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index 8995e85..9add481 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -697,7 +697,7 @@ static int osd_mkdir(struct osd_thread_info *info, struct osd_object *obj, oth = container_of0(th, struct osd_thandle, ot_super); LASSERT(S_ISDIR(attr->la_mode)); - result = osd_mkfile(info, obj, (attr->la_mode & + result = osd_mkfile(info, obj, (attr->la_mode & (S_IFMT | S_IRWXUGO | S_ISVTX)), th); if (result == 0) { LASSERT(obj->oo_inode != NULL); @@ -715,7 +715,7 @@ static int osd_mkreg(struct osd_thread_info *info, struct osd_object *obj, struct lu_attr *attr, struct thandle *th) { LASSERT(S_ISREG(attr->la_mode)); - return osd_mkfile(info, obj, (attr->la_mode & + return osd_mkfile(info, obj, (attr->la_mode & (S_IFMT | S_IRWXUGO | S_ISVTX)), th); } @@ -723,7 +723,7 @@ static int osd_mksym(struct osd_thread_info *info, struct osd_object *obj, struct lu_attr *attr, struct thandle *th) { LASSERT(S_ISLNK(attr->la_mode)); - return osd_mkfile(info, obj, (attr->la_mode & + return osd_mkfile(info, obj, (attr->la_mode & (S_IFMT | S_IRWXUGO | S_ISVTX)), th); } @@ -877,7 +877,7 @@ static void osd_object_ref_del(const struct lu_context *ctxt, mark_inode_dirty(inode); } else LU_OBJECT_DEBUG(D_ERROR, ctxt, &dt->do_lu, - "Overflowed nlink\n"); + "Underflowed nlink\n"); LASSERT(osd_invariant(obj)); }