]> Zhao Yanbai Git Server - minix.git/log
minix.git
11 years agoFixing warning about incorrect test in some build environment 28/128/2
Lionel Sambuc [Mon, 26 Nov 2012 16:00:18 +0000 (17:00 +0100)]
Fixing warning about incorrect test in some build environment

Change-Id: I17c69e96b4278fb39a95c7b0554c779c4d1f637c

11 years agogitignore: ignore some more generated files
David van Moolenbroek [Thu, 6 Dec 2012 13:29:20 +0000 (13:29 +0000)]
gitignore: ignore some more generated files

11 years agovbfs: add DS to system.conf IPC list
David van Moolenbroek [Thu, 6 Dec 2012 13:27:26 +0000 (13:27 +0000)]
vbfs: add DS to system.conf IPC list

11 years agoRS: do not zero process name for boot processes
David van Moolenbroek [Thu, 6 Dec 2012 13:24:30 +0000 (13:24 +0000)]
RS: do not zero process name for boot processes

This bug was preventing services with IPC restrictions from being
started before the boot processes are edited from /etc/rc.

11 years agoVFS: fix off-by-one in get_name()
David van Moolenbroek [Fri, 30 Nov 2012 12:22:36 +0000 (12:22 +0000)]
VFS: fix off-by-one in get_name()

11 years agoFix buffer overflows in df(1), format(1)
David van Moolenbroek [Fri, 30 Nov 2012 10:54:40 +0000 (10:54 +0000)]
Fix buffer overflows in df(1), format(1)

11 years agomtab: support moving mount points
Thomas Veerman [Tue, 27 Nov 2012 17:33:59 +0000 (17:33 +0000)]
mtab: support moving mount points

Also fix canonical_path function; it fails to parse some paths

11 years agoAdding missing symlink to dynamic loader.
Lionel Sambuc [Tue, 27 Nov 2012 11:40:17 +0000 (11:40 +0000)]
Adding missing symlink to dynamic loader.

As the release script does not copy over files from the currently
running system anymore, it has appeared that some binaries are
looking for the dynamic loader in /lib instead of /usr/lib.

It has been replaced by a symlink to ensure compatibility with
binaries, until the path is updated in all the toolchains to be
the same.

11 years agoSimplifying release.sh script.
Lionel Sambuc [Tue, 27 Nov 2012 11:48:49 +0000 (11:48 +0000)]
Simplifying release.sh script.

As the build system can now generate a full root file system,
there is no need to bootstrap the iso image by copying over
files from the currently system.

The SVN references have also been mostly taken out, as they are
not anymore valid. Some cleanup have been done to try to improve
the readability of the script.

11 years agodocs/UPDATING: create mtab symlink
Thomas Veerman [Tue, 27 Nov 2012 17:36:53 +0000 (17:36 +0000)]
docs/UPDATING: create mtab symlink

11 years agotest65: simply skip if ntfs binaries are not present
Thomas Veerman [Tue, 27 Nov 2012 10:19:26 +0000 (10:19 +0000)]
test65: simply skip if ntfs binaries are not present

11 years agoAdapting build target to also execute hdboot.
Lionel Sambuc [Mon, 26 Nov 2012 21:59:18 +0000 (22:59 +0100)]
Adapting build target to also execute hdboot.

The 'hdboot' target was setup as a dependency of 'distribution'
instead of 'build' as it previously was for the now deprecated world
target.

Change-Id: Icd10f3bd92df38e411600923e7f62e6075eb3008

11 years agomkfs.mfs: __dead and __UNCONST are unknown on Linux
Thomas Veerman [Mon, 26 Nov 2012 16:18:13 +0000 (16:18 +0000)]
mkfs.mfs: __dead and __UNCONST are unknown on Linux

Including nbtool_config.h takes care of that deficiency when cross
compiling.

11 years agoRemove obsolete sum
Thomas Veerman [Fri, 23 Nov 2012 16:43:11 +0000 (16:43 +0000)]
Remove obsolete sum

11 years agoImplement dynamic mtab support
Thomas Veerman [Thu, 22 Nov 2012 22:00:00 +0000 (22:00 +0000)]
Implement dynamic mtab support

With this patch /etc/mtab becomes obsolete.

11 years agoVFS: change 'last_dir' to match locking assumption
Thomas Veerman [Tue, 20 Nov 2012 13:14:31 +0000 (13:14 +0000)]
VFS: change 'last_dir' to match locking assumption

new_node makes the assumption that when it does last_dir on a path, a
successive advance would not yield a lock on a vmnt, because last_dir
already locked the vmnt. This is true except when last_dir resolves
to a directory on the parent vmnt of the file that was the result of
advance. For example,
 # cd /
 # echo foo > home
where home is on a different (sub) partition than / is (default
install). last_dir would resolve to / and advance would resolve to
/home.

With this change, last_dir resolves to the root node on the /home
partition, making the assumption valid again.

11 years agoAdd NTFS test to test suite
Thomas Veerman [Thu, 15 Nov 2012 17:38:16 +0000 (17:38 +0000)]
Add NTFS test to test suite

11 years agoFixing wrong dependency from libc on libsys.
Lionel Sambuc [Mon, 26 Nov 2012 12:53:02 +0000 (13:53 +0100)]
Fixing wrong dependency from libc on libsys.

11 years agoFix release.sh to work with NetBSD Build system.
Lionel Sambuc [Fri, 23 Nov 2012 20:35:59 +0000 (20:35 +0000)]
Fix release.sh to work with NetBSD Build system.

Also fix a potential issue where host tools would be compiled
dynamically under MINIX.

This also updates proto.common.dynamic to use the new placement
of the dynamic libraries (/usr/lib)

11 years agoRS: fix for fix
Ben Gras [Thu, 22 Nov 2012 12:52:50 +0000 (13:52 +0100)]
RS: fix for fix

11 years agoRemove ability to pass commands to bootloader
Erik van der Kouwe [Thu, 22 Nov 2012 16:30:22 +0000 (17:30 +0100)]
Remove ability to pass commands to bootloader

11 years agoUpgrading bzip2
Lionel Sambuc [Wed, 21 Nov 2012 15:43:25 +0000 (16:43 +0100)]
Upgrading bzip2

Change-Id: I6968b0f0401f3f42dc55a0f4938a7e12a3a55ae7

11 years agoRestore poweroff to some of it's former glory (on QEMU, at least)
Erik van der Kouwe [Wed, 21 Nov 2012 19:28:37 +0000 (20:28 +0100)]
Restore poweroff to some of it's former glory (on QEMU, at least)

11 years agoetcforce and etcfiles fixup 25/125/2
Lionel Sambuc [Mon, 19 Nov 2012 13:36:33 +0000 (14:36 +0100)]
etcforce and etcfiles fixup

The way etcfiles was re-implemented was wrong as it would overwrite the
password database. This patch adds back a proper etcfiles (safe) target,
and a etcforce (unsafe) target.

Change-Id: I141c37b29a449fca1ee362b7416750be0298dbfb

11 years agoFix wrong access permission on /tmp and /usr/tmp 23/123/2
Lionel Sambuc [Mon, 19 Nov 2012 10:07:58 +0000 (11:07 +0100)]
Fix wrong access permission on /tmp and /usr/tmp

With the build system upgrade, the list of system directories was
recreated, and the sticky bit was forgotten.

Change-Id: Ie2f2241734dde9f1e217cd38588296dc21d07b81

11 years agoDo not overwrite vi and ex links by default 22/122/2
Lionel Sambuc [Fri, 16 Nov 2012 16:03:15 +0000 (17:03 +0100)]
Do not overwrite vi and ex links by default

Revert (and document) to the old behaviour of the elvis Makefile.

Change-Id: I800dba23f5c35d4c1676974962806dd824659539

11 years agoFixup for non-fatal mkisofs error. 21/121/2
Lionel Sambuc [Fri, 16 Nov 2012 11:13:42 +0000 (12:13 +0100)]
Fixup for non-fatal mkisofs error.

The corresponding rules have been commented out through .ifdef blocks.

Change-Id: I36afb75f049b39806ede1f7dd6950710826b3555

11 years agokernel: kill proc with bogus ipc address
Ben Gras [Fri, 16 Nov 2012 19:21:21 +0000 (20:21 +0100)]
kernel: kill proc with bogus ipc address

11 years agoMake build system less verbose
Thomas Veerman [Fri, 16 Nov 2012 17:50:56 +0000 (17:50 +0000)]
Make build system less verbose

11 years agotests: link dynamically again
Ben Gras [Fri, 16 Nov 2012 19:20:52 +0000 (20:20 +0100)]
tests: link dynamically again

11 years agocan't get_block(NO_DEV) any more
Ben Gras [Mon, 12 Nov 2012 18:15:10 +0000 (19:15 +0100)]
can't get_block(NO_DEV) any more

. 'anonymous' cache blocks (retrieved with NO_DEV as dev
  parameter) were used to implement read()s from holes in
  inodes that should return zeroes
. this is an awkward special case in the cache code though
  and there's a more direct way to implement the same functionality:
  instead of copying from a new, anonymous, zero block, to
  the user target buffer, simply sys_safememset the user target
  buffer directly. as this was the only use of this feature,
  this is all that's needed to simplify the cache code a little.

11 years agoRS: invoke a shell explicitly for scripts
Ben Gras [Fri, 16 Nov 2012 15:34:14 +0000 (16:34 +0100)]
RS: invoke a shell explicitly for scripts

. don't rely on the scripts to be executable
  (and they aren't any more)

11 years agoiso9660fs: initialize buffer cache
Ben Gras [Fri, 16 Nov 2012 11:09:03 +0000 (11:09 +0000)]
iso9660fs: initialize buffer cache

11 years agostruct minix_ipcvecs - pretty-print
Tomas Hruby [Wed, 14 Nov 2012 22:14:48 +0000 (22:14 +0000)]
struct minix_ipcvecs - pretty-print

- the _ptr suffix is not needed anymore :-)

11 years agoipc.h - IPC defined as functions again
Tomas Hruby [Wed, 14 Nov 2012 22:00:29 +0000 (22:00 +0000)]
ipc.h - IPC defined as functions again

- CHOOSETRAP define makes impossible to use some common words
  like send, receive and notify in any other context, for
  instance as members or structures

- any reasonable compiler inlines the static inline functions so
  no extra function call overhead is introduced by this change

- this gets us back to the situation before the SYSCALL/SYSENTER
  change. It is not perfect, but it used to work and still does.

11 years agoAdding the required steps to docs/UPDATING
Lionel Sambuc [Thu, 15 Nov 2012 15:03:45 +0000 (16:03 +0100)]
Adding the required steps to docs/UPDATING

Change-Id: If0cbfd473374cfbc0c174ae5ccd52668adbcfcf7

11 years agoAdding back the world target, as well as a warning.
Lionel Sambuc [Thu, 15 Nov 2012 12:54:53 +0000 (13:54 +0100)]
Adding back the world target, as well as a warning.

The 'world' target is a legacy target from the previous build system,
it is equivalent to the 'build' target in the netbsd build system.

A warning has been added to stop using it, but it still works as
expected.

Change-Id: I704a5c43d9775b6d66c15a43ba927ddb515aab80

11 years agoRestablishing old behaviour of make hdboot
Lionel Sambuc [Thu, 15 Nov 2012 12:53:52 +0000 (13:53 +0100)]
Restablishing old behaviour of make hdboot

Change-Id: Idfa4dabbbbdbab31feedc2c541d0c989df5475a2

11 years agoDetect clang version, instead of assuming default one
Lionel Sambuc [Tue, 13 Nov 2012 17:45:51 +0000 (18:45 +0100)]
Detect clang version, instead of assuming default one

Change-Id: I559fe4251169f489d89e30b3576f8da08fb0941b

11 years agoUpdating nbsd_port 14/114/2
Lionel Sambuc [Thu, 8 Nov 2012 17:08:52 +0000 (18:08 +0100)]
Updating nbsd_port

Change-Id: I8c2cdbe150b5bced8f013fb0a2e4094f4527a950

11 years agoCross compile on minix support
Lionel Sambuc [Thu, 1 Nov 2012 21:55:12 +0000 (22:55 +0100)]
Cross compile on minix support

 * Remade patch so it works with minix patch tool.

 * New MINIX tar support -ox, so revert back to it

   In fetch scripts, tar had been replaced by bsdtar as the prebvious
   tar did not support the -o flag under minix, which is required to
   prevent usage of tar file stored user and group information.

   This introduces portability problems. As our new tar tool now
   support that flag revert back to improve portability.

11 years agoUpdate README and file
Lionel Sambuc [Sat, 3 Nov 2012 21:39:34 +0000 (22:39 +0100)]
Update README and file

11 years agoignoring mkubootimage
Lionel Sambuc [Sat, 3 Nov 2012 22:09:23 +0000 (23:09 +0100)]
ignoring mkubootimage

11 years agoRemoving binaries from sources.
Lionel Sambuc [Thu, 1 Nov 2012 14:44:46 +0000 (15:44 +0100)]
Removing binaries from sources.

Removing imported binaries in dist/bzip2.

11 years agoRemoving hacky defines from top.c
Lionel Sambuc [Sat, 22 Sep 2012 20:18:08 +0000 (22:18 +0200)]
Removing hacky defines from top.c

11 years agoHack for unresolved symbol read_tsc_64
Lionel Sambuc [Sat, 22 Sep 2012 20:48:34 +0000 (22:48 +0200)]
Hack for unresolved symbol read_tsc_64

11 years agoRemoving test on __MINIX_w which is never defined
Lionel Sambuc [Sat, 22 Sep 2012 21:28:53 +0000 (23:28 +0200)]
Removing test on __MINIX_w which is never defined

11 years agoToolchain upgrade and portability improvements.
Lionel Sambuc [Fri, 26 Oct 2012 13:22:39 +0000 (15:22 +0200)]
Toolchain upgrade and portability improvements.

upgrade to NetBSD CVS release from 2012/10/17 12:00:00 UTC

Makefiles updates to imporve portability

Made sure to be consistent in the usage of braces/parenthesis at
least on a per file basis. For variables, it is recommended to
continue to use braces.

11 years agoUpgrading build system to new NetBSD revision
Lionel Sambuc [Wed, 12 Sep 2012 07:37:05 +0000 (09:37 +0200)]
Upgrading build system to new NetBSD revision

The tested targets are the followgin ones:
 * tools
 * distribution
 * sets
 * release

The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.

For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.

Regarding new or modifications of Makefiles a few things:
 * Read share/mk/bsd.README
 * If you add a subdirectory, add a Makefile in it, and have it called
   by the parent through the SUBDIR variable.
 * Do not add arbitrary inclusion which crosses to another branch of
   the hierarchy; If you can't do without it, put a comment on why.
   If possible, do not use inclusion at all.
 * Use as much as possible the infrastructure, it is here to make
   life easier, do not fight it.

Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"

11 years agoAdding shlib_version for libsys
Lionel Sambuc [Sat, 22 Sep 2012 21:08:20 +0000 (23:08 +0200)]
Adding shlib_version for libsys

11 years agoLibc update to simplify merge.
Lionel Sambuc [Mon, 17 Sep 2012 09:09:12 +0000 (11:09 +0200)]
Libc update to simplify merge.

Bumping libc files for unsupported architectures, to simplify merging.
A bunch of small fixes:
 * in libutil update
 * the macro in endian.h
 * some undefined types due to clear separation from host.
 * Fix a warning for cdbr.c

Some modification which were required for the new build system:
 * inclusion path for const.h in sconst, still hacky
 * Removed default malloc.c which conflicts on some occasions.

11 years agoUpdating libutil from netbsd
Lionel Sambuc [Tue, 11 Sep 2012 16:02:49 +0000 (18:02 +0200)]
Updating libutil from netbsd

11 years agoReplaced tar with bsdtar to ensure disponibility of -o, which is
Lionel Sambuc [Tue, 9 Oct 2012 16:51:33 +0000 (18:51 +0200)]
Replaced tar with bsdtar to ensure disponibility of -o, which is
needed during builds as root

11 years agoVFS: do not save device node for new regular files
David van Moolenbroek [Thu, 15 Nov 2012 14:15:54 +0000 (14:15 +0000)]
VFS: do not save device node for new regular files

The VFS/FS protocol does not require the file server to supply a
special device node number in response to a REQ_CREATE request, as
this call creates only regular files. Therefore, VFS should not
erroneously save this piece of information from the REQ_CREATE reply
either.

11 years agoUse proper uid when mounting NTFS partition
Thomas Veerman [Wed, 14 Nov 2012 13:42:13 +0000 (13:42 +0000)]
Use proper uid when mounting NTFS partition

11 years agoVFS: fix TOCTOU bug in sync
Thomas Veerman [Wed, 14 Nov 2012 13:24:53 +0000 (13:24 +0000)]
VFS: fix TOCTOU bug in sync

11 years agoVFS: fix reboot panic with mounted FUSE FS
Thomas Veerman [Wed, 14 Nov 2012 13:18:16 +0000 (13:18 +0000)]
VFS: fix reboot panic with mounted FUSE FS

Upon reboot VFS semi-exits all processes and unmounts the file system.
However, upon unmount, exiting FUSE file systems might need service from
the file system (due to libc). As the FUSE process is halfway the exit
procedure, it doesn't have a valid root directory and working directory.
Trying to do system calls then triggers a sanity check in VFS.

This fix first exits normal processes which should then allow for
unmounting FUSE file systems. Then VFS exits all processes including
File Servers and unmounts the rest of the file system.

11 years agoVFS: fix deadlock when out of worker threads
Thomas Veerman [Wed, 14 Nov 2012 13:12:37 +0000 (13:12 +0000)]
VFS: fix deadlock when out of worker threads

There is a deadlock vulnerability when there are no worker threads
available and all of them blocked on a worker thread that's waiting for a
reply from a driver or a reply from an FS that needs to make a back call. In
these cases the deadlock resolver thread should kick in, but didn't in all
cases. Moreover, POSIX calls from File Servers weren't handled properly
anymore, which also could lead to deadlocks.

11 years agovm: reduce noise in merged pagetable.c
Ben Gras [Fri, 9 Nov 2012 18:00:46 +0000 (19:00 +0100)]
vm: reduce noise in merged pagetable.c

11 years agovm: merge i386 and arm pagetable code
Ben Gras [Wed, 31 Oct 2012 18:24:14 +0000 (19:24 +0100)]
vm: merge i386 and arm pagetable code

11 years agovm: fix a null dereference on out-of-memory
Ben Gras [Fri, 9 Nov 2012 15:50:31 +0000 (16:50 +0100)]
vm: fix a null dereference on out-of-memory

. also make other out-of-memory conditions less fatal
. add a test case for a user program using all the memory
  it can
. remove some diagnostic prints for situations that are normal
  when running out of memory so running the test isn't noisy

11 years agoPM: do not panic if sys_sigsend returns ENOMEM
David van Moolenbroek [Fri, 9 Nov 2012 16:09:20 +0000 (16:09 +0000)]
PM: do not panic if sys_sigsend returns ENOMEM

11 years agoremove extra mkfs.1
Ben Gras [Thu, 8 Nov 2012 11:36:38 +0000 (12:36 +0100)]
remove extra mkfs.1

11 years agokernel: some boottime sanitychecks
Ben Gras [Tue, 6 Nov 2012 14:36:53 +0000 (15:36 +0100)]
kernel: some boottime sanitychecks

. Check if we have the right number of boot modules
. Check if the ELF parsing of VM actually succeeded

Both these are root causes of less-than-obvious other
errors/asserts a little further down the line; uncovered
while experimenting with booting by iPXE, specifically
(a) iPXE having a 8-multiboot-modules limit and
(b) trying to boot a gzipped VM.

11 years agomkfs: support indirect blocks in directories
Ben Gras [Wed, 7 Nov 2012 17:59:03 +0000 (18:59 +0100)]
mkfs: support indirect blocks in directories

11 years agomkfs: move directory entry manipulation
Ben Gras [Wed, 7 Nov 2012 17:48:30 +0000 (18:48 +0100)]
mkfs: move directory entry manipulation

11 years agomkfs: drop support for zone != block
Ben Gras [Wed, 7 Nov 2012 17:23:03 +0000 (18:23 +0100)]
mkfs: drop support for zone != block

11 years agomkfs: drop support for running on DOS
Ben Gras [Wed, 7 Nov 2012 16:54:00 +0000 (17:54 +0100)]
mkfs: drop support for running on DOS

11 years agomkfs: separate inode retrieval function
Ben Gras [Wed, 7 Nov 2012 16:41:52 +0000 (17:41 +0100)]
mkfs: separate inode retrieval function

11 years agomkfs: drop support for creating non-v3 FSes
Ben Gras [Wed, 7 Nov 2012 14:50:03 +0000 (15:50 +0100)]
mkfs: drop support for creating non-v3 FSes

11 years agomkfs: symlink support
Ben Gras [Wed, 7 Nov 2012 10:06:56 +0000 (11:06 +0100)]
mkfs: symlink support

. mkproto too

11 years agomkfs, mkproto: minor improvements
Ben Gras [Wed, 7 Nov 2012 18:19:46 +0000 (19:19 +0100)]
mkfs, mkproto: minor improvements

. mkfs: -x feature for extra space
. rename manpage to mkfs.mfs.1 to follow the binary
. move mkproto so it can become part of the tools easily

11 years agoretire nonsymbolic rootdev, dev2name
Ben Gras [Thu, 1 Nov 2012 18:40:56 +0000 (19:40 +0100)]
retire nonsymbolic rootdev, dev2name

11 years agoTTY: fix crash obtaining kernel messages
David van Moolenbroek [Mon, 5 Nov 2012 23:11:16 +0000 (00:11 +0100)]
TTY: fix crash obtaining kernel messages

Also fix a case of potential message loss in TTY and LOG.

11 years ago/bin/pax: Fix cross compilation problem on some platform by removing
Lionel Sambuc [Thu, 1 Nov 2012 12:01:30 +0000 (13:01 +0100)]
/bin/pax: Fix cross compilation problem on some platform by removing
          unneeded dependency on libutil.

11 years agodrop safemap code
Ben Gras [Thu, 25 Oct 2012 14:38:38 +0000 (16:38 +0200)]
drop safemap code

11 years agotestsh2.sh: change output to new cksum util
Thomas Veerman [Tue, 30 Oct 2012 13:08:45 +0000 (13:08 +0000)]
testsh2.sh: change output to new cksum util

11 years agoTTY: seperate hardware dependent parts + add new serial driver
Thomas Veerman [Wed, 17 Oct 2012 14:07:53 +0000 (14:07 +0000)]
TTY: seperate hardware dependent parts + add new serial driver

.Split TTY in order to support both x86 and ARM.
.Add support for the TI 16750 UARTs on OMAP35x.
.Various other improvements:
  .Kernel messages are printed using generic terminal write
   functions. That is, they are no longer directly displayed
   on the console.
  .The console can now be displayed on any terminal. This
   is configured by the "console={tty00,tty01,ttyc2,ttyc3,ttyc4}"
   boot variable -- basically any valid /dev/tty* terminal.
  .Cutify kernel messages with colors. Configured by
   "kernelclr={1,2,3,4,5,6,7}" boot variable.

11 years agoKernel: reenable interrupts before halting
Thomas Veerman [Thu, 18 Oct 2012 10:03:34 +0000 (10:03 +0000)]
Kernel: reenable interrupts before halting

11 years agoKernel: busy wait until serial out has finished
Thomas Veerman [Wed, 17 Oct 2012 14:57:08 +0000 (14:57 +0000)]
Kernel: busy wait until serial out has finished

11 years agovm: fix potential null deref
Ben Gras [Wed, 24 Oct 2012 17:47:47 +0000 (19:47 +0200)]
vm: fix potential null deref

11 years agoUpgrading bsdtar 86/86/2
Lionel Sambuc [Thu, 18 Oct 2012 15:22:21 +0000 (17:22 +0200)]
Upgrading bsdtar

 * Removing commands/tar
 * Updated external/bsd/libarchive
 * Adding external/bsd/libarchive/bin/tar compiled bsdtar instead
   of just tar
 * (tar is taken care of through the pax utility)

Change-Id: Ie773b4502fbf4e3880f28f01bb528b063a60c668

11 years agoUpgrading pax. 85/85/2
Lionel Sambuc [Mon, 22 Oct 2012 14:10:38 +0000 (16:10 +0200)]
Upgrading pax.

This also means importing librmt.

Change-Id: Ie5b314aeaad28dca46acb64f20f2d70746ea52d0

11 years agoFixed up new mtree description file NetBSD.dist.base (removed end of line spaces... 84/84/2
Lionel Sambuc [Thu, 11 Oct 2012 10:34:16 +0000 (12:34 +0200)]
Fixed up new mtree description file NetBSD.dist.base (removed end of line spaces, added a few missing directories)

Fixed lchflags error under MINIX3 as host OS

Change-Id: I00f708e82753fdae85ac54bc903db06a7775ab5a

11 years agomtree mknod 83/83/2
Ben Gras [Wed, 10 Oct 2012 15:20:17 +0000 (17:20 +0200)]
mtree mknod

Change-Id: I887437c7b84839fc644da4c55bd59b6a414408ef

11 years agodrivers: fix various sys_irqsetpolicy calls
David van Moolenbroek [Tue, 23 Oct 2012 12:23:26 +0000 (12:23 +0000)]
drivers: fix various sys_irqsetpolicy calls

11 years agoMove primary cache code to libminixfs.
Ben Gras [Tue, 16 Oct 2012 15:40:39 +0000 (17:40 +0200)]
Move primary cache code to libminixfs.

Add primary cache management feature to libminixfs as mfs and ext2
currently do separately, remove cache code from mfs and ext2, and make
them use the libminixfs interface. This makes all fields of the buf
struct private to libminixfs and FS clients aren't supposed to access
them at all. Only the opaque 'void *data' field (the FS block contents,
used to be called bp) is to be accessed by the FS client.

The main purpose is to implement the interface to the 2ndary vm cache
just once, get rid of some code duplication, and add a little
abstraction to reduce the code inertia of the whole caching business.

Some minor sanity checking and prohibition done by mfs in this code
as removed from the generic primary cache code as a result:
        - checking all inodes are not in use when allocating/resizing
          the cache
        - checking readonly filesystems aren't written to
        - checking the superblock isn't written to on mounted filesystems

The minixfslib code relies on fs_blockstats() in the client filesystem to
return some FS usage information.

11 years agoImporting cksum (needed by NetBSD build system)
Lionel Sambuc [Mon, 22 Oct 2012 13:42:09 +0000 (15:42 +0200)]
Importing cksum (needed by NetBSD build system)

Change-Id: I47308635f6307066643f83f07b6751b1f2a05eb4

11 years agommc:Fixes for coverity.
Kees Jongenburger [Mon, 22 Oct 2012 11:34:40 +0000 (13:34 +0200)]
mmc:Fixes for coverity.

Change-Id: I25e406126deb9172276844e1bb756e22e1f449f8

11 years agoImporting postinstall
Lionel Sambuc [Thu, 11 Oct 2012 08:46:39 +0000 (10:46 +0200)]
Importing postinstall

Change-Id: I5813064164e2d6ca4cf353fb184194b2aaa8caa3

11 years agoAdding -nt flag to test
Lionel Sambuc [Fri, 19 Oct 2012 19:32:34 +0000 (21:32 +0200)]
Adding -nt flag to test

This is needed by build.sh.

11 years agoPatch mkdep to make sure tested values are not mistaken
Lionel Sambuc [Tue, 9 Oct 2012 16:50:05 +0000 (18:50 +0200)]
Patch mkdep to make sure tested values are not mistaken
as test flags.

11 years agommc:driver development added dummy driver. 82/82/3
Kees Jongenburger [Fri, 19 Oct 2012 09:09:52 +0000 (11:09 +0200)]
mmc:driver development added dummy driver.

* Add dummy driver to allow independent testing of mmcblk.
* Always build the mmc driver to prevent breakage.
* Allow to specify the mmc driver to be used at load time.

Change-Id: I4e14b912fb8f3612e252864b53733968b23ac023

11 years agolibvboxfs: fix setting file mtimes
David van Moolenbroek [Tue, 16 Oct 2012 21:11:30 +0000 (23:11 +0200)]
libvboxfs: fix setting file mtimes

11 years agomount(1)/umount(1)/format(1): remove setuid bits
David van Moolenbroek [Tue, 16 Oct 2012 20:42:30 +0000 (22:42 +0200)]
mount(1)/umount(1)/format(1): remove setuid bits

This is a security measure. We may want to bring back user access to
mounting and formatting media in the future, but this should be done
only once we are sure that this is safe from a security perspective.

11 years agomount(1): do not include system headers
David van Moolenbroek [Tue, 16 Oct 2012 20:30:02 +0000 (22:30 +0200)]
mount(1): do not include system headers

11 years agoRetire checkhier(8)
David van Moolenbroek [Tue, 16 Oct 2012 20:27:03 +0000 (22:27 +0200)]
Retire checkhier(8)

11 years agoformat(1): access floppy as block device
David van Moolenbroek [Tue, 16 Oct 2012 18:45:10 +0000 (20:45 +0200)]
format(1): access floppy as block device

Accessing block devices as character devices is no longer supported.

11 years agoMAKEDEV(8): don't make /dev/filter user-accessible
David van Moolenbroek [Tue, 16 Oct 2012 18:33:55 +0000 (20:33 +0200)]
MAKEDEV(8): don't make /dev/filter user-accessible

11 years agoRetire badblocks(8) and readall(1)
David van Moolenbroek [Tue, 16 Oct 2012 17:50:53 +0000 (19:50 +0200)]
Retire badblocks(8) and readall(1)