[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lustre-cvs
Subject:    [Lustre-cvs] CVS: lustre/lib mds_updates.c,1.27,1.28
From:       Andreas Dilger <adilger () users ! sourceforge ! net>
Date:       2002-10-31 5:30:13
[Download RAW message or body]

Update of /cvsroot/lustre/lustre/lib
In directory usw-pr-cvs1:/tmp/cvs-serv4904/lib

Modified Files:
	mds_updates.c 
Log Message:
Minor update to mds_create_pack(): use "dir" instead of "inode" so that it
is clear what we are packing into the cr_fid.


Index: mds_updates.c
===================================================================
RCS file: /cvsroot/lustre/lustre/lib/mds_updates.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -w -b -B -p -r1.27 -r1.28
--- mds_updates.c	23 Oct 2002 18:57:30 -0000	1.27
+++ mds_updates.c	31 Oct 2002 05:30:10 -0000	1.28
@@ -63,8 +63,7 @@ void mds_pack_inode2body(struct mds_body
         b->uid = HTON__u32(inode->i_uid);
         b->gid = HTON__u32(inode->i_gid);
         b->flags = HTON__u32(inode->i_flags);
-        //b->major = HTON__u32(inode->i_major);
-        //b->minor = HTON__u32(inode->i_minor);
+        b->rdev = HTON__u32(b->rdev);
         b->nlink = HTON__u32(inode->i_nlink);
         b->generation = HTON__u32(inode->i_generation);
 }
@@ -133,7 +132,7 @@ void mds_pack_rep_body(struct ptlrpc_req
 
 /* packing of MDS records */
 void mds_create_pack(struct ptlrpc_request *req, int offset,
-                     struct inode *inode, __u32 mode, __u64 rdev, __u32 uid,
+                     struct inode *dir, __u32 mode, __u64 rdev, __u32 uid,
                      __u32 gid, __u64 time, const char *name, int namelen,
                      const char *tgt, int tgtlen)
 {
@@ -145,7 +144,7 @@ void mds_create_pack(struct ptlrpc_reque
         rec->cr_opcode = HTON__u32(REINT_CREATE);
         rec->cr_fsuid = HTON__u32(current->fsuid);
         rec->cr_fsgid = HTON__u32(current->fsgid);
-        ll_inode2fid(&rec->cr_fid, inode);
+        ll_inode2fid(&rec->cr_fid, dir);
         rec->cr_mode = HTON__u32(mode);
         rec->cr_rdev = HTON__u64(rdev);
         rec->cr_uid = HTON__u32(uid);



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Lustre-cvs mailing list
Lustre-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lustre-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic