From 72da2dcafeafbcfbe34ff972b0bab27361580c6b Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 7 Aug 2005 14:22:58 +0000 Subject: [PATCH] - don't pass pid in case of slave creation. checking for non-zero fid is a wrong practice --- lustre/mds/handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 8308adb..e807ae8 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -2577,7 +2577,8 @@ repeat: mds_inode2id(obd, &id, new->d_inode, fid); mds_update_inode_ids(obd, new->d_inode, handle, &id, - obdo_id(&body->oa)); + body->oa.o_valid & OBD_MD_FLID ? + NULL : obdo_id(&body->oa)); /* initializing o_fid after it is allocated. */ repbody->oa.o_fid = id_fid(&id); -- 1.8.3.1