ENTRY;
err = mdc_create(&sbi->ll_mds_client, sbi->ll_mds_conn, dir, name,
- namelen, tgt, tgtlen, mode, id, current->uid,
- current->gid, time, &request);
+ namelen, tgt, tgtlen, mode, id, current->fsuid,
+ current->fsgid, time, &request);
if (err) {
inode = ERR_PTR(err);
GOTO(out, err);
body->objid = id;
body->nlink = 1;
body->atime = body->ctime = body->mtime = time;
+ body->uid = current->fsuid;
+ body->gid = current->fsgid;
body->mode = mode;
CDEBUG(D_INODE, "-- new_inode: objid %lld, ino %d, mode %o\n",
(unsigned long long)body->objid, body->ino, body->mode);
rc = PtlPut(md_h, ack, remote_id, portal, 0, request->rq_reqmsg->xid,
0, 0);
if (rc != PTL_OK) {
- CERROR("PtlPut(%d, %d, %Ld) failed: %d\n", remote_id.nid,
+ CERROR("PtlPut(%Lu, %d, %Ld) failed: %d\n", remote_id.nid,
portal, request->rq_xid, rc);
PtlMDUnlink(md_h);
}
rc = PtlPut(bulk->b_md_h, (ack ? PTL_ACK_REQ : PTL_NOACK_REQ),
remote_id, desc->b_portal, 0, bulk->b_xid, 0, 0);
if (rc != PTL_OK) {
- CERROR("PtlPut(%d, %d, %d) failed: %d\n", remote_id.nid,
+ CERROR("PtlPut(%Lu, %d, %d) failed: %d\n", remote_id.nid,
desc->b_portal, bulk->b_xid, rc);
PtlMDUnlink(bulk->b_md_h);
LBUG();