Age | Commit message (Collapse) | Author |
|
|
|
* 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.
|
|
trivfs_add_port_bucket, trivfs_remove_control_port_class,
trivfs_remove_protid_port_class, trivfs_remove_port_bucket):
New declarations.
|
|
|
|
Replace dir-reparent.c by file-reparent.c.
|
|
Use trivfs_getroot_hook.
|
|
New declaration.
|
|
|
|
|
|
|
|
|
|
Add dir-reparent.c.
|