From 09d60d4145058c1b4e34b00da430c6e0e783f2e3 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 7 Aug 1997 20:09:46 +0000 Subject: (struct ftpfs_dir): timestamp renamed to stat_timestamp. Add name_timestamp field. (struct ftpfs_params): Remove dirent_timeout and dir_timeout fields. Add name_timeout field. (struct ftpfs_dir_entry): dirent_timestamp renamed to name_timestamp. --- ftpfs/ftpfs.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'ftpfs') diff --git a/ftpfs/ftpfs.h b/ftpfs/ftpfs.h index 3cf2c0e0..a184d077 100644 --- a/ftpfs/ftpfs.h +++ b/ftpfs/ftpfs.h @@ -56,7 +56,7 @@ struct ftpfs_dir_entry struct ftpfs_dir_entry *ordered_next, **ordered_self_p; /* When the presence/absence of this file was last checked. */ - time_t dirent_timestamp; + time_t name_timestamp; void **inode_locp; /* Used for removing this entry */ @@ -92,7 +92,8 @@ struct ftpfs_dir /* The path to this directory on the server. */ const char *rmt_path; - time_t timestamp; + time_t stat_timestamp; + time_t name_timestamp; /* Stuff for detecting bulk stats. */ @@ -134,15 +135,21 @@ struct netnode }; /* Various parameters that can be used to change the behavior of an ftpfs. */ -struct ftpfs_params +struct ftpfs_params { - time_t dir_timeout; - time_t dirent_timeout; + /* Amount of time name existance is cached. */ + time_t name_timeout; + + /* Amount of time stat information is cached. */ time_t stat_timeout; + /* Parameters for detecting bulk stats; if more than BULK_STAT_THRESHOLD + stats are done within BULK_STAT_PERIOD seconds, the whole enclosing + directory is fetched. */ time_t bulk_stat_period; - unsigned bulk_stat_limit; + unsigned bulk_stat_threshold; + /* The size of the node cache. */ size_t node_cache_max; }; -- cgit v1.2.3