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

List:       lustre-cvs
Subject:    [Lustre-cvs] CVS: obd/lib mds_updates.c,1.11.2.1,1.11.2.2 simple.c,1.3.2.1,1.3.2.2
From:       Phil Schwan <pschwan () users ! sourceforge ! net>
Date:       2002-04-29 21:49:06
[Download RAW message or body]

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

Modified Files:
      Tag: ldlm_testing
	mds_updates.c simple.c 
Log Message:
Moving the last few days' changes to the ldlm_testing branch.


Index: mds_updates.c
===================================================================
RCS file: /cvsroot/lustre/obd/lib/mds_updates.c,v
retrieving revision 1.11.2.1
retrieving revision 1.11.2.2
diff -u -r1.11.2.1 -r1.11.2.2
--- mds_updates.c	22 Apr 2002 15:13:07 -0000	1.11.2.1
+++ mds_updates.c	29 Apr 2002 21:49:03 -0000	1.11.2.2
@@ -65,6 +65,7 @@
         b->ino = HTON__u32(b->ino);
         b->nlink = HTON__u32(b->nlink);
         b->generation = HTON__u32(b->generation);
+        b->last_xid = HTON__u32(b->last_xid);
 }
 
 void mds_pack_req_body(struct ptlrpc_request *req) 
@@ -165,6 +166,7 @@
         b->ino = NTOH__u32(b->ino);
         b->nlink = NTOH__u32(b->nlink);
         b->generation = NTOH__u32(b->generation);
+        b->last_xid = NTOH__u32(b->last_xid);
 }
 
 

Index: simple.c
===================================================================
RCS file: /cvsroot/lustre/obd/lib/simple.c,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -u -r1.3.2.1 -r1.3.2.2
--- simple.c	24 Apr 2002 20:00:40 -0000	1.3.2.1
+++ simple.c	29 Apr 2002 21:49:04 -0000	1.3.2.2
@@ -71,18 +71,26 @@
 int lustre_fread(struct file *file, char *str, int len, loff_t *off)
 {
 	if (!file || !file->f_op || !file->f_op->read || !off)
-		RETURN(-EINVAL);
+		RETURN(-ENOSYS);
 
 	return file->f_op->read(file, str, len, off);
 }
 
 int lustre_fwrite(struct file *file, const char *str, int len, loff_t *off)
 {
-	if (!file || !file->f_op || !file->f_op->write || !off)
-		RETURN(-EINVAL);
+	if (!file || !file->f_op || !off)
+		RETURN(-ENOSYS);
 
 	if (!file->f_op->write)
 		RETURN(-EROFS);
 
 	return file->f_op->write(file, str, len, off);
+}
+
+int lustre_fsync(struct file *file)
+{
+	if (!file || !file->f_op || !file->f_op->fsync)
+		RETURN(-ENOSYS);
+
+	return file->f_op->fsync(file, file->f_dentry, 0);
 }


_______________________________________________
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