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

List:       intermezzo-cvs
Subject:    CVS: intermezzo/presto24/linux intermezzo_fs.h,1.20,1.21 intermezzo_upcall.h,1.3,1.4
From:       Phil Schwan <pschwan () users ! sourceforge ! net>
Date:       2001-09-20 15:43:22
[Download RAW message or body]

Update of /cvsroot/intermezzo/intermezzo/presto24/linux
In directory usw-pr-cvs1:/tmp/cvs-serv17996/linux

Modified Files:
	intermezzo_fs.h intermezzo_upcall.h 
Log Message:
Summary:
Changes related to data-on-demand.  Adds a flag to the fileset to indicate
whether DOD is enabled; if so, when opening a sparse file, trigger an
open_file upcall.

file.c:
- presto_open_upcall: added fset_name to the upcall arguments
- presto_file_open: trigger the upcall for sparse files when in DOD mode

journal_ext2.c:
- added a stub for presto_e2_has_all_data; this function can probably be
exactly the same as presto_e3_has_all_data

journal_ext3.c:
- added presto_e3_has_all_data, which takes into account indirect blocks

journal_reiserfs.c:
journal_xfs.c:
- added has_all_data stubs

presto.c:
- removed broken presto_has_all_data

upcall.c:
- lento_open: added fsetname,fsetnamelen to the list of upcall arguments

intermezzo_fs.h:
- added tr_all_data to journal_ops
- removed presto_has_all_data prototype
- added FSET_DATA_ON_DEMAND flag

intermezzo_upcall.h:
- fixed up structures for aforementioned upcall argument changes


Index: intermezzo_fs.h
===================================================================
RCS file: /cvsroot/intermezzo/intermezzo/presto24/linux/intermezzo_fs.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -U2 -r1.20 -r1.21
--- intermezzo_fs.h	2001/09/11 18:25:54	1.20
+++ intermezzo_fs.h	2001/09/20 15:43:20	1.21
@@ -144,4 +144,5 @@
 
 struct journal_ops {
+        int (*tr_all_data)(struct inode *);
         loff_t (*tr_avail)(struct presto_cache *fset, struct super_block *);
         void *(*tr_start)(struct presto_file_set *, struct inode *, int op);
@@ -268,5 +269,4 @@
 int presto_set_fsetroot(char *path, char *fsetname, unsigned int fsetid,
                        unsigned int flags);
-int presto_has_all_data(struct inode *inode);
 inline int presto_is_read_only(struct presto_file_set *);
 int presto_truncate_lml(struct presto_file_set *fset);
@@ -599,5 +599,5 @@
 #define FSET_STEAL_PERMIT 0x00000020 /* take permit if Lento is dead */
 #define FSET_JCLOSE_ON_WRITE 0x00000040 /* Journal closes on writes */
-
+#define FSET_DATA_ON_DEMAND 0x00000080 /* update data on file_open() */
 
 /* what to mark indicator (ioctl parameter) */ 

Index: intermezzo_upcall.h
===================================================================
RCS file: /cvsroot/intermezzo/intermezzo/presto24/linux/intermezzo_upcall.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -U2 -r1.3 -r1.4
--- intermezzo_upcall.h	2001/05/07 16:31:38	1.3
+++ intermezzo_upcall.h	2001/09/20 15:43:20	1.4
@@ -18,5 +18,5 @@
               unsigned int length, unsigned int last_recno, int namelen,
               char *fsetname);
-int lento_open(int minor, int pathlen, char *path);
+int lento_open(int minor, int pathlen, int fsetnamelen, char *path, char *fset);
 int lento_journal(int minor, char *page, int async);
 int lento_release_permit(int minor, int cookie);
@@ -93,5 +93,7 @@
         struct lento_up_hdr uh;
         int pathlen;
+        int fsetnamelen;
         char path[0];
+        char fsetname[0];
 };
 struct lento_open_out {
@@ -144,3 +146,2 @@
                  struct upc_req *rq );
 #endif 
-


_______________________________________________
intermezzo-commit mailing list
intermezzo-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/intermezzo-commit

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

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