Update of /cvsroot/libsysio/libsysio/include
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10952/include
Modified Files:
mount.h
Log Message:
All the drivers, in their mount routines, do something like:
rootpb = _sysio_pb_new(&noname, NULL, rootino);
err = _sysio_do_mount(..., rootpb, ...);
This is clumsy. Crafted a convenience function called _sysio_mounti to
do this for them. This simplifies the whole process a bit. Don't have to
clean up the root pb node on error, for instance.
The function is called exactly like _sysio_do_mount but with a ptr
to the root inode instead of a ptr to the root pb node.
Index: mount.h
===================================================================
RCS file: /cvsroot/libsysio/libsysio/include/mount.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -b -B -p -r1.4 -r1.5
--- mount.h 14 Feb 2004 19:42:58 -0000 1.4
+++ mount.h 24 Sep 2007 19:00:03 -0000 1.5
@@ -74,6 +74,7 @@ extern struct qstr _sysio_mount_file_nam
#endif
struct pnode_base;
+struct inode;
extern int _sysio_mount_init(void);
extern int _sysio_do_mount(struct filesys *fs,
@@ -81,6 +82,11 @@ extern int _sysio_do_mount(struct filesy
unsigned flags,
struct pnode *tocover,
struct mount **mntp);
+extern int _sysio_mounti(struct filesys *fs,
+ struct inode *rootino,
+ unsigned flags,
+ struct pnode *tocover,
+ struct mount **mntp);
extern int _sysio_do_unmount(struct mount *fs);
extern int _sysio_mount_root(const char *source,
const char *type,
|