aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/fsys-getroot.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-03-25 Neal H Walfield <neal@cs.uml.edu>Neal H. Walfield2002-03-261-5/+10
| | | | | | | | | | | | | | | | | | | | | | * peropen-make.c (diskfs_make_peropen): Instead of returning the peropen, return as error_t and return the peropen in the new parameter *PPO. * diskfs.h (diskfs_make_peropen): Change declaration to reflect new semantics. * boot-start.c (diskfs_start_bootstrap): Check the return value of diskfs_make_peropen using the new semantics. (diskfs_S_exec_startup_get_info): Likewise. (diskfs_execboot_fsys_startup): Likewise. (diskfs_S_fsys_init): Likewise. * dir-lookup.c (diskfs_S_dir_lookup): Likewise. * dir-mkfile.c (diskfs_S_dir_mkfile): Likewise. * file-exec.c (diskfs_S_file_exec): Likewise. * file-reparent.c (diskfs_S_file_reparent): Likewise. * fsys-getfile.c (diskfs_S_fsys_getfile): Likewise. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. * trans-callback.c (_diskfs_translator_callback2_fn): Likewise. * init-startup.c (diskfs_startup_diskfs): Likewise.
* doc/Marcus Brinkmann2002-03-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * hurd.texi (Diskfs Callbacks): Refer to dir_lookup, not dir_pathtrans. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>. fstests/ 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * fstests.c (main): Call dir_lookup, not dir_pathtrans. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>. hurd/ 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * fs.defs: Refer to dir_lookup, not dir_pathtrans, in comments. * fsys.defs: Likewise. * hurd_types.h (enum retry_type): Likewise. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>. libdiskfs/ 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * diskfs.h: Refer to dir_lookup, not dir_pathtrans, in comment. * fsys-getroot.c (diskfs_S_fsys_getroot): Likewise. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>. libfshelp/ 2002-03-05 Marcus Brinkmann <marcus@gnu.org> * fshelp.h: Refer to dir_lookup, not dir_pathtrans, in comment. Reported by James A Morrison <ja2morri@student.math.uwaterloo.ca>.
* 1998-04-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-10-241-17/+22
| | | | | | | | | | | | | | Add support for a "virtual root directory" specified at startup. * priv.h (_diskfs_chroot_directory): Declare new variable. * opts-std-startup.c (startup_options, parse_startup_opt): New string-valued option -C/--directory/--virtual-root/--chroot sets _diskfs_chroot_directory. * init-startup.c (_diskfs_chroot_directory): New variable. (diskfs_startup_diskfs): If that's set, look up the name and warp us to that as a virtual root directory. * fsys-getroot.c (diskfs_S_fsys_getroot): Initialize new peropen's shadow_root_parent to null, and shadow_root to either null or, if _diskfs_chroot_directory is set, to diskfs_root_node.
* (diskfs_S_fsys_getroot):Miles Bader1997-02-141-7/+9
| | | | | Pass a prototype peropen instead of the dotdotport and depth to diskfs_make_peropen.
* (diskfs_S_fsys_getroot):Miles Bader1997-02-061-3/+5
| | | | | | Supply DEPTH argument to diskfs_make_peropen. Pass new type of cookie2 to fshelp_fetch_root, as expected by _diskfs_translator_callback2.
* (diskfs_S_fsys_getroot):Miles Bader1996-11-191-1/+1
| | | | Use S_IPTRANS bit in dn_stat st_mode field rather than istranslated field.
* Fri Nov 15 14:06:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1996-11-181-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-14/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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'.
* (diskfs_S_fsys_getroot): Use diskfs_check_readonly instead of diskfs_readonly.Michael I. Bushnell1996-06-241-1/+1
|
* (diskfs_S_fsys_getroot): Use diskfs_create_protid instead ofMiles Bader1996-01-271-9/+12
| | | | diskfs_make_protid, and deal with an error return.
* (diskfs_S_fsys_getroot): Deallocate ref to dotdot afterMichael I. Bushnell1996-01-181-0/+1
| | | | diskfs_make_peropen, because the latter does not eat a reference.
* (diskfs_S_fsys_getroot): In symlink case, use MOVE_SEND to return theMichael I. Bushnell1996-01-181-2/+2
| | | | dotdot port to the user.
* (diskfs_S_fsys_getroot): Pass both callback args to fshelp_fetch_root.Miles Bader1995-11-061-1/+2
|
* (diskfs_S_fsys_getroot): Hold DISKFS_FSYS_LOCK for reading.Miles Bader1995-10-191-6/+8
|
* (diskfs_S_fsys_getroot): Free initial reference created byMichael I. Bushnell1995-07-211-5/+7
| | | | diskfs_make_protid.
* (diskfs_S_fsys_getroot): New parms REPLY and REPLYTYPE.Michael I. Bushnell1995-06-261-0/+2
|
* (diskfs_S_fsys_getroot): Fix typo.Michael I. Bushnell1995-06-191-1/+1
|
* (diskfs_S_fsys_getroot): Use new translator startup interface.Michael I. Bushnell1995-06-141-42/+14
|
* (diskfs_S_fsys_getroot): Use ports_lookup_port and ports_port_derefMichael I. Bushnell1995-06-091-3/+4
| | | | instead of ports_check_port_type and ports_done_with_port.
* entered into RCSMichael I. Bushnell1994-09-261-1/+1
|
* Formerly fsys-getroot.c.~18~Michael I. Bushnell1994-09-231-1/+1
|
* Formerly fsys-getroot.c.~17~Michael I. Bushnell1994-09-121-1/+1
|
* Formerly fsys-getroot.c.~16~Michael I. Bushnell1994-09-091-0/+2
|
* Formerly fsys-getroot.c.~15~Michael I. Bushnell1994-09-011-1/+7
|
* Formerly fsys-getroot.c.~14~Michael I. Bushnell1994-07-191-4/+6
|
* Formerly fsys-getroot.c.~13~Michael I. Bushnell1994-07-181-9/+13
|
* Formerly fsys-getroot.c.~12~Michael I. Bushnell1994-07-151-3/+6
|
* Formerly fsys-getroot.c.~11~Michael I. Bushnell1994-07-131-2/+10
|
* Formerly fsys-getroot.c.~10~Michael I. Bushnell1994-07-111-1/+1
|
* Formerly fsys-getroot.c.~9~Michael I. Bushnell1994-06-291-0/+11
|
* Formerly fsys-getroot.c.~8~Michael I. Bushnell1994-06-171-1/+1
|
* Formerly fsys-getroot.c.~7~Michael I. Bushnell1994-06-171-5/+10
|
* Formerly fsys-getroot.c.~6~Michael I. Bushnell1994-06-161-8/+115
|
* Formerly fsys-getroot.c.~5~Roland McGrath1994-05-051-1/+1
|
* Formerly fsys-getroot.c.~4~Michael I. Bushnell1994-02-181-0/+2
|
* Formerly fsys-getroot.c.~3~Michael I. Bushnell1994-02-111-2/+4
|
* Formerly fsys-getroot.c.~2~Michael I. Bushnell1994-02-081-12/+11
|
* Initial revisionMichael I. Bushnell1994-02-081-0/+49