Age | Commit message (Collapse) | Author |
|
|
|
* 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.
|
|
* io-revoke.c: New file.
* Makefile (IOSRCS): Add io-revoke.c.
|
|
* open.c (trivfs_open): Add missing `=' from last change.
|
|
* open.c (trivfs_open): Correctly initialize NEW->isroot.
|
|
* times.c (trivfs_set_atime, trivefs_set_mtime): Take advantage of
new semantics for file_utimes.
|
|
|
|
* file-get-fs-options.c (trivfs_S_file_get_fs_options):
fshelp_return_malloced_buffer renamed to iohelp_*.
* fsys-get-options.c (trivfs_S_fsys_get_options): Likewise.
|
|
* dir-lookup.c (trivfs_S_dir_lookup): Fix brainos in last change.
|
|
|
|
* dir-lookup.c (trivfs_S_dir_lookup): In null-pathname case, this
should work even for non-directories, so actually do it, making
this a simpler case of trivfs_S_fsys_getroot.
|
|
|
|
Make common.
|
|
Make common.
|
|
|
|
|
|
Add dyn-classes.c, protid-classes.c, & cntl-classes.c.
|
|
Support dynamic protid port classes.
(trivfs_begin_using_control):
Support dynamic control port classes.
|
|
trivfs_dynamic_control_port_classes,
trivfs_num_dynamic_control_port_classes, trivfs_dynamic_port_buckets,
trivfs_num_dynamic_port_buckets):
New declarations.
|
|
Possibly allocate and add the port classes/buckets to the list of ones
recognized by trivfs.
|
|
Clean up dynamic port classes/buckets.
|