]> Zhao Yanbai Git Server - minix.git/log
minix.git
15 years agoDisabled check in test 28 which hard links a directory; this is nott required by...
Erik van der Kouwe [Fri, 4 Sep 2009 20:23:25 +0000 (20:23 +0000)]
Disabled check in test 28 which hard links a directory; this is nott required by POSIX and not supported (currently) by MINIX. Also corrected total number of tests.

15 years agoNow all tests except for 28 succeed in root mode
Erik van der Kouwe [Fri, 4 Sep 2009 14:14:49 +0000 (14:14 +0000)]
Now all tests except for 28 succeed in root mode

15 years agoRemove redundant line from previous patch
Erik van der Kouwe [Fri, 4 Sep 2009 13:36:43 +0000 (13:36 +0000)]
Remove redundant line from previous patch

15 years agoAllow setuid tests 11 and 33 to run. The former still fails (but now with a meaningfu...
Erik van der Kouwe [Fri, 4 Sep 2009 13:18:49 +0000 (13:18 +0000)]
Allow setuid tests 11 and 33 to run. The former still fails (but now with a meaningful error) while the latter succeeds. Only 2 tests are left borken on default MINIX, namely 11 and 28.

15 years agoAvoid alarm to prevent the setitimer interval from being reset
Erik van der Kouwe [Thu, 3 Sep 2009 20:35:22 +0000 (20:35 +0000)]
Avoid alarm to prevent the setitimer interval from being reset

15 years ago - Added netconf script which makes it a lot easier to change network settings.
Thomas Veerman [Thu, 3 Sep 2009 09:38:27 +0000 (09:38 +0000)]
 - Added netconf script which makes it a lot easier to change network settings.
 - Modified the setup script to use the netconf script for the network
   configuration:
    - Moved step 2 to step 8 and renamed the steps in between.
    - Autopart adapted to print step 3 instead of step 4.

15 years agotypo
David van Moolenbroek [Wed, 2 Sep 2009 21:55:26 +0000 (21:55 +0000)]
typo

15 years agopostgresql services entry.
Ben Gras [Wed, 2 Sep 2009 13:23:22 +0000 (13:23 +0000)]
postgresql services entry.

15 years agoFXP: support for 8086/1064 (reported and tested by Jose Luis Sanchez)
David van Moolenbroek [Sun, 30 Aug 2009 16:13:46 +0000 (16:13 +0000)]
FXP: support for 8086/1064 (reported and tested by Jose Luis Sanchez)

15 years agoFix time(1) for custom system HZ values (reported by Jose Luis Sanchez
David van Moolenbroek [Sun, 30 Aug 2009 16:06:59 +0000 (16:06 +0000)]
Fix time(1) for custom system HZ values (reported by Jose Luis Sanchez

15 years agosystem_init() renamed to arch_init()
Tomas Hruby [Sun, 30 Aug 2009 14:55:30 +0000 (14:55 +0000)]
system_init() renamed to arch_init()

- a better name for architecture specific init function

- some of x86 init code must execute in protected mode

- prot_init() removed from this function and still called in cstart() Imho this
  should be called from the architecture specific assembly not cstart. cstart
  perform Minix monitor specific tasks and will be touched once another
  bootloader is in use, e.g. booting via tftp, therefore we keep it as is for
  now.

- this is a backport from the SMP code which requires this. Merging will be simpler

15 years agoPrinting the trap info even if kernel crashes is handy.
Tomas Hruby [Sat, 29 Aug 2009 19:38:11 +0000 (19:38 +0000)]
Printing the trap info even if kernel crashes is handy.

15 years agosaved_proc in exception() may be NULL
Tomas Hruby [Sat, 29 Aug 2009 19:26:46 +0000 (19:26 +0000)]
saved_proc in exception() may be NULL

If an exception happens in kernel while the kernel is booting and no processes
are running yet, saved_proc == NULL and priting any process related information
results in dumping rubish.

This check is mostly useful when debugging kernel stuff. Should _never_ happen
on a production kernel.

15 years agoVFS: fetch_name() buffer underflow (reported by John Peace, bug #305)
David van Moolenbroek [Sat, 29 Aug 2009 08:22:50 +0000 (08:22 +0000)]
VFS: fetch_name() buffer underflow (reported by John Peace, bug #305)

15 years agoIDT is initialized in idt_init() not in prot_init()
Tomas Hruby [Fri, 28 Aug 2009 15:55:30 +0000 (15:55 +0000)]
IDT is initialized in idt_init() not in prot_init()

This is a backport form the SMP branch. Not required here, it only makes life
for SMP easier. And future merging too.

- filling the IDT is removed from prot_init()

- struct gate_table_s is a public type

- gate_table_pic is a global array as it is used by APIC code too

- idt_copy_vectors() is also global and used by idt_init() as well as
  apic_idt_init()

- idt_init() is called right after prot_init() in system_init()

15 years agoRe-disable complete_bars, it was not needed for PRO/100 despite the error message
Erik van der Kouwe [Thu, 27 Aug 2009 07:10:03 +0000 (07:10 +0000)]
Re-disable complete_bars, it was not needed for PRO/100 despite the error message

15 years agoExtend Intel PRO/100 support
Erik van der Kouwe [Wed, 26 Aug 2009 21:01:46 +0000 (21:01 +0000)]
Extend Intel PRO/100 support

15 years agourlget: broken ftpget call, reported by Charles Littlefield
David van Moolenbroek [Sun, 23 Aug 2009 13:53:03 +0000 (13:53 +0000)]
urlget: broken ftpget call, reported by Charles Littlefield

15 years agosupport for TCP sockets in send/sendto/recv/recvfrom
David van Moolenbroek [Fri, 21 Aug 2009 09:59:09 +0000 (09:59 +0000)]
support for TCP sockets in send/sendto/recv/recvfrom

15 years agoUse su to allow tests 3, 6, 17, 18, 19, 21 and 25 to work as root, making testing...
Erik van der Kouwe [Tue, 18 Aug 2009 19:58:34 +0000 (19:58 +0000)]
Use su to allow tests 3, 6, 17, 18, 19, 21 and 25 to work as root, making testing easier

15 years agoFix HUGE_VAL warnings
Erik van der Kouwe [Tue, 18 Aug 2009 19:10:48 +0000 (19:10 +0000)]
Fix HUGE_VAL warnings

15 years agoFix HUGE_VAL warnings
Erik van der Kouwe [Tue, 18 Aug 2009 19:10:20 +0000 (19:10 +0000)]
Fix HUGE_VAL warnings

15 years agoVFS quits gracefully if mount fails and mounted_on remains uninitialized
Tomas Hruby [Tue, 18 Aug 2009 13:30:05 +0000 (13:30 +0000)]
VFS quits gracefully if mount fails and mounted_on remains uninitialized

15 years agoAdded a hack to start binaries from the boot image only. In particular, setting
Thomas Veerman [Tue, 18 Aug 2009 11:36:01 +0000 (11:36 +0000)]
Added a hack to start binaries from the boot image only. In particular, setting
bin_img=1 in the boot monitor will make sure that during the boot procedure the
mfs binary that is part of the boot image is the only binary that is used to
mount partitions. This is useful when for some reason the mfs binary on disk
malfunctions, rendering Minix unable to boot. By setting bin_img=1, the binary
on disk is ignored and the binary in the boot image is used instead.

- 'service' now accepts an additional flag -r. -r implies -c. -r instructs RS
  to first look in memory if the binary has already been copied to memory and
  execute that version, instead of loading the binary from disk. For example,
  the first time a MFS is being started it is copied (-c) to memory and
  executed from there. The second time MFS is being started this way, RS will
  look in memory for a previously copied MFS binary and reuse it if it exists.
- The mount and newroot commands now accept an additional flag -i, which
  instructs them to set the MS_REUSE flag in the mount flags.
- The mount system call now supports the MS_REUSE flag and invokes 'service'
  with the -r flag when MS_REUSE is set.
- /etc/rc and the rc script that's included in the boot image check for the
  existence of the bin_img flag in the boot monitor, and invoke mount and
  newroot with the -i flag accordingly.

15 years agosmall errno.h corrections
David van Moolenbroek [Tue, 18 Aug 2009 09:26:51 +0000 (09:26 +0000)]
small errno.h corrections

15 years agoFixed some warnings
Erik van der Kouwe [Mon, 17 Aug 2009 18:49:15 +0000 (18:49 +0000)]
Fixed some warnings

15 years agoFixed some warnings
Erik van der Kouwe [Mon, 17 Aug 2009 18:49:07 +0000 (18:49 +0000)]
Fixed some warnings

15 years agoFixed some warnings
Erik van der Kouwe [Mon, 17 Aug 2009 18:48:57 +0000 (18:48 +0000)]
Fixed some warnings

15 years agoFixed some warnings
Erik van der Kouwe [Mon, 17 Aug 2009 18:48:27 +0000 (18:48 +0000)]
Fixed some warnings

15 years agoFix warning in panic
Erik van der Kouwe [Mon, 17 Aug 2009 17:56:34 +0000 (17:56 +0000)]
Fix warning in panic

15 years agoMissing defines preventing recursive includesion in some include/sys/*.h files
Tomas Hruby [Mon, 17 Aug 2009 14:34:14 +0000 (14:34 +0000)]
Missing defines preventing recursive includesion in some include/sys/*.h files

15 years agoRemoved obsolete declarations in include/ipc.h
Erik van der Kouwe [Sun, 16 Aug 2009 15:12:07 +0000 (15:12 +0000)]
Removed obsolete declarations in include/ipc.h

15 years agoNanosleep was implemented twice, removed from _sleep.c
Erik van der Kouwe [Sun, 16 Aug 2009 12:55:59 +0000 (12:55 +0000)]
Nanosleep was implemented twice, removed from _sleep.c

15 years agoFunction nanosleep now checks arguments
Erik van der Kouwe [Sun, 16 Aug 2009 12:13:33 +0000 (12:13 +0000)]
Function nanosleep now checks arguments

15 years agoMan page for new function nanosleep(3), updated man page for sleep(3)
Erik van der Kouwe [Sun, 16 Aug 2009 12:12:40 +0000 (12:12 +0000)]
Man page for new function nanosleep(3), updated man page for sleep(3)

15 years agoman page fix: sigaction.2 signals list
David van Moolenbroek [Sat, 15 Aug 2009 23:27:32 +0000 (23:27 +0000)]
man page fix: sigaction.2 signals list

15 years agoPM: make SIGBUS, but not SIGUSR1 or SIGUSR2, cause a core dump
David van Moolenbroek [Sat, 15 Aug 2009 23:23:24 +0000 (23:23 +0000)]
PM: make SIGBUS, but not SIGUSR1 or SIGUSR2, cause a core dump

15 years agorun test 41, too (oops)
David van Moolenbroek [Sat, 15 Aug 2009 22:31:38 +0000 (22:31 +0000)]
run test 41, too (oops)

15 years agonanosleep(3), and sleep(3) rewrite, by Erik van der Kouwe
David van Moolenbroek [Sat, 15 Aug 2009 22:14:48 +0000 (22:14 +0000)]
nanosleep(3), and sleep(3) rewrite, by Erik van der Kouwe

15 years agoSupport for setitimer(ITIMER_VIRTUAL/ITIMER_PROF). New test (41) for setitimer.
David van Moolenbroek [Sat, 15 Aug 2009 21:37:26 +0000 (21:37 +0000)]
Support for setitimer(ITIMER_VIRTUAL/ITIMER_PROF). New test (41) for setitimer.

15 years agoSupport for setitimer(ITIMER_REAL).
David van Moolenbroek [Sat, 15 Aug 2009 16:09:32 +0000 (16:09 +0000)]
Support for setitimer(ITIMER_REAL).

15 years agofix test14's "clever" (broken) filename generation
David van Moolenbroek [Sat, 15 Aug 2009 15:13:57 +0000 (15:13 +0000)]
fix test14's "clever" (broken) filename generation

15 years agoawk: support for whitespace between array name and bracket
David van Moolenbroek [Sat, 15 Aug 2009 12:05:41 +0000 (12:05 +0000)]
awk: support for whitespace between array name and bracket

15 years agoawk: support for ENVIRON
David van Moolenbroek [Sat, 15 Aug 2009 11:34:41 +0000 (11:34 +0000)]
awk: support for ENVIRON

15 years agou64_t for human beings - the high and low parts are named hi and lo, lib/sysutil...
Tomas Hruby [Thu, 13 Aug 2009 15:47:49 +0000 (15:47 +0000)]
u64_t for human beings - the high and low parts are named hi and lo, lib/sysutil/profile.c updated accordingly

15 years agomove _mount.c from lib/posix to lib/other
David van Moolenbroek [Thu, 13 Aug 2009 09:55:50 +0000 (09:55 +0000)]
move _mount.c from lib/posix to lib/other

15 years agoFixed compilation issue.
Thomas Veerman [Thu, 13 Aug 2009 09:02:43 +0000 (09:02 +0000)]
Fixed compilation issue.

15 years ago - Moved (u)mount prototypes from unistd.h to sys/mount.h.
Thomas Veerman [Wed, 12 Aug 2009 19:57:37 +0000 (19:57 +0000)]
 - Moved (u)mount prototypes from unistd.h to sys/mount.h.
 - Prepared mount system call to accept multiple mount flags
   instead of just read_only (however, it remains backwards
   compatible).
 - Updated the man mount(2) to reflect new header file usage.
 - Updated badblocks, newroot, mount, and umount commands to use the
   new header file.

15 years agocompile and install mdb(1) by default again
David van Moolenbroek [Tue, 11 Aug 2009 09:08:33 +0000 (09:08 +0000)]
compile and install mdb(1) by default again

15 years agovm_assert macros fix up
Tomas Hruby [Tue, 11 Aug 2009 07:53:32 +0000 (07:53 +0000)]
vm_assert macros fix up

15 years agoLance cleanup
Arun Thomas [Wed, 22 Jul 2009 12:36:19 +0000 (12:36 +0000)]
Lance cleanup

15 years agoFixed case error
Thomas Veerman [Wed, 22 Jul 2009 08:59:57 +0000 (08:59 +0000)]
Fixed case error

15 years agoMFS put_inode issues (reported by Maurizio Lombardi)
David van Moolenbroek [Wed, 22 Jul 2009 08:54:28 +0000 (08:54 +0000)]
MFS put_inode issues (reported by Maurizio Lombardi)

15 years agoFix VirtualBox Lance bug; ec_reinit should be called only once.
Arun Thomas [Tue, 21 Jul 2009 13:13:45 +0000 (13:13 +0000)]
Fix VirtualBox Lance bug; ec_reinit should be called only once.

15 years agoAdded select test
Thomas Veerman [Tue, 14 Jul 2009 09:43:33 +0000 (09:43 +0000)]
Added select test

15 years agoFixed a minor select bug:
Thomas Veerman [Tue, 14 Jul 2009 09:39:05 +0000 (09:39 +0000)]
Fixed a minor select bug:
 - When one does a select on a file descriptor that is meaningless for that particular file type, select shall indicate that the file descriptor is ready for that particular operation and that the file descriptor has no exceptional condition pending.

15 years agoIS: fix up PM flags field somewhat
David van Moolenbroek [Sun, 12 Jul 2009 15:30:59 +0000 (15:30 +0000)]
IS: fix up PM flags field somewhat

15 years agomake remove(3) remove directories as well
David van Moolenbroek [Sun, 12 Jul 2009 14:44:37 +0000 (14:44 +0000)]
make remove(3) remove directories as well

15 years agoMFS: remove some redundant code (reported by Maurizio Lombardi)
David van Moolenbroek [Sun, 12 Jul 2009 13:57:34 +0000 (13:57 +0000)]
MFS: remove some redundant code (reported by Maurizio Lombardi)

15 years agoRS: the plural of 'child' is 'children'
David van Moolenbroek [Sat, 11 Jul 2009 17:59:05 +0000 (17:59 +0000)]
RS: the plural of 'child' is 'children'

15 years agomake unstack work on gcc-compiled binaries
David van Moolenbroek [Sat, 11 Jul 2009 17:55:24 +0000 (17:55 +0000)]
make unstack work on gcc-compiled binaries

15 years agoPM cleanup: remove unused fields from mproc structure
David van Moolenbroek [Sat, 11 Jul 2009 17:15:33 +0000 (17:15 +0000)]
PM cleanup: remove unused fields from mproc structure

15 years agoPM: fix ptrace(T_EXIT) 'exit_proc: not idle' race condition.
David van Moolenbroek [Sat, 11 Jul 2009 13:22:56 +0000 (13:22 +0000)]
PM: fix ptrace(T_EXIT) 'exit_proc: not idle' race condition.

15 years agoPM: add clarifying comment about exiting system processes early (thanks Philip)
David van Moolenbroek [Sat, 11 Jul 2009 11:19:39 +0000 (11:19 +0000)]
PM: add clarifying comment about exiting system processes early (thanks Philip)

15 years agoMFS fixes:
David van Moolenbroek [Sat, 11 Jul 2009 10:36:57 +0000 (10:36 +0000)]
MFS fixes:
- Don't dereference NULL dir inode in advance_* (reported by Maurizio Lombardi)
- Fix potential inode reference leak in fs_slink_*

15 years agoPM: add EXITING process flag as stopgap between starting coredump and setting ZOMBIE...
David van Moolenbroek [Thu, 9 Jul 2009 22:33:56 +0000 (22:33 +0000)]
PM: add EXITING process flag as stopgap between starting coredump and setting ZOMBIE flag

15 years agolet IS call getuptime()
David van Moolenbroek [Thu, 9 Jul 2009 20:54:35 +0000 (20:54 +0000)]
let IS call getuptime()

15 years agoFix race condition in test 25
David van Moolenbroek [Thu, 9 Jul 2009 11:44:35 +0000 (11:44 +0000)]
Fix race condition in test 25

15 years agoPM cleanup: remove obsolete HAS_DMA flag
David van Moolenbroek [Wed, 8 Jul 2009 20:08:46 +0000 (20:08 +0000)]
PM cleanup: remove obsolete HAS_DMA flag

15 years agoPM cleanup: merge exit and coredump paths
David van Moolenbroek [Wed, 8 Jul 2009 17:16:53 +0000 (17:16 +0000)]
PM cleanup: merge exit and coredump paths

15 years agoRemove leftover PowerPC cruft. Reported by Evgeniy Ivanov.
David van Moolenbroek [Tue, 7 Jul 2009 18:55:11 +0000 (18:55 +0000)]
Remove leftover PowerPC cruft. Reported by Evgeniy Ivanov.

15 years agoMiscellaneous PM fixes:
David van Moolenbroek [Sun, 5 Jul 2009 22:48:18 +0000 (22:48 +0000)]
Miscellaneous PM fixes:
o Don't call vm_willexit() more than once upon normal process exit
o Correct two cases of indenting of the no-discussion-possible kind
o Perform slightly stricter ptrace(2) checks:
  - process calling ptrace must be target process's parent
  - process must call wait/waitpid before using ptrace on stopped child
  - no ptrace on zombies
o Allow user processes to use ptrace(T_STOP) to stop an active child

15 years agoIPC privileges fixes
David van Moolenbroek [Thu, 2 Jul 2009 16:25:31 +0000 (16:25 +0000)]
IPC privileges fixes

Kernel:
o Remove s_ipc_sendrec, instead using s_ipc_to for all send primitives
o Centralize s_ipc_to bit manipulation,
  - disallowing assignment of bits pointing to unused priv structs;
  - preventing send-to-self by not setting bit for own priv struct;
  - preserving send mask matrix symmetry in all cases
o Add IPC send mask checks to SENDA, which were missing entirely somehow
o Slightly improve IPC stats accounting for SENDA
o Remove SYSTEM from user processes' send mask
o Half-fix the dependency between boot image order and process numbers,
  - correcting the table order of the boot processes;
  - documenting the order requirement needed for proper send masks;
  - warning at boot time if the order is violated

RS:
o Add support in /etc/drivers.conf for servers that talk to user processes,
  - disallowing IPC to user processes if no "ipc" field is present
  - adding a special "USER" label to explicitly allow IPC to user processes
o Always apply IPC masks when specified; remove -i flag from service(8)
o Use kernel send mask symmetry to delay adding IPC permissions for labels
  that do not exist yet, adding them to that label's process upon creation
o Add VM to ipc permissions list for rtl8139 and fxp in drivers.conf

Left to future fixes:
o Removal of the table order vs process numbers dependency altogether,
  possibly using per-process send list structures as used for SYSTEM calls
o Proper assignment of send masks to boot processes;
  some of the assigned (~0) masks are much wider than necessary
o Proper assignment of IPC send masks for many more servers in drivers.conf
o Removal of the debugging warning about the now legitimate case where RS's
  add_forward_ipc cannot find the IPC destination's label yet

15 years agomore small man page fixes
David van Moolenbroek [Thu, 25 Jun 2009 10:41:55 +0000 (10:41 +0000)]
more small man page fixes

15 years agorandom man page update: cut.1
David van Moolenbroek [Wed, 24 Jun 2009 21:13:28 +0000 (21:13 +0000)]
random man page update: cut.1

15 years agorandom man page fix: cawf.1
David van Moolenbroek [Wed, 24 Jun 2009 11:42:05 +0000 (11:42 +0000)]
random man page fix: cawf.1

15 years agofix installation of home directories in setup.sh
David van Moolenbroek [Tue, 23 Jun 2009 13:40:32 +0000 (13:40 +0000)]
fix installation of home directories in setup.sh

15 years agoRestore last(1) and uptime(1) building/installing.
Arun Thomas [Tue, 23 Jun 2009 12:22:35 +0000 (12:22 +0000)]
Restore last(1) and uptime(1) building/installing.

15 years agomake mdb(1) compile again
David van Moolenbroek [Wed, 17 Jun 2009 14:59:22 +0000 (14:59 +0000)]
make mdb(1) compile again

15 years agoremove last traces of FSDEVMAP svrctl
David van Moolenbroek [Sat, 13 Jun 2009 13:09:14 +0000 (13:09 +0000)]
remove last traces of FSDEVMAP svrctl

15 years agobetter solution for poweroff(8)
David van Moolenbroek [Fri, 12 Jun 2009 13:17:33 +0000 (13:17 +0000)]
better solution for poweroff(8)

15 years agopoweroff(8) aesthetics
David van Moolenbroek [Fri, 12 Jun 2009 13:13:29 +0000 (13:13 +0000)]
poweroff(8) aesthetics

15 years agoadded poweroff(8)
David van Moolenbroek [Fri, 12 Jun 2009 13:02:51 +0000 (13:02 +0000)]
added poweroff(8)

15 years agols(1) manpage corrections
Arun Thomas [Sat, 30 May 2009 11:01:17 +0000 (11:01 +0000)]
ls(1) manpage corrections

-Add missing '-n' option to synopsis.
-MINIX 3 does support symbolic links now.

Thanks to River Tarnell for the patch.

15 years agoRelease.sh now uses packages.install and package_sources.install to
Arun Thomas [Sat, 30 May 2009 09:31:19 +0000 (09:31 +0000)]
Release.sh now uses packages.install and package_sources.install to
determine which packages and package sources to include on the
installation media, as opposed to including everything in the
PACKAGEDIR AND PACKAGESOURCEDIR directories.

15 years agoSupport for VMWare Workstation 6.x
Arun Thomas [Wed, 27 May 2009 23:35:34 +0000 (23:35 +0000)]
Support for VMWare Workstation 6.x

VMWare Workstation 6.x would previously die when running MINIX 3 with an
IOSPACE assertion and several error messages about multiply registered
I/O ports. The assertion is triggered when we probe for BAR sizes in
record_bar(). The solution: The PCI driver now disables I/O and mem
access before probing for BAR sizes.

Bumped up NR_PCIDEV and NR_PCIBUS, since Workstation 6.x virtualizes
more PCI buses and devices.

15 years agoUpdate issue.install for 3.1.4
Arun Thomas [Wed, 27 May 2009 12:42:32 +0000 (12:42 +0000)]
Update issue.install for 3.1.4

15 years agomake lseek64 return correct new position
David van Moolenbroek [Sat, 23 May 2009 13:47:17 +0000 (13:47 +0000)]
make lseek64 return correct new position

15 years agoupdate readlink(2) manpage accordingly
David van Moolenbroek [Wed, 20 May 2009 11:49:10 +0000 (11:49 +0000)]
update readlink(2) manpage accordingly

15 years agomove symlink type check for readlink() into VFS, and return the right POSIX error
David van Moolenbroek [Wed, 20 May 2009 09:46:06 +0000 (09:46 +0000)]
move symlink type check for readlink() into VFS, and return the right POSIX error

15 years agoVFS consistency: use I_PIPE/NO_PIPE when checking v_pipe
David van Moolenbroek [Tue, 19 May 2009 14:34:44 +0000 (14:34 +0000)]
VFS consistency: use I_PIPE/NO_PIPE when checking v_pipe

15 years agodon't include /usr/src changes in packages.
Ben Gras [Tue, 19 May 2009 10:55:15 +0000 (10:55 +0000)]
don't include /usr/src changes in packages.

15 years ago4MB mask
Ben Gras [Mon, 18 May 2009 15:56:13 +0000 (15:56 +0000)]
4MB mask

15 years agomap in kernel in 4MB, global-bit-set 'pages' if hardware
Ben Gras [Mon, 18 May 2009 15:34:42 +0000 (15:34 +0000)]
map in kernel in 4MB, global-bit-set 'pages' if hardware
supports it. helps performance.

broken use of region data structure for kernel mapping to be fixed.

15 years agoVarious VFS and MFS fixes to improve correctness, consistency and
David van Moolenbroek [Mon, 18 May 2009 11:27:12 +0000 (11:27 +0000)]
Various VFS and MFS fixes to improve correctness, consistency and
POSIX compliance.

VFS changes:
* truncate() on a file system mounted read-only no longer panics MFS.
* ftruncate() and fcntl(F_FREESP) now check for write permission on
  the file descriptor instead of the file, write().
* utime(), chown() and fchown() now check for file system read-only
  status.

MFS changes:
* link() and rename() no longer return the internal EENTERMOUNT and
  ELEAVEMOUNT errors to the application as part of a check on the
  source path.
* rename() now treats EENTERMOUNT from the destination path check as
  an error, preventing file system corruption from renaming a normal
  directory to an existing mountpoint directory.
* mountpoints (mounted-on dirs) are hidden better during lookups:
  - if a lookup starts from a mountpoint, the first component has to
    be ".." (anything else being a VFS-FS protocol violation).
  - in that case, the permissions of the mountpoint are not checked.
  - in all other cases, visiting a mountpoint always results in
    EENTERMOUNT.
* a lookup on ".." from a mount root or chroot(2) root no longer
  succeeds if the caller does not have search permission on that
  directory.
* POSIX: getdents() now updates directory access times.
* POSIX: readlink() now returns partial results instead of ERANGE.

Miscellaneous changes:
* semaphore file handling bug (leading to hangs) fixed in test 32.

The VFS changes should now put the burden of checking for read-only
status of file systems entirely on VFS, and limit the access
permission checks that file systems have to perform, to checking
search permission on directories during lookups. From this point on,
any deviation from that spceification should be considered a bug.
Note that for legacy reasons, the root partition is assumed to be
mounted read-write.

15 years agoLibrary call for cpu features; make kernel and vm use this to query cpu
Ben Gras [Fri, 15 May 2009 17:07:36 +0000 (17:07 +0000)]
Library call for cpu features; make kernel and vm use this to query cpu
features (specifically: 4MB pages and TLB global bit).  Only enable
these features in CR4 if available. 4MB pages to be used in the near
future.

15 years agocorrect the revision variable used in /etc/version
Ben Gras [Fri, 15 May 2009 13:02:23 +0000 (13:02 +0000)]
correct the revision variable used in /etc/version

15 years ago-Remove qemu_pci boot variable. Useres no longer need to set qemu_pci when
Arun Thomas [Thu, 14 May 2009 19:07:37 +0000 (19:07 +0000)]
-Remove qemu_pci boot variable. Useres no longer need to set qemu_pci when
booting MINIX under QEMU/KVM.
-Kept the diagnostic message, however.

15 years agoC CPUID interface.
Ben Gras [Thu, 14 May 2009 15:55:28 +0000 (15:55 +0000)]
C CPUID interface.

15 years ago-Installation info is on the wiki now, so remove setup guides and update
Arun Thomas [Thu, 14 May 2009 15:54:02 +0000 (15:54 +0000)]
-Installation info is on the wiki now, so remove setup guides and update
README.
-Remove obsolete FAT partitioning utility.
-Update startup banner.