aboutsummaryrefslogtreecommitdiff
path: root/ftpfs
Commit message (Collapse)AuthorAgeFilesLines
* ftpfs/Marcus Brinkmann2002-04-203-3/+46
| | | | | | | | | | | | | | | | | | | | | | 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.
* .Roland McGrath2002-03-121-0/+5
|
* 2002-03-11 Roland McGrath <roland@frob.com>Roland McGrath2002-03-121-5/+6
| | | | | * ftpfs.c (parse_startup_opt): If given one argument with no :, use "/" as the remote root.
* .Roland McGrath2001-12-291-0/+5
|
* 2001-12-29 Roland McGrath <roland@frob.com>Roland McGrath2001-12-291-6/+11
| | | | | * netfs.c (netfs_attempt_statfs): Implement this, returning all zeros except for f_type and f_fsid.
* .Roland McGrath2001-12-291-0/+4
|
* 2001-12-22 Roland McGrath <roland@frob.com>Roland McGrath2001-12-291-6/+8
| | | | * fs.c (ftpfs_create): Move braces around to avoid warning.
* auth/Marcus Brinkmann2001-02-122-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * auth.c (main): New variable ARGP defining a doc string. Pass address of ARGP to argp_parse(). exec/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * main.c: Change hurd version name from proc to exec. (main): Add period to doc string. ftpfs/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * ftpfs.c: Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. hostmux/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * hostmux.c: Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. usermux/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * usermux.c (options): Include <version.h>. Add global variable ARGP_PROGRAM_VERSION. Add period to DOC. trans/ 2001-02-12 Marcus Brinkmann <marcus@gnu.org> * fifo.c: Make version string say `fifo', not `null'. Add period to doc text in ARGP. * firmlink.c: Add period to doc text in ARGP_DOC, convert semi-colon to colon. * magic.c (options): Add period to DOC. * new-fifo.c (fifo_trans_parse_args): Add doc string to ARGP. Include <version.h>, new global variable ARGP_PROGRAM_VERSION. * crash.c: Include <version.h>, add global variable ARGP_PROGRAM_VERSION. * hello.c: Include <version.h>, add global variable ARGP_PROGRAM_VERSION. (hello_argp): Add doc string. * hello-mt.c: Likewise. * streamio.c: Add period to DOC. Change streamdev to streamio in version string. * password.c (main): Add period to doc string in ARGP.
* doc/Marcus Brinkmann2001-01-072-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2000-12-21 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-01-072-5/+25
| | | | | | | | | | * 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.
* * Makefile (HURDLIBS): Reorder libs such that the threads libMark Kettenis2000-07-262-2/+9
| | | | | | comes before the ports lib. This makes sure the functions in libthreads properly override the stubs in libports with the new dynamic linker semantics in glibc 2.2.
* 1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-113-5/+18
| | | | | * ccache.c (ccache_read): Use mmap instead of vm_allocate. * netfs.c (get_dirents): Likewise.
* .Roland McGrath1999-07-111-0/+5
|
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-112-2/+4
| | | | | * netfs.c: Add #include <sys/mman.h> for munmap decl. * ccache.c: Likewise.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-033-10/+13
| | | | | | | * ccache.c (ccache_read): Use munmap instead of vm_deallocate. (ccache_invalidate): Likewise. (ccache_free): Likewise. * netfs.c (get_dirents): Likewise.
* Sun Jan 31 18:33:55 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-01-312-6/+24
| | | | | * netfs.c (netfs_attempt_utimes): Implement new possibility that ATIME or MTIME might be null.
* Add braces to silence gcc warnings.Roland McGrath1998-10-204-134/+153
|
* .Roland McGrath1998-09-041-1/+4
|
* 1998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-09-041-9/+9
| | | | * ftpfs.c (netfs_append_args): Use %ld for time_t and %Zu for size_t.
* .Miles Bader1997-09-091-0/+4
|
* (netfs_append_args):Miles Bader1997-09-091-2/+16
| | | | | | | | Fix printed name of --node-cache-size. (parse_runtime_opt): New function. (runtime_argp): Use it.
* .Miles Bader1997-09-091-0/+9
|
* (delete):Miles Bader1997-09-091-1/+4
| | | | Immediately free entries without nodes.
* (ccache_read):Miles Bader1997-08-281-2/+3
| | | | | Always update CC->max to something reasonable after a transfer. Use ports_self_interrupted to check for interrupts.
* .Miles Bader1997-08-281-0/+5
|
* (parse_common_opt):Miles Bader1997-08-281-2/+3
| | | | Turn on debugging when there *aren't* any errors...
* .Miles Bader1997-08-221-0/+12
|
* (netfs_maxsymlinks):Miles Bader1997-08-221-9/+12
| | | | | | Initialize to 12. (parse_common_opt): Release DEBUG_LOCK even if we get an error.
* .Miles Bader1997-08-181-0/+14
|
* (netfs_append_args):Miles Bader1997-08-181-9/+66
| | | | | | | | | | | | | | Print FILE argument to --debug. (debug_stream, debug_stream_name): New variables. (debug_lock): New variable (was local to cntl_debug). (cntl_debug): Print to DEBUG_STREAM. (ftpfs_ftp_hooks): Use ports_self_interrupted to check for interrupts. (parse_common_opt): Accept a FILE argument to --debug.
* .Miles Bader1997-08-181-0/+14
|
* (ftpfs_create):Miles Bader1997-08-181-5/+2
| | | | Use ftpfs_dir_null_lookup instead of ftpfs_dir_lookup.
* (ftpfs_dir_null_lookup):Miles Bader1997-08-181-1/+12
| | | | New declaration.
* (refresh_dir):Miles Bader1997-08-181-8/+81
| | | | | | | | | | | 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.
* (netfs_attempt_mkfile):Miles Bader1997-08-181-0/+2
| | | | Unlock DIR.
* .Miles Bader1997-08-121-0/+10
|
* (update_entry):Miles Bader1997-08-121-4/+4
| | | | | | Set E->stat.st_fsid & st_fstype. (ftpfs_next_inode): Variable removed.
* (struct ftpfs):Miles Bader1997-08-121-1/+7
| | | | | | Add FSID & NEXT_INODE fields. (ftpfs_create): Add FSID parameter.
* (main):Miles Bader1997-08-121-1/+3
| | | | Supply the FSID argument to ftpfs_create.
* (ftpfs_create):Miles Bader1997-08-121-1/+4
| | | | | Add FSID parameter. Initialize FSID & NEXT_INODE fields.
* .Miles Bader1997-08-111-0/+5
|
* (sweep):Miles Bader1997-08-111-1/+7
| | | | | | Don't delete entries that have the NOENT flag set. (refresh_dir): Ensure that there are entries for `.' and `..'.
* .Miles Bader1997-08-091-0/+26
|
* (struct refresh_entry_state):Miles Bader1997-08-091-109/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* (ftpfs_hooks):Miles Bader1997-08-091-1/+1
| | | | Initialize INTERRUPT_CHECK Field.
* (ccache_read):Miles Bader1997-08-091-0/+3
| | | | Check for thread cancelation.
* .Miles Bader1997-08-071-0/+34
|
* (struct ftpfs_dir):Miles Bader1997-08-071-6/+13
| | | | | | | | | | 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.
* (lookup):Miles Bader1997-08-071-61/+108
| | | | | | | | | | | | | | | | | | | | | 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.
* (netfs_append_args):Miles Bader1997-08-071-28/+33
| | | | | | | | | | | | | | | Output --debug. (OPT_DIR_TIMEOUT, OPT_DIRENT_TIMEOUT): Macros removed. (common_options, parse_common_opt, netfs_append_args, main): Replace --dir-timeout & --dirent-timeout by --name-timeout. Add --bulk-stat-period and --bulk-stat-threshold options. (DEFAULT_DIR_TIMEOUT, DEFAULT_DIRENT_TIMEOUT): Macros removed. (OPT_NAME_TIMEOUT): New macro. (DEFAULT_NAME_TIMEOUT): New macro.