summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-12 21:22:26 +0000
committerMiles Bader <miles@gnu.org>1997-08-12 21:22:26 +0000
commit9c2570d54afac6bac20bf4fa7cdbeca9fb73c81c (patch)
tree486d68a9bfc679c69531fd3a7852b396f2036e32
parentaf93995a8b72cf9aecb8be36b0d4a3e0d03cf16e (diff)
(struct ftpfs):
Add FSID & NEXT_INODE fields. (ftpfs_create): Add FSID parameter.
-rw-r--r--ftpfs/ftpfs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ftpfs/ftpfs.h b/ftpfs/ftpfs.h
index a184d077..e518d1f4 100644
--- a/ftpfs/ftpfs.h
+++ b/ftpfs/ftpfs.h
@@ -159,13 +159,19 @@ struct ftpfs
/* Root of filesystem. */
struct node *root;
+ /* A pool of ftp connections for server threads to use. */
struct ftpfs_conn *free_conns;
struct ftpfs_conn *conns;
spin_lock_t conn_lock;
+ /* Parameters for making new ftp connections. */
struct ftp_conn_params *ftp_params;
struct ftp_conn_hooks *ftp_hooks;
+ /* Inode numbers are assigned sequentially in order of creation. */
+ ino_t next_inode;
+ int fsid;
+
/* A hash table mapping inode numbers to directory entries. */
struct ihash *inode_mappings;
spin_lock_t inode_mappings_lock;
@@ -185,7 +191,7 @@ extern volatile struct mapped_time_value *ftpfs_maptime;
({ struct timeval tv; maptime_read (ftpfs_maptime, &tv); tv.tv_sec; })
/* Create a new ftp filesystem with the given parameters. */
-error_t ftpfs_create (char *rmt_root,
+error_t ftpfs_create (char *rmt_root, int fsid,
struct ftp_conn_params *ftp_params,
struct ftp_conn_hooks *ftp_hooks,
struct ftpfs_params *params,