]>
Zhao Yanbai Git Server - minix.git/log
Thomas Veerman [Tue, 27 Sep 2011 15:15:51 +0000 (15:15 +0000)]
Revert to using flushtlb instead of invlpg
Somehow the usage of invlpg causes Minix to crash on Qemu. Reverting
temporarily until we have a proper fix.
Ben Gras [Wed, 21 Sep 2011 19:16:34 +0000 (19:16 +0000)]
worldstone benchmark script
. also imports seq(1) to help it
. add -C option to time(1) to print tsc difference
. increase col width for ministat for tsc numbers
Ben Gras [Wed, 21 Sep 2011 17:52:45 +0000 (17:52 +0000)]
mfs: improve & simplify secondary cache logic
. fixes "!" errors when booting from cd
Arun Thomas [Mon, 19 Sep 2011 15:28:03 +0000 (17:28 +0200)]
sef: build sef_debug_header only when needed
Ben Gras [Mon, 19 Sep 2011 15:36:21 +0000 (15:36 +0000)]
vm: undo accidental JUNKFREE on
Arun Thomas [Mon, 19 Sep 2011 14:37:48 +0000 (16:37 +0200)]
kernel: Remove legacy boot vars from pre_init
Ben Gras [Wed, 31 Aug 2011 22:01:59 +0000 (22:01 +0000)]
boot e820 memory detection fixes
Arun Thomas [Fri, 16 Sep 2011 18:03:15 +0000 (20:03 +0200)]
Remove legacy boot monitor vars
Arun Thomas [Fri, 16 Sep 2011 15:31:07 +0000 (17:31 +0200)]
Add MKBOOTPARAM option
Arun Thomas [Fri, 16 Sep 2011 12:57:49 +0000 (14:57 +0200)]
MKSYSDEBUG: conditionally compile more debug code
Thomas Veerman [Thu, 15 Sep 2011 15:39:13 +0000 (15:39 +0000)]
Cleanup more resources upon exit
Thomas Veerman [Tue, 13 Sep 2011 16:00:39 +0000 (16:00 +0000)]
Remove debug print
Thomas Veerman [Tue, 13 Sep 2011 13:02:47 +0000 (13:02 +0000)]
Unmap drivers upon exit
Thomas Veerman [Mon, 12 Sep 2011 09:00:24 +0000 (09:00 +0000)]
Fix off-by-one errors and increase PATH_MAX to 1024
In some places it was assumed that PATH_MAX does not include a
terminating null character.
Increases PATH_MAX to 1024 to get in sync with NetBSD. Required some
rewriting in AVFS to keep memory usage low (the stack in use by a thread
is very small).
Ben Gras [Fri, 9 Sep 2011 16:32:13 +0000 (16:32 +0000)]
ext2: replace debug printf by assert
Ben Gras [Thu, 8 Sep 2011 16:49:54 +0000 (16:49 +0000)]
add -lminixfs with fs support routines
. move cache size heuristic from mfs there
so mfs and ext2 can share it
. add vfs credentials retrieving function, with
backwards compatability from previous struct
format, to be used by both ext2 and mfs
. fix for ext2 - STATICINIT was fed no.
of bytes instead of no. of elements, overallocating
memory by a megabyte or two for the superblock
Thomas Veerman [Thu, 8 Sep 2011 15:09:41 +0000 (15:09 +0000)]
Fix off-by-one error
Thomas Veerman [Thu, 8 Sep 2011 13:57:03 +0000 (13:57 +0000)]
Cleanup servers to make GCC/Clang a little happier
Thomas Veerman [Thu, 8 Sep 2011 12:23:03 +0000 (12:23 +0000)]
Check group range for sanity
Arun Thomas [Wed, 7 Sep 2011 15:52:48 +0000 (17:52 +0200)]
Add MKTRACE
Thomas Veerman [Tue, 6 Sep 2011 12:35:48 +0000 (12:35 +0000)]
Backwards compatibility fixup for GCC/Clang
Thomas Veerman [Tue, 6 Sep 2011 10:11:18 +0000 (10:11 +0000)]
Make AVFS resilient against failing back calls
Thomas Veerman [Mon, 5 Sep 2011 13:56:14 +0000 (13:56 +0000)]
Increase gid_t and uid_t to 32 bits
Increase gid_t and uid_t to 32 bits and provide backwards compatibility
where needed.
Thomas Veerman [Wed, 31 Aug 2011 13:38:28 +0000 (13:38 +0000)]
Make dev_t 32-bits and provide backwards compatibility
Ben Gras [Thu, 1 Sep 2011 14:41:57 +0000 (14:41 +0000)]
add /etc/rc.subr and /etc/rc.conf
Arun Thomas [Fri, 2 Sep 2011 14:57:22 +0000 (16:57 +0200)]
Add MKLIVEUPDATE and MKSTATECTL
Ben Gras [Thu, 1 Sep 2011 16:27:28 +0000 (16:27 +0000)]
get rid of leftover _DIRENT_NAME_LEN=61
Ben Gras [Thu, 1 Sep 2011 16:14:04 +0000 (16:14 +0000)]
sort is not a nbsd port (yet)
Ben Gras [Thu, 1 Sep 2011 15:05:12 +0000 (15:05 +0000)]
nbsd_fetch: force cvs to use ssh
Ben Gras [Thu, 1 Sep 2011 13:03:15 +0000 (13:03 +0000)]
define MSG_*
. these are not actually supported at runtime
. will allow packages to compile easier, and still work
in some cases (e.g. glib2)
Ben Gras [Wed, 31 Aug 2011 22:00:42 +0000 (22:00 +0000)]
release.sh: undo tarup add
Antoine Leca [Wed, 31 Aug 2011 11:54:31 +0000 (13:54 +0200)]
Range-check values building mbdev in boot monitor
Arun Thomas [Tue, 30 Aug 2011 19:10:34 +0000 (21:10 +0200)]
libsys: don't pull in strerror
Evgeniy Ivanov [Mon, 29 Aug 2011 19:36:48 +0000 (23:36 +0400)]
Fix ext2 symlink bug.
rip->i_size is a target length without trailing '\0'.
Reported by Ben Gras.
Thomas Veerman [Fri, 26 Aug 2011 15:43:30 +0000 (15:43 +0000)]
Unverbose mount
Thomas Veerman [Fri, 26 Aug 2011 15:14:55 +0000 (15:14 +0000)]
Let FSes exit themselves upon system shutdown
During shutdown all processes are semi-exited and FSes are unmounted.
This semi-exit causes trouble for FUSE mounts as they still need access
to file descriptors and working directory in order to unmount.
Thomas Veerman [Fri, 26 Aug 2011 13:16:16 +0000 (13:16 +0000)]
Clean up tests and do runtime test for max name length
- Remove unused code
- Use standard functions declared in common.c
- Change tests to do a runtime test for the max name length of a path
component (aka NAME_MAX). The actual value might differ from the hard
coded NAME_MAX depending on the file system used.
Thomas Veerman [Mon, 22 Aug 2011 15:02:13 +0000 (15:02 +0000)]
Tell VFS how many requests an FS can handle concurrently
Thomas Veerman [Mon, 22 Aug 2011 16:24:29 +0000 (16:24 +0000)]
Store and use max concurrent requests
Vivek Prakash [Sun, 14 Aug 2011 14:49:39 +0000 (14:49 +0000)]
import NetBSD mkdir
. add symlink from old location /usr/bin/mkdir for
for compatability
Thomas Veerman [Mon, 22 Aug 2011 13:44:24 +0000 (13:44 +0000)]
Increase max number of arguments
Thomas Veerman [Mon, 22 Aug 2011 13:24:35 +0000 (13:24 +0000)]
Turn off block read debugs and turn on mount debugs
Thomas Veerman [Mon, 22 Aug 2011 13:08:38 +0000 (13:08 +0000)]
Report error instead panicing
Thomas Veerman [Mon, 22 Aug 2011 13:08:03 +0000 (13:08 +0000)]
Remove verbosity
Thomas Veerman [Mon, 22 Aug 2011 11:48:16 +0000 (11:48 +0000)]
Reduce block special file (thread) lock scope
Thomas Veerman [Mon, 22 Aug 2011 11:46:58 +0000 (11:46 +0000)]
Allow block special files to be file locked
Thomas Veerman [Mon, 22 Aug 2011 10:10:03 +0000 (10:10 +0000)]
Add entry for ntfs-3g
Thomas Veerman [Fri, 19 Aug 2011 14:12:07 +0000 (14:12 +0000)]
Fix locking issues with back calls from FSes
Ben Gras [Thu, 18 Aug 2011 22:30:51 +0000 (22:30 +0000)]
malloc build fixes
Ben Gras [Thu, 18 Aug 2011 00:08:38 +0000 (00:08 +0000)]
use minix malloc
. default jemalloc is not too easy to compile without threads
libraries/types
. non-default malloc has odd virtual address space binge problem
. switch to ack/minix malloc in old libc for now
Arun Thomas [Thu, 18 Aug 2011 16:06:24 +0000 (18:06 +0200)]
tools/Makefile: tweak AVFS/APFS logic
-Fixes GCC/clang build issue
Ben Gras [Thu, 18 Aug 2011 13:45:10 +0000 (13:45 +0000)]
make time functions pass PCTS test
. fixes a problem in building gawk wanting to provide
its own mktime otherwise
Arun Thomas [Thu, 18 Aug 2011 12:56:34 +0000 (14:56 +0200)]
Cleaner MKSYSDEBUG option
Ben Gras [Thu, 18 Aug 2011 13:05:27 +0000 (13:05 +0000)]
mtree: skip all major-0 devices, not just (0,1)
Ben Gras [Wed, 17 Aug 2011 16:27:46 +0000 (16:27 +0000)]
is: stopgap for broken _USEVFS check
Ben Gras [Thu, 4 Aug 2011 23:15:16 +0000 (23:15 +0000)]
increase system-wide filename limit to 255
. move mfs-specific struct, constants to mfs/, so
mfs-specific, on-disk format structs and consts are
fully isolated from generic structs and functions
. removes de and readfs utils
Thomas Veerman [Wed, 17 Aug 2011 13:53:22 +0000 (13:53 +0000)]
Update UPDATING document on how to build AVFS
Thomas Veerman [Wed, 17 Aug 2011 13:42:38 +0000 (13:42 +0000)]
Range fix from PFS
Thomas Veerman [Wed, 17 Aug 2011 13:23:45 +0000 (13:23 +0000)]
Merge AVFS and APFS
Ben Gras [Fri, 5 Aug 2011 16:13:33 +0000 (16:13 +0000)]
pfs: fix range check
. debugged and fixed by Jan Wieck
Ben Gras [Wed, 17 Aug 2011 11:38:41 +0000 (11:38 +0000)]
add mail group
Ben Gras [Mon, 15 Aug 2011 17:33:11 +0000 (17:33 +0000)]
add postfix, postgresql users
Evgeniy Ivanov [Thu, 11 Aug 2011 15:12:07 +0000 (19:12 +0400)]
MFS: optimize dentry acllocation.
When search for free slot always cache position of last allocated slot,
so next time when need to allocate new slot, we can search from that
position.
Ben Gras [Tue, 16 Aug 2011 20:40:52 +0000 (20:40 +0000)]
install: correct error message
Arun Thomas [Tue, 16 Aug 2011 19:48:03 +0000 (21:48 +0200)]
Rename MKDEBUG to MKSYSDEBUG
Ben Gras [Tue, 16 Aug 2011 15:22:48 +0000 (15:22 +0000)]
pre-install pkg_tarup
Arun Thomas [Tue, 16 Aug 2011 15:18:55 +0000 (17:18 +0200)]
Optionally disable kernel debug code
Ben Gras [Mon, 15 Aug 2011 21:46:23 +0000 (21:46 +0000)]
release.sh: generic package names
Ben Gras [Mon, 15 Aug 2011 21:40:14 +0000 (21:40 +0000)]
release.sh: minor -L fix
Evgeniy Ivanov [Thu, 11 Aug 2011 18:48:26 +0000 (22:48 +0400)]
Fix ext2 dentry allocation glitch.
When remove dentry, check if cached position is greater than removed
one.
Evgeniy Ivanov [Fri, 12 Aug 2011 17:40:52 +0000 (21:40 +0400)]
Add missing put_inode().
Fixes bug from
a9a45cddc .
Ben Gras [Sun, 14 Aug 2011 12:35:55 +0000 (12:35 +0000)]
test set build fixes for clang/gcc
Thomas Cort [Sun, 14 Aug 2011 12:41:39 +0000 (12:41 +0000)]
mkdir: allow 'mkdir -p' with trailing '/'
Let's suppose that /usr/tmp exists and one wants /usr/tmp/a/b
If one runs "mkdir -p /usr/tmp/a/b/" (the '/' at the end is
important), then a "File exists" error comes up. Example:
$ rm -rf /usr/tmp/a
$ mkdir -p /usr/tmp/a/b/
/usr/tmp/a/b/: File exists
This breaks gcc47 installation when C++ is enabled, and this
isn't the behaviour of mkdir on NetBSD nor Linix.
This patch fixes the above issue by dropping the trailing '/'.
Ben Gras [Fri, 12 Aug 2011 20:59:23 +0000 (20:59 +0000)]
kernel: don't use -ffreestanding
. workaround for clang's stdint.h __STDC_HOSTED__ test
that causes the host stdint.h to be ignored for -ffreestanding,
causing a type to be double-defined in the kernel
Ben Gras [Fri, 12 Aug 2011 14:14:48 +0000 (14:14 +0000)]
kernel: show segment-adjusted pagefault addr
Arun Thomas [Fri, 12 Aug 2011 15:05:08 +0000 (17:05 +0200)]
minlib: Add vm_query_exit
Ben Gras [Mon, 1 Aug 2011 13:35:34 +0000 (15:35 +0200)]
kernel: invlpg facility
. only use for single-page invalidations initially
. shows tiny but statistically significant performance
improvement; will be more helpful in certain VM debug
modes
Evgeniy Ivanov [Wed, 10 Aug 2011 20:56:44 +0000 (20:56 +0000)]
Fix bugs in ext2 found by clang static analyzer
Arun Thomas [Thu, 11 Aug 2011 15:45:20 +0000 (17:45 +0200)]
pm: remove dead function
Evgeniy Ivanov [Wed, 10 Aug 2011 20:46:33 +0000 (20:46 +0000)]
Fix bugs found in MFS by clang static analyzer.
Ben Gras [Wed, 10 Aug 2011 13:37:20 +0000 (13:37 +0000)]
don't keep minix-port.patch files in repo
. causes git noise, and unnecessary conflicts
. are easily generated with 'make nbsd_diff' in tools/
Ben Gras [Wed, 10 Aug 2011 10:39:45 +0000 (10:39 +0000)]
recognize ccc-analyzer as gnu-style compiler
. for clang static analysis
Ben Gras [Tue, 9 Aug 2011 16:59:01 +0000 (16:59 +0000)]
tty: handle REVIVE case on console device
. can happen on e.g. ^S
. reported by Stephen Hatton
Arun Thomas [Tue, 9 Aug 2011 08:39:33 +0000 (10:39 +0200)]
Build gcov code only if MKCOVERAGE is yes
Arun Thomas [Mon, 8 Aug 2011 12:04:58 +0000 (14:04 +0200)]
bsd.prog.mk: skip 'install -S' rule for GCC/clang
Ben Gras [Fri, 5 Aug 2011 20:55:57 +0000 (20:55 +0000)]
allow bind() with addr len >= sizeof(sockaddr_in)
. specifically, if it's struct sockaddr, which is
1 byte larger than sockaddr_in
. unbreaks some applications
. debugged and solved by Jan Wieck
Ben Gras [Thu, 4 Aug 2011 23:52:03 +0000 (23:52 +0000)]
vm/ipc: only report signals when it matters to ipc
. ipc wants to know about processes that get
signals, so that it can break blocking ipc operations
. doing it for every single signal is wasteful
and causes the annoying 'no slot for signals' message
. this fix tells vm on a per-process basis it (ipc)
wants to be notified, i.e. only when it does any ipc calls
. move ipc config to separate config file while we're at it
Arun Thomas [Fri, 5 Aug 2011 11:59:44 +0000 (13:59 +0200)]
minix.ack.mk: use CPPFLAGS for ACK asm files
Ben Gras [Wed, 13 Jul 2011 18:14:19 +0000 (20:14 +0200)]
unbreak oxpcie in kernel
Ben Gras [Thu, 4 Aug 2011 16:11:16 +0000 (18:11 +0200)]
remove info after #undef _POSIX_TIMERS
Ben Gras [Thu, 4 Aug 2011 01:02:02 +0000 (01:02 +0000)]
terminfo fixes
. add TERM=minix to builtin terms
. regenerate compiled-in compile_terms.c
. fix terminfo db path
. update termcap command
. By Antoine Leca
Ben Gras [Wed, 3 Aug 2011 10:53:01 +0000 (12:53 +0200)]
release.sh: fix -l, add -L option for local packages
. by Jan Wieck
Ben Gras [Wed, 3 Aug 2011 10:51:28 +0000 (12:51 +0200)]
added missing m_closefrom.c
Ben Gras [Tue, 2 Aug 2011 17:22:08 +0000 (19:22 +0200)]
getsid() implementation
Ben Gras [Tue, 2 Aug 2011 17:21:29 +0000 (19:21 +0200)]
closefrom() as library call
Arun Thomas [Tue, 2 Aug 2011 13:24:47 +0000 (15:24 +0200)]
kernel: don't build cprofile code by default
Arun Thomas [Tue, 2 Aug 2011 11:57:31 +0000 (13:57 +0200)]
Add MKMCONTEXT option
Ben Gras [Wed, 27 Jul 2011 10:34:50 +0000 (12:34 +0200)]
rename -lutil to -lminixutil
. in preparation for netbsd -lutil
Ben Gras [Mon, 1 Aug 2011 11:17:47 +0000 (13:17 +0200)]
don't define _POSIX_TIMERS
Arun Thomas [Mon, 1 Aug 2011 09:05:17 +0000 (11:05 +0200)]
MKEMBED is now MKSMALL