From 9c2570d54afac6bac20bf4fa7cdbeca9fb73c81c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 12 Aug 1997 21:22:26 +0000 Subject: (struct ftpfs): Add FSID & NEXT_INODE fields. (ftpfs_create): Add FSID parameter. --- ftpfs/ftpfs.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ftpfs') 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, -- cgit v1.2.3