From 02713c03c22547a513c30e080bad2c0593023bfc Mon Sep 17 00:00:00 2001 From: tappro Date: Tue, 20 Jun 2006 09:22:55 +0000 Subject: [PATCH] mkreg stub in osd for 'open_handling' proto --- 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 b6520fd..b4af5d0 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -511,7 +511,7 @@ static int osd_mkreg(struct osd_thread_info *info, struct osd_object *obj, struct dentry *dentry; LASSERT(obj->oo_inode == NULL); - LASSERT(S_ISDIR(attr->la_mode)); + LASSERT(S_ISREG(attr->la_mode)); LASSERT(osd->od_obj_area != NULL); dir = osd->od_obj_area->d_inode; @@ -932,7 +932,7 @@ static int osd_add_rec(struct osd_thread_info *info, struct osd_device *dev, if (parent != NULL) { new = d_alloc(parent, &info->oti_str); if (new != NULL) { - result = inode->i_op->link(old, dir, new); + result = dir->i_op->link(old, dir, new); dput(new); } dput(parent); -- 1.8.3.1