aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/diskfs.h
Commit message (Collapse)AuthorAgeFilesLines
...
* 1999-07-01 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-011-136/+6
| | | | | | | | | | | | | | | | | * node-nref.c: New file; guts from diskfs.h. * node-nput.c: Likewise. * node-nrele.c: Likewise. * node-nrefl.c: Likewise. * node-nputl.c: Likewise. * node-nrelel.c: LIkewise. * diskfs.h (diskfs_nref, diskfs_nput, diskfs_nrele, diskfs_nref_light, diskfs_nput_light, diskfs_nrele_light): Replace inline definitions with ordinary declarations. (DISKFS_EI): Removed macro. * diskfs.c: Deleted file. * Makefile (OTHERSRCS): Added node-nref.c, node-nput.c node-nrele.c, node-nrefl.c, node-nputl.c, node-nrelel.c. Removed diskfs.c.
* 1999-01-22 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-01-241-1/+22
| | | | | * init-main.c: New file, defining new function diskfs_init_main. * diskfs.h: Declare diskfs_init_main.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-301-2/+3
| | | | | | | | | | | | | | | | Use a struct hurd_port for the cached exec server port, so it is properly reference-counted and locked. * boot-start.c (diskfs_exec): Variable removed. (diskfs_start_bootstrap): Make it a local here. Install that port in _diskfs_exec_portcell. (diskfs_S_fsys_init): Use _diskfs_exec_portcell instead of diskfs_exec. * init-init.c (_diskfs_exec_portcell): New variable. (diskfs_init_diskfs): Initialize it. * priv.h: Declare it. * diskfs.h (diskfs_exec, diskfs_exec_ctl): Remove decls. * file-exec.c (diskfs_S_file_exec): Use _diskfs_exec_portcell instead of diskfs_exec.
* 1998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-10-241-20/+25
| | | | | | | | | | | | | | | | | | | | * diskfs.h (diskfs_lookup_hard, diskfs_lookup, diskfs_set_translator, diskfs_create_symlink_hook, diskfs_notice_dirchange, diskfs_direnter, diskfs_direnter_hard, diskfs_dirrewrite, diskfs_dirremove, diskfs_create_node, diskfs_enter_lookup_cache, diskfs_check_lookup_cache, dir_rename_dir, diskfs_set_options): Add `const' qualifier to `char *' parameters where appropriate. * opts-set.c (diskfs_set_options): Fix defn with `const'. * node-create.c (diskfs_create_node): Likewise. * name-cache.c (diskfs_enter_lookup_cache): Likewise. (diskfs_check_lookup_cache): Likewise. * dirremove.c (diskfs_dirremove): Likewise. * dirrewrite.c (diskfs_dirrewrite): Likewise. * lookup.c (diskfs_lookup): Likewise. * direnter.c (diskfs_direnter): Likewise. * dir-renamed.c (diskfs_rename_dir): Likewise. * dir-chg.c (diskfs_notice_dirchange): Likewise.
* Sun Aug 9 21:09:24 1998 Jose M. Moya <josem@gnu.org>Thomas Bushnell1998-08-101-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | * diskfs.h (struct node): Add filemod_reqs member. (struct modreq): Rename struct dirmod to reqmod as it is used for directory and file notifications. (diskfs_notice_filechange): Add prototype. * dir-chg.c (diskfs_S_dir_notice_changes): Check nowait_dir_changed return value for errors. (diskfs_notice_dirchange): Remove requests when the notification fails. * file-chg.c (diskfs_S_file_notice_changes): Implement. (diskfs_notice_filechange): New function. * node-make.c (diskfs_make_node): Initialize filemod_reqs. * node-drop.c (free_modreqs): New function. (diskfs_drop_node): Free filemod_reqs. * file-chauthor.c (dithkfth_TH_file_chauthor): Add file notifications. * file-chflags.c (diskfs_S_file_chflags): Likewise. * file-chmod.c (diskfs_S_file_chmod): Likewise. * file-chown.c (diskfs_S_file_chown): Likewise. * file-set-size.c (diskfs_S_file_set_size): Likewise. * io-prenotify.c (diskfs_S_io_prenotify): Likewise. * io-write.c (diskfs_S_io_write): Likewise. * node-rdwr.c (diskfs_node_rdwr): Likewise.
* Wed Aug 20 14:03:41 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-08-201-1/+1
| | | | | | | | * diskfs.h: Doc fix. * io-map.c (diskfs_S_io_map): Cope with error return from diskfs_get_filemap. * rdwr-internal.c (_diskfs_rdwr_internal): Likewise.
* Mon Jul 7 16:25:49 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-07-091-1/+1
| | | | | | | | | | | | | | | * file-exec.c: Include <fcntl.h> instead of <fcntlbits.h>. Suggested by Marcus G. Daniels (marcus@cathcart.sysc.pdx.edu). Mon Jun 30 17:26:38 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * diskfs.h (diskfs_hard_readonly): New variable. (diskfs_readonly): Doc change. * readonly.c (diskfs_readonly): Provide initialized declaration. (diskfs_check_readonly): If we cannot write the media and so we switch to readonly, set diskfs_hard_readonly too. (diskfs_set_readonly): If diskfs_hard_readonly is set, then inhibit any attempt to clear readonly status.
* Mon Jun 30 17:26:38 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-06-301-3/+6
| | | | | | | | | | * diskfs.h (diskfs_hard_readonly): New variable. (diskfs_readonly): Doc change. * readonly.c (diskfs_readonly): Provide initialized declaration. (diskfs_check_readonly): If we cannot write the media and so we switch to readonly, set diskfs_hard_readonly too. (diskfs_set_readonly): If diskfs_hard_readonly is set, then inhibit any attempt to clear readonly status.
* (diskfs_lookup):Miles Bader1997-02-141-12/+12
| | | | | | | | Remove DEPTH & NEW_DEPTH params. (struct peropen): Add shadow_root_parent & shadow_root fields. Removed depth field. Rename dotdotnode field to root_parent.
* (diskfs_lookup):Miles Bader1997-02-061-4/+14
| | | | | | | | Add DEPTH & NEW_DEPTH arguments. (diskfs_make_peropen): Add DEPTH argument. (struct peropen): Add DEPTH field.
* (struct node):Miles Bader1996-11-201-0/+2
| | | | Add author_tracks_uid field.
* (struct node):Miles Bader1996-11-191-1/+0
| | | | Remove istranslated field.
* Fri Nov 15 14:06:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1996-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * protid-make.c (diskfs_finish_protid): Fix typo. * file-chown.c (diskfs_S_file_chown): Look for UID, not CRED in the uid set. * dir-lookup.c (diskfs_S_dir_lookup): Make the unauthenticated port correctly. Thu Nov 14 13:07:37 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * dir-init.c (diskfs_init_dir): New vars VEC and USER; fabricate LOOKUPCRED to correspond to new structure definitions. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Declare I and add a missing semicolon. * fsys-getroot.c (diskfs_S_fsys_getroot): Eliminate PSEUDOCRED entirely. Fix unrelated typo. * file-chauthor.c (dithkfth_TH_file_chauthor): Fix first arg in call to fthhelp_ithowner. Tue Nov 12 22:45:07 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * diskfs.h: Correctly close comment.
* Thu Nov 7 01:03:11 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1996-11-131-94/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * protid-rele.c (diskfs_protid_rele): Free CRED->user. Wed Nov 6 17:55:17 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * diskfs.h (diskfs_isuid, diskfs_groupmember, diskfs_isowner, diskfs_access, diskfs_checkdirmod): Delete functions. * fsys-getroot.c (diskfs_S_fsys_getroot): Replace PSEUDOCRED with a real iouser and specify that in the relevant calls. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Reworked to use idvecs. * file-chmod.c (diskfs_S_file_chmod): diskfs_isuid -> idvec_contains. * file-chown.c (diskfs_S_file_chown): Likewise. * file-getcontrol.c (diskfs_S_file_getcontrol): Likewise. * file-chmod.c (diskfs_S_file_chmod): diskfs_groupmember -> idvec_contains. * file-chown.c (diskfs_S_file_chown): Likewise. * node-create.c (diskfs_create_node): Likewise. * dir-lookup.c (diskfs_S_dir_lookup): diskfs_isowner -> fshelp_isowner. * file-chflags.c (diskfs_S_file_chflags): Likewise. * file-chmod.c (diskfs_S_file_chmod): Likewise. * file-chown.c (diskfs_S_file_chown): Likewise. * file-get-transcntl.c (diskfs_S_file_get_translator_cntl): Likewise. * file-set-trans.c (diskfs_S_file_set_translator): Likewise. * file-utimes.c (diskfs_S_file_utimes): Likewise. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * lithp.h (dithkfth_ithowner): Deleted macro. (fthhelp_ithowner, uther): New macros. * file-chauthor.c (dithkfth_TH_file_chauthor): dthkfth_ithowner -> fthhelp_ithowner. * dir-lookup.c (diskfs_S_dir_lookup): diskfs_access -> fshelp_access. * dir-mkfile.c (diskfs_S_dir_mkfile): Likewise. * file-access.c (diskfs_S_file_check_access): Likewise. * file-exec.c (diskfs_S_file_exec): Likewise (in dead code). * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * ifsock.c (diskfs_S_ifsock_getsockaddr): Likewise. * lookup.c (diskfs_lookup): Likewise. (diskfs_lookup): diskfs_checkdirmod -> fshelp_checkdirmod. * dir-lookup.c (diskfs_S_dir_lookup): New arg format for fshelp_fetch_root. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * diskfs.h, protid-make.c (diskfs_create_protid): Delete args `uids', `gids', `nuids', and `ngids'. Replace with new arg `user'. All callers changed. (diskfs_finish_protid): Likewise. * file-inv-trans.c (diskfs_S_file_invoke_translator): Use CRED->user instead of old fields. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Likewise. * node-create.c (diskfs_create_node): Likewise. * file-exec.c (diskfs_S_file_exec): Likewise. Use idvec_merge instead of idvec_merge_ids, now that it's convenient. * io-reauthenticate.c (diskfs_S_io_reauthenticate): Use new iohelp_reauthenticate. Tue Nov 5 21:10:18 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * diskfs.h: Include <idvec.h>. (struct protid): Delete members `uids', `gids', `nuids' and `ngids'. New member `user'.
* Mon Oct 21 21:54:34 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1996-10-241-11/+15
| | | | | | * diskfs.h: Add extern inline protection. * diskfs.c: New file. * Makefile (OTHERSRCS): Add diskfs.c.
* (diskfs_append_args):Miles Bader1996-09-231-90/+20
| | | | | | | | | | | | | | | | | | | | | | Renamed from diskfs_get_options. (diskfs_disk_name): New declaration. (diskfs_store_startup_argp): Renamed from diskfs_std_device_startup_argp. (diskfs_device_arg, diskfs_use_mach_device, diskfs_device_open, diskfs_device, diskfs_device_name, diskfs_device_start, diskfs_device_size, diskfs_device_block_size, diskfs_log2_device_block_size, diskfs_log2_device_blocks_per_page, diskfs_device_write_sync, diskfs_device_read_sync): Declarations removed. (struct argp): New (incomplete) declaration. (diskfs_startup_argp): Renamed from diskfs_std_startup_argp. (diskfs_get_file_device, diskfs_get_mach_device): Declarations removed. <argp.h>: Include removed.
* *** empty log message ***Thomas Bushnell1996-09-051-5/+7
|
* *** empty log message ***Thomas Bushnell1996-08-121-1/+1
|
* (diskfs_checkdirmod): diskfs_isowner returns error or zero, so invertMichael I. Bushnell1996-07-161-1/+1
| | | | sense of tests.
* (struct node): Remove member `identity'.Michael I. Bushnell1996-07-031-2/+0
|
* (diskfs_check_readonly): New function.Michael I. Bushnell1996-06-241-0/+4
|
* Doc fixes.Michael I. Bushnell1996-06-241-3/+6
|
* (diskfs_validate_mode_change, diskfs_validate_owner_change,Michael I. Bushnell1996-06-241-0/+24
| | | | | diskfs_validate_group_change, diskfs_validate_author_change, diskfs_validate_flags_change, diskfs_validate_rdev_change): New decls.
* (diskfs_parse_runtime_options): Decl removed.Miles Bader1996-06-201-21/+27
| | | | | | | | | | (diskfs_std_startup_argp): Renamed from diskfs_startup_argp, now a structure decl, not a pointer decl. (diskfs_std_device_startup_argp): Renamed from diskfs_device_startup_argp, now a structure decl, not a pointer decl. (diskfs_set_options): Update decl (now takes argz & argz_len). (diskfs_runtime_arg, diskfs_std_runtime_argp, diskfs_append_std_options): New declarations.
* Revert last change.Michael I. Bushnell1996-06-131-0/+1
|
* (diskfs_edit_version): Delete variable.Michael I. Bushnell1996-06-131-1/+0
|
* (diskfs_fsys_identity): New variable.Michael I. Bushnell1996-05-101-0/+5
| | | | (struct node): New member `identity'.
* (dsikfs_make_protid): Delete declaration.Michael I. Bushnell1996-05-091-4/+0
|
* ioserver.h -> iohelp.h.Michael I. Bushnell1996-05-091-1/+1
|
* (diskfs_shutdown_notification_class): New variable.Michael I. Bushnell1996-04-301-0/+1
|
* (diskfs_init_completed): Delete function.Michael I. Bushnell1996-04-301-5/+0
|
* (diskfs_enter_lookup_cache, diskfs_purge_lookup_cache,Miles Bader1996-04-101-6/+5
| | | | | diskfs_check_lookup_cache): Renamed from versions without `lookup_'.
* (diskfs_cached_lookup): New declaration.Michael I. Bushnell1996-04-031-0/+4
|
* (struct node): New member `cache_id'.Michael I. Bushnell1996-04-031-0/+2
|
* (diskfs_enter_cache, diskfs_purge_cache, diskfs_check_cache): Add declarations.Michael I. Bushnell1996-03-221-0/+14
|
* (diskfs_lookup_hard): Remove mention of ENOTDIR and EACCES errors.Michael I. Bushnell1996-03-201-4/+0
|
* (diskfs_null_dirstat): New function.Michael I. Bushnell1996-03-201-0/+4
|
* Fix typo.Michael I. Bushnell1996-03-201-1/+2
|
* Doc fixes.Michael I. Bushnell1996-03-201-7/+3
|
* (diskfs_lookup): Renamed to be diskfs_lookup_hard.Michael I. Bushnell1996-03-201-9/+88
| | | | | | | | (diskfs_direnter): Renamed to be diskfs_direnter_hard. (diskfs_dirrewrite): Renamed to be diskfs_dirrewrite_hard. (diskfs_dirremove): Renamed to be diskfs_dirremove_hard. (diskfs_lookup, diskfs_direnter, diskfs_dirrewrite, diskfs_dirremove): New functions.
* (diskfs_nput): It's not valid to touch *NP (by `mutex_unlockMichael I. Bushnell1996-02-151-2/+5
| | | | | (&np->lock);') after we have called diskfs_drop_node. So don't do it in that case.
* (diskfs_nput): Before bumping NP->references (which precedesMichael I. Bushnell1996-02-081-2/+2
| | | | | | diskfs_try_dropping_softrefs), *lock* diskfs_node_refcnt_lock, not mutant unlock. (diskfs_nrele): Likewise.
* (diskfs_parse_runtime_options): Make STANDARD_ARGP const.Miles Bader1996-02-071-3/+3
| | | | (diskfs_startup_argp, diskfs_device_startup_argp): Make const.
* (diskfs_start_protid): Update declaration.Miles Bader1996-01-271-4/+8
| | | | (diskfs_create_protid): New declaration.
* (diskfs_catch_exception, diskfs_end_catch_exception): Macros removed.Roland McGrath1996-01-041-55/+2
| | | | | (diskfs_register_memory_fault_area, diskfs_unregister_memory_fault_area): Decls removed.
* Use size_t instead of int for amounts in diskfs_node_rdwr prototype.Roland McGrath1996-01-041-52/+52
|
* (diskfs_checkdirmod): Correctly return error code for failure, not 1.Michael I. Bushnell1995-12-141-3/+11
|
* (diskfs_get_options): Bother providing declaration.Michael I. Bushnell1995-11-211-0/+5
|
* (diskfs_startup_diskfs, diskfs_execboot_fsys_startup): Add FLAGS arg.Miles Bader1995-11-021-4/+5
|
* Include <rwlock.h>Miles Bader1995-10-191-7/+43
| | | | | | | | | | | (diskfs_fsys_lock): Renamed from diskfs_shutdown_lock. Change to a struct rwlock. (diskfs_readonly_changed, diskfs_reload_global_state, diskfs_node_reload, diskfs_max_user_pager_prot, diskfs_set_readonly, diskfs_remount): New declarations. (diskfs_readonly_changed): New declaration. (disksf_get_filemap): Add prot parameter. (diskfs_main_request_loop): Declaration removed.