Whamcloud - gitweb
- Fixed problem where all files were owned by root
authorpschwan <pschwan>
Thu, 23 May 2002 18:28:48 +0000 (18:28 +0000)
committerpschwan <pschwan>
Thu, 23 May 2002 18:28:48 +0000 (18:28 +0000)
- Fixed a couple warnings that fell out of the Portals changes

lustre/llite/namei.c
lustre/ptlrpc/niobuf.c

index e6e1307..095f0e5 100644 (file)
@@ -142,8 +142,8 @@ static struct inode *ll_create_node(struct inode *dir, const char *name,
         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);
@@ -154,6 +154,8 @@ static struct inode *ll_create_node(struct inode *dir, const char *name,
         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); 
index 5fc28f9..b462587 100644 (file)
@@ -95,7 +95,7 @@ static int ptl_send_buf(struct ptlrpc_request *request,
         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);
         }
@@ -140,7 +140,7 @@ int ptlrpc_send_bulk(struct ptlrpc_bulk_desc *desc)
                 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();