CDEBUG(D_OTHER, "forward to MDS #"LPU64" ("DFID")\n",
mds, PFID(&op_data->fid1));
+ op_data->fsuid = current->fsuid;
+ op_data->fsgid = current->fsgid;
rc = md_link(lmv->tgts[mds].ltd_exp, op_data, request);
RETURN(rc);
PFID(&op_data->fid1), oldlen, old, PFID(&op_data->fid2),
newlen, new);
}
-
+ op_data->fsuid = current->fsuid;
+ op_data->fsgid = current->fsgid;
rc = md_rename(lmv->tgts[mds].ltd_exp, op_data, old, oldlen,
new, newlen, request);
RETURN(rc);
memset(op_data2, 0, sizeof(*op_data2));
op_data2->fid1 = mea->mea_ids[i];
op_data2->create_mode = MDS_MODE_DONT_LOCK | S_IFDIR;
-
+ op_data2->fsuid = current->fsuid;
+ op_data2->fsgid = current->fsgid;
tgt_exp = lmv_get_export(lmv, &op_data2->fid1);
if (IS_ERR(tgt_exp))
GOTO(out_free_op_data2, rc = PTR_ERR(tgt_exp));
tgt_exp = lmv_get_export(lmv, &op_data->fid1);
if (IS_ERR(tgt_exp))
RETURN(PTR_ERR(tgt_exp));
-
+ op_data->fsuid = current->fsuid;
+ op_data->fsgid = current->fsgid;
rc = md_unlink(tgt_exp, op_data, request);
RETURN(rc);
}
LASSERT (rec != NULL);
rec->ul_opcode = REINT_UNLINK;
- rec->ul_fsuid = current->fsuid;
- rec->ul_fsgid = current->fsgid;
+ rec->ul_fsuid = op_data->fsuid;//current->fsuid;
+ rec->ul_fsgid = op_data->fsgid;//current->fsgid;
rec->ul_cap = current->cap_effective;
rec->ul_mode = op_data->create_mode;
rec->ul_suppgid = op_data->suppgids[0];
rec = lustre_msg_buf(req->rq_reqmsg, offset, sizeof (*rec));
rec->lk_opcode = REINT_LINK;
- rec->lk_fsuid = current->fsuid;
- rec->lk_fsgid = current->fsgid;
+ rec->lk_fsuid = op_data->fsuid;//current->fsuid;
+ rec->lk_fsgid = op_data->fsgid;//current->fsgid;
rec->lk_cap = current->cap_effective;
rec->lk_suppgid1 = op_data->suppgids[0];
rec->lk_suppgid2 = op_data->suppgids[1];
/* XXX do something about time, uid, gid */
rec->rn_opcode = REINT_RENAME;
- rec->rn_fsuid = current->fsuid;
- rec->rn_fsgid = current->fsgid;
+ rec->rn_fsuid = op_data->fsuid;//current->fsuid;
+ rec->rn_fsgid = op_data->fsgid;//current->fsgid;
rec->rn_cap = current->cap_effective;
rec->rn_suppgid1 = op_data->suppgids[0];
rec->rn_suppgid2 = op_data->suppgids[1];