summaryrefslogtreecommitdiff
path: root/ftpfs/dir.c
AgeCommit message (Collapse)Author
2002-10-232002-10-18 Moritz Schulte <moritz@duesseldorf.ccc.de>Roland McGrath
* dir.c (ftpfs_dir_lookup): Initialize NES.entry.
2002-05-132002-05-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (ftpfs_refresh_node): Set NODE->nn_translated appropriately.
2002-04-20ftpfs/Marcus Brinkmann
2002-04-13 Moritz Schulte <moritz@chaosdorf.de> * ftpfs.c: Include <sys/stat.h> (main): Stat the underlying node and initialize the root node's stat information. * dir.c (ftpfs_refresh_node): If refreshing the root node, simply use the old stat information. libftpconn/ 2002-04-13 Moritz Schulte <moritz@chaosdorf.de> * unix.c: Include <libgen.h>. (struct get_stats_state): New member: searched_name. (ftp_conn_unix_start_get_stats): Return EINVAL if trying to list the root node without listing it's content; set searched_name to the dirname. (ftp_conn_unix_cont_get_stats): If searching for the list info of one entry, skip all other entries.
2001-01-07doc/Marcus Brinkmann
2001-01-07 Marcus Brinkmann <marcus@gnu.org> * hurd.texi (Diskfs Callbacks): Make diskfs_dirstat_size const. ext2fs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * dir.c: Make diskfs_dirstat_size const. isofs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * lookup.c: Make diskfs_dirstat_size const. ufs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * dir.c: Make diskfs_dirstat_size const. libdiskfs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * diskfs.h: Make diskfs_dirstat_size const. libdiskfs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * file-statfs.c: Include <string.h>. ftpfs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * dir.c (ftpfs_dir_create): Fix last change (calloc invocation). 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * copy.c: Include <mach.h>. New macro page_aligned. (copy_write): Cast buf to vm_address_t in call to vm_write. Dereference amount for memcpy. (copy_read): Add len parameter to vm_read, remove redundant following len assignment.
2001-01-072000-12-21 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* dir.c (ftpfs_dir_create): New macro INIT_HTABLE_LEN to specify initialize htable_len. New variable htable, allocate memory to it with calloc before acquiring a node reference. If this fails, return any allocated memory and return with ENOMEM. Set new->htable_len to INIT_HTABLE_LEN and new->htable to htable. Don't bzero htable anymore, as we use calloc.
1998-10-20Add braces to silence gcc warnings.Roland McGrath
1997-09-09(delete):Miles Bader
Immediately free entries without nodes.
1997-08-18(refresh_dir):Miles Bader
Add PRESERVE_ENTRY parameter; all callers changed. (ftpfs_refresh_node): Record ENOENT entries. (ftpfs_dir_lookup): Handle "" lookups like ".". Set E's name timestamp for noent entries. (ftpfs_dir_null_lookup): New function.
1997-08-12(update_entry):Miles Bader
Set E->stat.st_fsid & st_fstype. (ftpfs_next_inode): Variable removed.
1997-08-11(sweep):Miles Bader
Don't delete entries that have the NOENT flag set. (refresh_dir): Ensure that there are entries for `.' and `..'.
1997-08-09(struct refresh_entry_state):Miles Bader
DIR_PFX & DIR_PFX_LEN fields removed. (ftpfs_dir_lookup, ftpfs_refresh_node): Use ftp_conn_append_name instead of path_append. Don't set dir_pfx fields in RES anymore. (lookup): Grow the hash table when it gets large. (update_old_entry): Don't futz with NAME anymore. (path_append): Macro removed. (update_new_entry): Don't futz with NAME anymore. (struct new_entry_state): DIR_PFX & DIR_PFX_LEN fields removed. (struct dir_fetch_state): Replace PREV_ENTRY by PREV_ENTRY_NEXT_P. (update_ordered_entry): Correctly handle a non-empty list. Only insert E in the ordered entry list if it's not already there. (rehash): Zero the new hash table. (refresh_dir): Don't clear the ordered entry list. Only reset bulk stat detection state if actually doing a bulk stat. Initialize DFS.prev_entry_next_p instead of DFS.prev_entry.
1997-08-07(lookup):Miles Bader
Initialize timestamps. (update_ordered_name): New function. (ftpfs_dir_lookup): dirent_timeout parameter renamed to name_timeout and dirent_timestamp field renamed to name_timestamp. (update_entry): Allow ST to be zero. Don't leak memory when updating symlink info. Change return type to void. Remove NO_LOCK parameter. (update_ordered_entry, update_old_entry, update_new_entry): Update calls to update_entry. (refresh_dir): Add UPDATE_STATS parameter, and only fetch names if it's zero. Update new timestamps. (ftpfs_dir_refresh, ftpfs_refresh_node, ftpfs_dir_lookup): Supply UPDATE_STATS argument to refresh_dir.
1997-08-06(lookup):Miles Bader
Initialize the NODE field.
1997-08-06Initial checkinMiles Bader