summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
1999-10-06.Roland McGrath
1999-10-061999-10-06 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* bootstrap.c (DEFAULT_ROOT): Change to "hd0s1".
1999-10-061999-10-06 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* lookup.c (diskfs_lookup): NAME is no longer const. Update documentation Strip leading and trailing slashes from NAME before using it. * diskfs.h (diskfs_lookup): NAME is no longer const. Update documentation. 1999-10-05 Thomas Bushnell, BSG <tb@mit.edu> * priv.h (CHANGE_NODE_FIELD): Use diskfs_check_readonly instead of directly reading diskfs_readonly.
1999-10-041999-10-04 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* term.h, devio.c, users.c: Revert previous change. Do it this way instead: * users.c (report_carrier_error): New function. (carrier_error): New static global variable. (open_hook): Deal with errors from carrier open. * devio.c (device_open_reply): Move the !RETURNCODE case out of the "initial open" case and use report_carrier_error. * term.h (report_carrier_error): Declare new function.
1999-10-03.Roland McGrath
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* dir.c (ext2_file_type): #if 0 out this variable. (diskfs_get_directs): #if 0 out code to interpret file_type field and set d_type. Instead, always return DT_UNKNOWN for now.
1999-10-03.Roland McGrath
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* dir.c (file_type_ext2): #if 0 out. (diskfs_direnter_hard): #if 0 out code to set file_type field in directory entries. Instead, always set it to zero.
1999-10-03.Roland McGrath
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* Makeconf [$(makemode) = misc]: If no installationdir and no targets, set makemode-instdir so it's not empty, to avoid expanding `$(dir)'.
1999-10-03.Roland McGrath
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* bitmap.c (ffz): Subtract one from (1-origin) result of ffs to get our (0-origin) result. * Makefile (LCLHDRS): bitmap.h -> bitmap.c
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.h (test_bit, set_bit, clear_bit): Rewritten to operate on 32-bit words instead of bytes. * ext2fs.h (group_desc): Inline function replaced with macro. (group_desc_image): New variable. * hyper.c (get_hypermetadata): Initialize it. * ext2fs.h (sblock_block): Declare new variable. (SBLOCK_LBLOCK): Macro removed. (SBLOCK_OFFS): Define in terms of sblock_block. * ext2fs.c (options): Add --sblock/-S. (parse_opt): Parse it to set sblock_block. * hyper.c (sblock_block): New variable. (get_hypermetadata): Use sblock_block instead of constant SBLOCK_BLOCK. * hyper.c (get_hypermetadata): Use EXT2_MAX_BLOCK_SIZE instead of hard-wired 8192. Don't use ffs to compute log2_block_size, and don't check for the impossible case of non-power-of-two block size (the block size specification we start with is given as a power of two!). * ext2fs.h (block_size): Change type to unsigned int. (BLOCKSIZE_SCALE): Just use SBLOCK->s_log_block_size directly. * hyper.c (get_hypermetadata): Fix printf formats to silence warning. * dir.c (dirscanblock): Likewise.
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* truncate.c (diskfs_truncate): Add missing call to diskfs_end_catch_exception.
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.h (sblock_block): Declare new variable. (SBLOCK_LBLOCK): Macro removed. (SBLOCK_OFFS): Define in terms of sblock_block. * ext2fs.c (options): Add --sblock/-S. (parse_opt): Parse it to set sblock_block. * hyper.c (sblock_block): New variable. (get_hypermetadata): Use sblock_block instead of constant SBLOCK_BLOCK. * ext2fs.c (options): List --debug/-D unconditionally, adding to help text #ifndef EXT2FS_DEBUG (parse_opt): Always grok -D. #ifndef EXT2FS_DEBUG, reject it with message saying debugging support not compiled in.
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* Makefile (LCLHDRS): bitmap.h -> bitmap.c
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* hyper.c (get_hypermetadata): Use EXT2_MAX_BLOCK_SIZE instead of hard-wired 8192. Don't use ffs to compute log2_block_size, and don't check for the impossible case of non-power-of-two block size (the block size specification we start with is given as a power of two!). * ext2fs.h (block_size): Change type to unsigned int. (BLOCKSIZE_SCALE): Just use SBLOCK->s_log_block_size directly. * hyper.c (get_hypermetadata): Fix printf formats to silence warning. * dir.c (dirscanblock): Likewise.
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.h (group_desc): Inline function replaced with macro. (group_desc_image): New variable. * hyper.c (get_hypermetadata): Initialize it. * ext2fs.h (sblock_block): Declare new variable. (SBLOCK_LBLOCK): Macro removed. (SBLOCK_OFFS): Define in terms of sblock_block. * ext2fs.c (options): Add --sblock/-S. (parse_opt): Parse it to set sblock_block. * hyper.c (sblock_block): New variable. (get_hypermetadata): Use sblock_block instead of constant SBLOCK_BLOCK. * hyper.c (get_hypermetadata): Use EXT2_MAX_BLOCK_SIZE instead of hard-wired 8192. Don't use ffs to compute log2_block_size, and don't check for the impossible case of non-power-of-two block size (the block size specification we start with is given as a power of two!). * ext2fs.h (block_size): Change type to unsigned int. (BLOCKSIZE_SCALE): Just use SBLOCK->s_log_block_size directly. * hyper.c (get_hypermetadata): Fix printf formats to silence warning. * dir.c (dirscanblock): Likewise.
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* rdwr.c (store_read, store_write): Fix calculations broken in last change, so they again properly account for starting intrarun offset.
1999-10-03.Roland McGrath
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* dir.c (file_type_ext2): New const variable, map DT_* -> EXT2_FT_*. (diskfs_direnter_hard): Move initialization of directory entry content fields out of switch; use memcpy or memmove as appropriate, instead of bcopy. Set file_type field in new directory entry to appropriate type for the node, or to zero if the filesystem doesn't have the EXT2_FEATURE_INCOMPAT_FILETYPE flag set.
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* bitmap.c (ffz): Don't subtract one (duh).
1999-10-021999-09-28 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* init.c (frob_kernel_process): Allocate the kernel's page in the actual kernel task, not in our own. I wonder how this ever worked. Also if we fail in that allocation, free the page we allocated in our own space.
1999-10-02.Roland McGrath
1999-10-021999-10-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.h (SBLOCK_LBLOCK): New macro, filesystem block number of sb. (BLOCKSIZE_SCALE): New macro for converting min-blocks to fs blocks. (group_desc): Fix calculation of offset from superblock, so it works properly with block_size != EXT2_MIN_BLOCK_SIZE. * ext2fs.h (EXT2FS_EI): New macro, use it for all extern inlines.
1999-10-02.Roland McGrath
1999-10-021999-10-02 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* bitmap.c (count_free, find_next_zero_bit, find_first_zero_bit): Make these all static inline. (ffz, ffz_nibble_map): Function and variable removed. (ffz): Replace decl with macro defined in terms of ffs. * ext2fs.h (count_free, find_next_zero_bit, find_first_zero_bit, ffz): Remove these declarations. * Makefile (SRCS): Remove bitmap.c. (LCLHDRS): Add bitmap.c here instead. * balloc.c, ialloc.c: #include "bitmap.c" here.
1999-10-01.Roland McGrath
1999-10-011999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* bitmap.c (memscan): Function removed. * ext2fs.h: Removed its decl. * balloc.c (memscan): New static function, defined using memchr.
1999-10-01.Roland McGrath
1999-10-011999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* term.h (NO_DEVICE): New macro, bit for termflags. (termflags): Change type to uint_fast32_t. * devio.c (device_open_reply): For D_NO_SUCH_DEVICE error reply, set NO_DEVICE flag in termflags. * users.c (open_hook): If NO_DEVICE flag set, return ENXIO immediately. If we put out an open request, check for that bit as well as NO_CARRIER changing in termflags and diagnose with ENXIO. * Makefile (device_replyServer-CPPFLAGS): New variable, turn off TypeCheck for this stub. This is necessary for error replies to get through to our server-side functions in devio.c.
1999-10-01.Roland McGrath
1999-10-011999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* forks.c: Add #include's to silence implicit decl warnings (main): Use time_t and add a cast, to silence type warnings.
1999-10-01.Roland McGrath
1999-10-011999-10-01 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* Makeconf [Decode makemode page]: Clean up variable usage in each cases, as follows: (installationdir): Don't test and set this directly. (makemode-instdir): New variable, set instead for each makemode. (linktarg): Don't this for each program-linking makemode. (targets): Make sure this is always set, i.e. = $(target) in singular modes. [$(makemode) != library] (progtarg): New variable. [$(makemode) != library] (linktarg): Set from $(progtarg), including .static versions. (installationdir): Test and default once, using $(makemode-instdir). [linking and dep rules]: Use $(linktarg) and $(progtarg) as appropriate instead of $(targets) or $(target).
1999-09-301999-09-29 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell
* idvec.c (idvec_setid): Switch last two arguments in call to idvec_insert_only. * idvec.h: Doc fix.
1999-09-281999-09-23 Mark Kettenis <kettenis@gnu.org>Thomas Bushnell
* getty.c (main): Report an error if login_tty failed.
1999-09-281999-09-27 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* idvec.c (idvec_setid): Implement Posix saved set-user id correctly. (idvec_insert_only): Doc fix. Reported by Mark Kettenis <kettenis@wins.uva.nl>.
1999-09-22.Roland McGrath
1999-09-221999-09-23 Mark Kettenis <kettenis@gnu.org>Roland McGrath
* login.c (main): Pass controlling terminal ID port to the child.
1999-09-221999-09-22 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* getty.c: Undo last change.
1999-09-22.Roland McGrath
1999-09-221999-09-22 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* getty.c (main): Make TTY our controlling terminal with TIOCSCTTY.
1999-09-21.Roland McGrath
1999-09-211999-09-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* w.c (add_utmp_procs): Ignore entries whose ut_type is not LOGIN_PROCESS or USER_PROCESS, or whose ut_line is empty.
1999-09-201999-09-20 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* node-times.c (diskfs_set_node_times): Don't implement _diskfs_noatime here. * conch-fetch.c (iohelp_fetch_shared_data): Don't update dn_set_atime on affected node if _diskfs_noatime. * rdwr-internal.c (_diskfs_rdwr_internal): Likewise.
1999-09-201999-09-14 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* forks.c (main): Count argc correctly.
1999-09-201999-09-20 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* hurd.texi: Repair syntax lossage.
1999-09-19.Roland McGrath
1999-09-191999-09-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* node-times.c (diskfs_set_node_times): If _diskfs_noatime is set and neither NP->dn_set_mtime nor NP->dn_set_ctime is set, clear NP->dn_set_atime. Short-circuit return if none of dn_set_?time set. * opts-common.c (diskfs_common_options): Include "priv.h". Add aliases --ro/--rw for -r/-w. Add alias --nosuid for --no-suid, --noexec for --no-exec. Move --suid-ok, --exec-ok here from ... * opts-std-runtime.c (std_runtime_options): ... here. (struct parse_hook): New member `noatime'. (set_opts): Use H->noatime to set _diskfs_noatime. (parse_opt): Grok -A and OPT_ATIME to set/clear H->noatime. (OPT_ATIME): New macro. (OPT_SUID_OK, OPT_EXEC_OK): Moved to ... * priv.h: ... here. (diskfs_common_options): Add const to decl. * opts-std-startup.c (parse_startup_opt): Grok OPT_SUID_OK, OPT_EXEC_OK, -A, and OPT_ATIME. * init-init.c (_diskfs_noatime): New variable. (_diskfs_nosuid, _diskfs_noexec): Use uninitialized defns. * opts-append-std.c (diskfs_append_std_options): Add --no-atime if _diskfs_noatime is set.