From 64c5855edb23cbb3ae6e1b0a50130515a490d049 Mon Sep 17 00:00:00 2001 From: braam Date: Wed, 29 Jan 2003 06:39:51 +0000 Subject: [PATCH] - fill in ea in mds open when file exists. --- lustre/mds/mds_open.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 43fcd31..d342321 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -163,6 +163,13 @@ int mds_open(struct mds_update_record *rec, int offset, if (!S_ISREG(dchild->d_inode->i_mode)) GOTO(out_ldput, rc = 0); + rc = mds_pack_md(obd, req->rq_repmsg, 3, body, dchild->d_inode); + if (rc) { + CERROR("failure to get EA for %ld\n", + dchild->d_inode->i_ino); + GOTO(out_ldput, req->rq_status = rc); + } + rep->lock_policy_res1 |= IT_OPEN_OPEN; mfd = kmem_cache_alloc(mds_file_cache, GFP_KERNEL); if (!mfd) { -- 1.8.3.1