Age | Commit message (Collapse) | Author |
|
* io-identity.c (netfs_S_io_identity): Use ino_t for FILENO.
|
|
* netfs.h (struct node): Use io_statbuf_t instead of struct stat.
(netfs_attempt_statfs): Use fsys_statfsbuf_t instead of struct statfs.
(struct peropen): Use loff_t instead of off_t.
(netfs_attempt_read, netfs_attempt_write): Likewise.
(netfs_attempt_set_size, netfs_file_get_storage_info): Likewise.
|
|
* io-read.c (netfs_S_io_read): If desired amount is larger than
symlink length, truncate amount. Actually use WHOLE_LINK to store
link target temporarily. When reading the link target directly,
update *DATALEN.
|
|
|
|
* netfs.h (struct node): New member `nn_translated'.
* dir-lookup.c (netfs_S_dir_lookup): Examine that in place of
nn_stat.st_mode to decide if there is a passive translator.
|
|
there when I did a last minute check with emacs, blech.
|
|
2002-05-13 Marcus Brinkmann <marcus@gnu.org>
* io-version.c: New file.
* Makefile (IOSRCS): Add io-version.c.
* fsstubs.c (netfs_S_io_server_version): Function removed.
* netfs.h (netfs_server_name, netfs_server_version): New external
variables to be defined by the user.
ftpfs/
2002-05-13 Marcus Brinkmann <marcus@gnu.org>
* ftpfs.c (netfs_server_name, netfs_server_version): New
variables.
hostmux/
2002-05-13 Marcus Brinkmann <marcus@gnu.org>
* hostmux.c (netfs_server_name, netfs_server_version): New
variables.
nfs/
2002-05-13 Marcus Brinkmann <marcus@gnu.org>
* main.c: Include <version.h>.
(netfs_server_name, netfs_server_version, argp_program_version):
New variables.
trans/
2002-05-13 Marcus Brinkmann <marcus@gnu.org>
* fakeroot.c (netfs_server_name, netfs_server_version): New
variables.
usermux/
2002-05-13 Marcus Brinkmann <marcus@gnu.org>
* usermux.c (netfs_server_name, netfs_server_version): New
variables.
|
|
|
|
* trans-callback.c (_netfs_translator_callback1_fn): Add an assert
that netfs_get_translator not fail with EOPNOTSUPP.
|
|
|
|
* fsys-getroot.c (netfs_S_fsys_getroot): Fix arg type in decl.
* append-std-options.c (netfs_append_std_options): Likewise.
|
|
* file-exec.c (netfs_S_file_exec): u_int -> size_t in decl.
* netfs.h (netfs_append_args): unsigned -> size_t in decl.
|
|
|
|
* io-restrict-auth.c (netfs_S_io_restrict_auth): Use
iohelp_restrict_iouser.
|
|
|
|
* init-startup (netfs_startup): Use err, not errno.
|
|
Reported by Alfred M. Szmidt <ams@kemisten.nu>.
|
|
|
|
* priv.h (begin_using_protid_port): Change extern inline decl
into static inline with __attribute__ ((unused))
(end_using_protid_port): Likewise.
|
|
* file-get-translator.c (netfs_S_file_get_translator): If
asprintf() fails, set ERR to errno.
* dir-lookup.c (netfs_S_dir_lookup): Catch if asprintf() fails and
return ENOMEM. If netfs_make_protid() fails, set ERROR to errno,
not ENOMEM. Do this before freeing USER.
* dir-mkfile.c (netfs_S_dir_mkfile): If netfs_make_protid() fails,
set ERROR to errno and free USER.
* file-exec.c (netfs_S_file_exec): Likewise.
Reported by Igor Khavkine <i_khavki@alcor.concordia.ca>.
|
|
|
|
* file-getcontrol.c (netfs_S_file_getcontrol): When checking if
we can give the control port out, use fshelp_iscontroller rather
than doing the check by hand.
|
|
|
|
* dir-lookup.c (netfs_S_dir_lookup): Use
iohelp_create_empty_iouser. Use iohelp_dup_iouser
as per the new semantics.
* dir-mkfile.c (netfs_S_dir_mkfile): Use iohelp_dup_iouser
as per the new semantics.
* file-exec.c (netfs_S_file_exec): Likewise.
* file-reparent.c (netfs_S_file_reparent): Likewise.
* fsys-getroot.c (netfs_S_fsys_getroot): Use
iohelp_create_complex_iouser.
* fsys-syncfs.c (netfs_S_fsys_syncfs): Use
iohelp_create_simple_iouser.
* io-duplicate.c (netfs_S_io_duplicate): Use iohelp_dup_iouser
as per the new semantics.
* io-reauthenticate.c (netfs_S_io_reauthenticate): Use
iohelp_reauth as per the new semantics.
* io-restrict-auth.c (netfs_S_io_restrict_auth): Use
iohelp_create_complex_iouser. Check return values.
* trans-callback.c (_netfs_transcallback2_fn): Use
iohelp_create_simple_iouser.
|
|
|
|
* dir-lookup.c (netfs_S_dir_lookup): Use
iohelp_create_empty_iouser. Use iohelp_dup_iouser
as per the new semantics.
* dir-mkfile.c (netfs_S_dir_mkfile): Use iohelp_dup_iouser
as per the new semantics.
* file-exec.c (netfs_S_file_exec): Likewise.
* file-reparent.c (netfs_S_file_reparent): Likewise.
* fsys-getroot.c (netfs_S_fsys_getroot): Use
iohelp_create_complex_iouser.
* fsys-syncfs.c (netfs_S_fsys_syncfs): Use
iohelp_create_simple_iouser.
* io-duplicate.c (netfs_S_io_duplicate): Use iohelp_dup_iouser
as per the new semantics.
* io-reauthenticate.c (netfs_S_io_reauthenticate): Use
iohelp_reauth as per the new semantics.
* io-restric-auth.c (netfs_S_io_restric_auth): Use
iohelp_create_complex_iouser. Check return values.
* trans-callback.c (_netfs_transcallback2_fn): Use
iohelp_create_simple_iouser.
|
|
|
|
* file-set-translator.c (netfs_S_file_set_translator): If
FS_TRANS_ORPHAN is set, do not ask the active translator to go
away, just disconnect it.
|
|
|
|
* Makefile (FSYSSRCS): Add fsys-goaway.c.
* fsys-goaway.c: Don't include "priv.h" here.
|
|
|
|
* fsys-goaway.c (netfs_S_fsys_goaway): Actually implement it.
* shutdown.c (netfs_attempt_shutdown): Likewise.
|
|
* Makefile (fsys-MIGSFLAGS): Add -DREPLY_PORTS, which we want for
netfs_S_fsys_goaway.
* fsys-get-options.c (netfs_S_fsys_getoptions): Add reply port
arguments to declaration.
* fsys-getroot.c (netfs_S_fsys_getroot): Likewise.
* fsys-goaway.c (netfs_S_fsys_goaway): Likewise.
* fsys-set-options.c (netfs_S_fsys_set_options): Likewise.
* fsys-syncfs.c (netfs_S_fsys_syncfs): Likewise.
* fsysstubs.c (netfs_S_fsys_getfile): Likewise.
(netfs_S_fsys_getpriv): Likewise.
(netfs_S_fsys_forward): Likewise.
(netfs_S_fsys_startup): Likewise.
|
|
* Makefile (fsys-MIGSFLAGS): Add -DREPLY_PORTS, which we want for
netfs_S_fsys_goaway.
* fsys-get-options.c (netfs_S_fsys_getoptions): Add reply port
arguments to declaration.
* fsys-getroot.c (netfs_S_fsys_getroot): Likewise.
* fsys-goaway.c (netfs_S_fsys_goaway): Likewise.
* fsys-set-options.c (netfs_S_fsys_set_options): Likewise.
* fsys-syncfs.c (netfs_S_fsys_syncfs): Likewise.
* fsysstubs.c (netfs_S_fsys_getfile): Likewise.
(netfs_S_fsys_getpriv): Likewise.
(netfs_S_fsys_forward): Likewise.
(netfs_S_fsys_startup): Likewise.
* Makefile (MIGSTUBS): Add fsys_replyUser.o.
|
|
* netfs.h: Added netfs_get_storage_info.
* file-get-storage-info.c (netfs_S_get_storage_info): Calls
netfs_get_storage_info instead of providing default response.
* file-get-storage-info-default.c: New file.
(netfs_get_storage_info): Provides default response.
|
|
* netfs.h: Added netfs_get_storage_info.
* file-get-storage-info.c (netfs_S_get_storage_info): Calls
netfs_get_storage_info instead of providing default response.
* file-get-storage-info-default.c: New file.
(netfs_get_storage_info): Provides default response.
|
|
* netfs.h: Fix comment for netfs_nref (finally).
|
|
* netfs.h: Documentation fixes.
|
|
2000-12-30 Marcus Brinkmann <marcus@gnu.org>
* netfs.h: Revert doc "fix" of netfs_attempt_chmod.
|
|
* netfs.h: Merge Neals words into documentation of netfs_nput,
netfs_nrele, netfs_nref.
|
|
|
|
* netfs.h (struct node): Adjust comment fixes by last change
to be more in line with similar comments elsewhere.
* make-node.c (netfs_make_node): Return 0 if malloc does.
Reported by Neal H Walfield <neal@cs.uml.edu>.
2000-12-29 Neal H Walfield <neal@cs.uml.edu>
* dir-lookup.c (netfs_S_dir_lookup): Do not bother zeroing np, it
happens later anyway. Replace bcopy with memcpy.
* file-get-translator.c (netfs_S_file_get_translator): Replace
bcopy with memcpy.
* io-seek.c (netfs_S_io_seek): Only get the lock if we need it.
* io-stat.c (netfs_S_io_stat): Replace bcopy with memcpy.
* io-write.c (netfs_S_io_write): Wait until the lock is needed.
* netfs.h: Complete documentation revision. The locking protocol
is now very explicit.
* nput.c (netfs_nput): Added comment.
* nrele.c (netfs_nrele): Likewise.
* set-get-trans.c: Likewise.
|
|
|
|
* file-exec.c (netfs_S_file_exec): Fix typo and braino in last change.
|
|
* file-exec.c (netfs_S_file_exec): Don't use MAKE_SEND in Hurd
RPC.
* init-startup.c (netfs_startup): Likewise.
|
|
|
|
* io-reauthenticate.c (netfs_S_io_reauthenticate): Use
ports_get_send_right.
|
|
* dir-lookup.c (netfs_S_dir_lookup): Use ports_get_send_right.
Deallocate DIRPORT after fshelp_fetch_root.
|
|
|
|
* dir-lookup.c (netfs_S_dir_lookup): Follow symlink despite flags if
MUSTBEDIR is set (i.e. there was a trailing slash).
|