Age | Commit message (Collapse) | Author |
|
|
|
* Makefile (installhdrs): Add generated headers only ifndef no_deps.
|
|
|
|
* dir-chg.c: Don't include stub header, trivfs.h now gets those decls.
* dir-link.c: Likewise.
* dir-lookup.c: Likewise.
* dir-mkdir.c: Likewise.
* dir-mkfile.c: Likewise.
* dir-readdir.c: Likewise.
* dir-rename.c: Likewise.
* dir-rmdir.c: Likewise.
* dir-unlink.c: Likewise.
* file-access.c: Likewise.
* file-chauthor.c: Likewise.
* file-chflags.c: Likewise.
* file-chg.c: Likewise.
* file-chmod.c: Likewise.
* file-chown.c: Likewise.
* file-get-fs-options.c: Likewise.
* file-get-storage-info.c: Likewise.
* file-get-trans.c: Likewise.
* file-get-transcntl.c: Likewise.
* file-getcontrol.c: Likewise.
* file-getfh.c: Likewise.
* file-getlinknode.c: Likewise.
* file-lock.c: Likewise.
* file-reparent.c: Likewise.
* file-set-size.c: Likewise.
* file-set-trans.c: Likewise.
* file-statfs.c: Likewise.
* file-sync.c: Likewise.
* file-syncfs.c: Likewise.
* file-utimes.c: Likewise.
* fsys-forward.c: Likewise.
* fsys-get-options.c: Likewise.
* fsys-getroot.c: Likewise.
* fsys-goaway.c: Likewise.
* fsys-set-options.c: Likewise.
* fsys-stubs.c: Likewise.
* fsys-syncfs.c: Likewise.
* io-async-icky.c: Likewise.
* io-async.c: Likewise.
* io-duplicate.c: Likewise.
* io-identity.c: Likewise.
* io-map.c: Likewise.
* io-modes-get.c: Likewise.
* io-modes-off.c: Likewise.
* io-modes-on.c: Likewise.
* io-owner-get.c: Likewise.
* io-owner-mod.c: Likewise.
* io-pathconf.c: Likewise.
* io-read.c: Likewise.
* io-readable.c: Likewise.
* io-reauthenticate.c: Likewise.
* io-restrict-auth.c: Likewise.
* io-revoke.c: Likewise.
* io-seek.c: Likewise.
* io-select.c: Likewise.
* io-stat.c: Likewise.
* io-stubs.c: Likewise.
* io-write.c: Likewise.
|
|
|
|
* priv.h: All declarations moved to ...
* trivfs.h: ... here. #include those server stub headers.
* fsmutations.h (FILE_IMPORTS, IO_IMPORTS, FSYS_IMPORTS):
Use <hurd/trivfs.h> instead of "priv.h" here.
|
|
* Makefile (mig-sheader-prefix): New variable.
(installhdrs): Add trivfs_*_S.h for fs, io, fsys (server stub headers).
($(MIGSTUBS:%Server.o=%.sdefsi)): Give dep $(srcdir)/fsmutations.h.
|
|
|
|
* file-exec.c (trivfs_S_file_exec): Add reply port args.
|
|
* io-version.c (trivfs_S_io_server_version): Fix receiver arg type.
|
|
* dir-readdir.c (trivfs_S_dir_readdir): Revert last change.
|
|
|
|
* dir-readdir.c (trivfs_S_dir_readdir): Use vm_size_t for AMOUNT.
|
|
* io-identity.c (trivfs_S_io_identity): Use ino_t for FILENO.
|
|
* trivfs.h (trivfs_modify_stat):
Use io_statbuf_t instead of struct stat.
|
|
|
|
* dir-readdir.c (trivfs_S_dir_readdir): u_int -> size_t
* file-get-trans.c (trivfs_S_file_get_translator): Likewise.
* file-set-trans.c (trivfs_S_file_set_translator): Likewise.
* file-getfh.c (trivfs_S_file_getfh): Likewise.
* fsys-getroot.c (trivfs_S_fsys_getroot): Likewise.
* io-restrict-auth.c (trivfs_S_io_restrict_auth): Likewise
* fsys-stubs.c (trivfs_S_fsys_getfile): Likewise.
(trivfs_S_fsys_startup): Fix argument type.
|
|
Reported by Alfred M. Szmidt <ams@kemisten.nu>.
|
|
|
|
|
|
* dir-lookup.c (trivfs_S_dir_lookup): Use iohelp_dup_iouser as
per the new semantics.
* fsys-getroot.c (trivfs_S_fsys_getroot): Use
iohelp_create_complex_iouser.
* io-reauthenticate.c (trivfs_S_io_reauthenticate):
Use iohelp_reauth as per the new semantics.
* io-restrict-auth.c (trivfs_S_io_restrict_auth):
Use iohelp_create_complex_iouser. Check return values.
* protid-dup.c (trivfs_protid_dup): Use iohelp_dup_iouser
as per the new semantics.
|
|
|
|
* dir-lookup.c (trivfs_S_dir_lookup): Use
iohelp_dup_iouser as per the new semantics.
* fsys-getroot.c (trivfs_S_fsys_getroot): Use
iohelp_create_complex_iouser.
* io-reauthenticate.c (trivfs_S_io_reauthenticate):
Use iohelp_reauth as per the new semantics.
* io-restrict-auth.c (trivfs_S_io_restrict_auth):
Use iohelp_create_complex_iouser. Check return values.
* trivfs_protid_dup (trivfs_protid_dup): Use iohelp_dup_iouser
as per the new semantics.
|
|
|
|
|
|
* file-inv.c: Remove this file, function no longer exists.
* Makefile (FSSRCS): Remove reference to file-inv.c.
|
|
* startup.c (trivfs_startup): Don't use MAKE_SEND in Hurd RPC.
|
|
|
|
* io-reauthenticate.c (trivfs_S_io_reauthenticate): Use
ports_get_send_right.
|
|
|
|
* io-write.c: Include <fcntl.h>.
|
|
* fsys-getroot.c (trivfs_S_fsys_getroot): Fix typo.
|
|
|
|
* io-write.c (trivfs_S_io_write): Return EBADF if trivfs_allow_open
doesn't include O_WRITE.
|
|
* io-modes-get.c (trivfs_S_io_get_openmodes): Remove assert.
The default implementation ought to be fine for this.
|
|
|
|
* io-owner-get.c (trivfs_S_io_get_owner): Remove asserts.
It is entirely reasonable to have EOPNOTSUPP be the default
implementation for these calls that files are not obligated to provide.
* io-owner-mod.c (trivfs_S_io_mod_owner): Likewise.
* io-map.c (trivfs_S_io_map): Likewise.
* io-async.c (trivfs_S_io_async): Likewise.
* io-async-icky.c (trivfs_S_io_get_icky_async_id): Likewise.
|
|
* fsys-getroot.c (trivfs_S_fsys_getroot): Return EROFS or EACCES for a
disallowed open attempt, instead of EOPNOTSUPP. EOPNOTSUPP results in
the confusing result of ENOTDIR being delivered to the user.
|
|
|
|
* dir-readdir.c (trivfs_S_dir_readdir): Take DATA_DEALLOC parameter.
|
|
|
|
* dir-lookup.c (trivfs_S_dir_lookup): Duplicate CRED->user to pass it
to trivfs_open. Add ref to CRED->realnode when used by trivfs_open.
|
|
|
|
* trivfs.h (trivfs_open_hook): New variable.
* fsys-getroot.c (trivfs_S_fsys_getroot): Use it.
|
|
|
|
* io-map-segment.c (trivfs_S_io_map): New file.
* io-map.c (trivfs_S_io_map): Just call trivfs_S_io_map_segment.
* Makefile (IOSRCS): Add io-map-segment.c.
|
|
* migsupport.c (trivfs_begin_using_protid): In first branch,
protect work against PI being null, and call ports_port_deref with
the proper value.
(trivfs_begin_using_control): Likewise.
Reported by Mark Kettenis (kettenis@wins.uva.nl).
|
|
* trivfs.h (trivfs_check_access_hook): New variable.
* fsys-getroot.c (trivfs_S_fsys_getroot): Use
trivfs_check_acces_hook.
* dir-lookup.c (trivfs_S_dir_lookup): Likewise.
* file-access.c (trivfs_S_file_check_access): Likewise.
|
|
|
|
* io-revoke.c: Add reply, reply_type args.
|