Matthew Dillon [Thu, 26 Aug 2004 20:32:00 +0000 (20:32 +0000)]
Turn off the getty on ttyd0 by default to avoid certain machines from
crashing.
Chris Pressey [Wed, 25 Aug 2004 22:53:07 +0000 (22:53 +0000)]
Correct an inaccurate statement. According to my testing, cpdup never
crosses mountpoints in either the source or the destination.
Matthew Dillon [Wed, 25 Aug 2004 19:14:40 +0000 (19:14 +0000)]
VFS messaging/interfacing work stage 3/99: Bring in the journaling
(and other) facilities infrastructure. This is not yet operational and
will probably change, but is being brought in now to serve as a foil to
ensure that the namespace and range locking work is properly integrated with
the intended journaling and cache coherency infrastructure.
This commit also reserves some space in the vop_ops args structures to
reduce pain later on.
Since no flags are yet set in vop_ops this commit should not result in
any operational changes.
Matthew Dillon [Wed, 25 Aug 2004 19:02:42 +0000 (19:02 +0000)]
Get rid of dfly/fbsd4/fbsd5 checks for the ntohl() return type. We are
now compatible with fbsd5. This fixes a compile warning.
Matthew Dillon [Wed, 25 Aug 2004 16:07:18 +0000 (16:07 +0000)]
Correct a mistake in the last commit that caused usage() to seg-fault,
and document -j in the manual page options summary.
Submitted-by: Maxim Konovalov
Chris Pressey [Wed, 25 Aug 2004 03:12:14 +0000 (03:12 +0000)]
Update installer packages to 1.1.1, fixing a couple of minor bugs:
ability to install bootblocks on an unformatted disk drive, and
ability to install /usr as a plain directory in the / partition.
Matthew Dillon [Wed, 25 Aug 2004 01:56:49 +0000 (01:56 +0000)]
Output an error message if the open fails.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:53:39 +0000 (01:53 +0000)]
Cleanup various type-o's in comments.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:43:43 +0000 (01:43 +0000)]
Minor cleanups. Document -j in usage.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:42:26 +0000 (01:42 +0000)]
Check for a mkstemps() failure, generate a proper warning if the fopen()
fails.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:40:23 +0000 (01:40 +0000)]
Document the unorthordox use of getopt().
Matthew Dillon [Wed, 25 Aug 2004 01:38:50 +0000 (01:38 +0000)]
Minor cleanups. Also, change various exit(10) codes to exit(1).
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:23:15 +0000 (01:23 +0000)]
Minor cleanups.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:15:38 +0000 (01:15 +0000)]
Minor cleanups.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 01:05:29 +0000 (01:05 +0000)]
Minor cleanups, no operational changes other then to add an error message if
fdopen() fails.
Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>
Matthew Dillon [Wed, 25 Aug 2004 00:05:11 +0000 (00:05 +0000)]
doingdirectory is really a boolean, use an int rather then ino_t and cast
it properly for the one case where it needs to be cast. Document the special
case. Cast -1 to (daddr_t) when checking for daddr_t special cases.
Matthew Dillon [Tue, 24 Aug 2004 21:55:47 +0000 (21:55 +0000)]
M_EXT_CLUSTER was not being properly inherited in m_copym(), m_copypacket(),
and m_split(), resulting in potentially unnecessary extra copying.
Matthew Dillon [Tue, 24 Aug 2004 21:53:41 +0000 (21:53 +0000)]
Fix a SFBUF memory leak in sendfile(). We were not properly tracking
references which would lead to SFBUFs not getting freed when two or more
sendfile()'s are operating on the same file at the same time (e.g. parallel
ftp downloads of the same file).
Get rid of the sf_buf->aux1 and aux2 hacks for sendfile.
Add a sysctl to allow the number of free SFBUFs to be monitored.
Matthew Dillon [Tue, 24 Aug 2004 21:16:14 +0000 (21:16 +0000)]
The VFS work has made vnode_if.awk obsolete.
Chris Pressey [Tue, 24 Aug 2004 20:52:45 +0000 (20:52 +0000)]
Hook pkill up to the build.
David Rhodus [Tue, 24 Aug 2004 16:32:11 +0000 (16:32 +0000)]
Clearly I need to wakeup all the way before starting to make changes.
Fix missing closing comment.
Noted by Sven Willenberger.
David Rhodus [Tue, 24 Aug 2004 16:08:35 +0000 (16:08 +0000)]
Spelling.
Noted by eirikn.
David Rhodus [Tue, 24 Aug 2004 14:01:57 +0000 (14:01 +0000)]
Add a few notes.
David Rhodus [Tue, 24 Aug 2004 13:52:59 +0000 (13:52 +0000)]
Minor cleanups. Make a type usage correction. Remove unneeded cast when
using struct bp.
David Rhodus [Tue, 24 Aug 2004 13:45:54 +0000 (13:45 +0000)]
Check error return value when creating the IPC service.
Joerg Sonnenberger [Tue, 24 Aug 2004 08:15:22 +0000 (08:15 +0000)]
Fix compilation of !PCI config.
Joerg Sonnenberger [Tue, 24 Aug 2004 06:10:57 +0000 (06:10 +0000)]
Use sys/types.h here, since we don't want to restrict ourselves to the safe
types (__) here.
Matthew Dillon [Mon, 23 Aug 2004 21:16:38 +0000 (21:16 +0000)]
Add missing extension return value for __byte_swap32_var() in the case
where I386_CPU is not defined. This missing value was causing a buildkernel
compile-time error.
Joerg Sonnenberger [Mon, 23 Aug 2004 16:13:03 +0000 (16:13 +0000)]
Remove pre-FreeBSD4 compability code.
Joerg Sonnenberger [Mon, 23 Aug 2004 16:03:44 +0000 (16:03 +0000)]
Improve the endian support for DragonFly by providing functions to convert
16/32/64 bit variables and parts of byte streams between host order and
big / little endian.
Reduce the namespace pollution for normal usage, e.g. of sys/types.h.
The duplication of ntohl and friends in arpa/inet.h and sys/param.h comes
from byteorder(3) showing sys/param.h as header file and SUS requiring
arpa/inet.h to provide this functions.
Remove local hacks in acpidump and usb_port.h.
The prototype of ntohl and friends is in sync with SUS, warnings e.g. for
implicit sign casts or use of int/long will be handled separately.
Written-by: Hitten Pandya and Joerg Sonnenberger
Inspired-by: FreeBSD
Joerg Sonnenberger [Mon, 23 Aug 2004 15:11:44 +0000 (15:11 +0000)]
Remove ASR_MEASURE_PERFORMANCE, it doesn't work anyway.
Inspired-by: FreeBSD
Joerg Sonnenberger [Mon, 23 Aug 2004 09:39:29 +0000 (09:39 +0000)]
rev 1.35:
Pass a correct lowaddr to bus_dma_tag_create(), lnc(4) cards can only
deal with 24-bit addresses. While the two other attachments, namely
isa and cbus, do it properly, the PCI attachment was passing
BUS_SPACE_MAXADDR instead of BUS_SPACE_MAXADDR_24BIT. This bug
became apparent with the new contigmalloc() code.
Obtained-from: FreeBSD
Joerg Sonnenberger [Fri, 20 Aug 2004 01:21:36 +0000 (01:21 +0000)]
sys/types.h ==> sys/param.h for endian macros
Joerg Sonnenberger [Fri, 20 Aug 2004 00:47:37 +0000 (00:47 +0000)]
- include sys/param.h for endian macros
Joerg Sonnenberger [Fri, 20 Aug 2004 00:43:00 +0000 (00:43 +0000)]
sys/types.h ==> sys/param.h for endian macros
Joerg Sonnenberger [Fri, 20 Aug 2004 00:08:17 +0000 (00:08 +0000)]
- include sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:57:46 +0000 (23:57 +0000)]
- include sys/param.h for endian macros
Matthew Dillon [Thu, 19 Aug 2004 23:57:02 +0000 (23:57 +0000)]
Add the standard DragonFly copyright with attribution to the author (which is
me).
Missing-copyright-noticed-by: Joerg Sonnenberger <joerg@britannica.bec.de>
Matthew Dillon [Thu, 19 Aug 2004 23:53:39 +0000 (23:53 +0000)]
Include language describing the prefered method for recognizing authors as
part of the copyright and license section. Split major elements of the
copyright file with '--' to make it more readable.
Joerg Sonnenberger [Thu, 19 Aug 2004 23:48:16 +0000 (23:48 +0000)]
- include sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:41:07 +0000 (23:41 +0000)]
- include sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:40:15 +0000 (23:40 +0000)]
- include sys/param.h for ntohl
- include string.h for strcpy
- remove local define of PAGE_SIZE, use the version from machine/param.h
Joerg Sonnenberger [Thu, 19 Aug 2004 23:35:45 +0000 (23:35 +0000)]
sys/types.h ==> sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:32:02 +0000 (23:32 +0000)]
sys/types.h ==> sys/param.h for endian macros
Joerg Sonnenberger [Thu, 19 Aug 2004 23:26:12 +0000 (23:26 +0000)]
Fix prototype for signal handlers
Joerg Sonnenberger [Thu, 19 Aug 2004 23:21:12 +0000 (23:21 +0000)]
Hide prototyp for loginit if ACULOG is false.
Joerg Sonnenberger [Thu, 19 Aug 2004 23:12:10 +0000 (23:12 +0000)]
Fix spurious warning
Joerg Sonnenberger [Thu, 19 Aug 2004 21:38:30 +0000 (21:38 +0000)]
sys/types.h ==> sys/param.h for ntohl
Joerg Sonnenberger [Thu, 19 Aug 2004 21:36:46 +0000 (21:36 +0000)]
- use WARNS?= 6 instead of a hard-wired list. -pedantic doesn't really work
anyway (no long long)
- use sys/param.h for nhtl in kgzcmp.c
- don't cast away const in kgzip.c, correct the usage of malloc'd space
instead
Joerg Sonnenberger [Thu, 19 Aug 2004 21:25:58 +0000 (21:25 +0000)]
Use sys/param.h instead of sys/types.h for endian macros.
This is in sync with the man page and results in a warning with the coming
endian patch.
Joerg Sonnenberger [Thu, 19 Aug 2004 20:38:33 +0000 (20:38 +0000)]
Add implemenation of splay tree and red-black tree.
Obtained-from: NetBSD
Matthew Dillon [Thu, 19 Aug 2004 17:36:42 +0000 (17:36 +0000)]
Remove the advertising clause where possible as per the directive from
UC Berkeley (see /usr/src/COPYRIGHT) and with Ken Smith's permission
for mv.c.
>From: Ken Smith <kensmith@cse.Buffalo.EDU>
>Subject: mv.c license change
>To: Matthew Dillon <dillon@apollo.backplane.com>
>Date: Thu, 19 Aug 2004 13:30:28 -0400
>
>Yes, you have my permission to remove the advertising clause from
>the license agreement in /usr/src/bin/mv/mv.c.
>
>--
> Ken Smith
>- From there to here, from here to | kensmith@cse.buffalo.edu
> there, funny things are everywhere. |
> - Theodore Geisel |
David Rhodus [Thu, 19 Aug 2004 14:42:46 +0000 (14:42 +0000)]
Plug in missing brelse calls as to fix a bug in the FFS reload code.
Jeroen Ruigrok/asmodai [Thu, 19 Aug 2004 09:36:47 +0000 (09:36 +0000)]
Update to reflect DragonFly reality.
Jeroen Ruigrok/asmodai [Thu, 19 Aug 2004 09:34:55 +0000 (09:34 +0000)]
Add the long overdue ehci(4) manual page.
Obtained from: NetBSD's v1.11
Matthew Dillon [Thu, 19 Aug 2004 00:30:07 +0000 (00:30 +0000)]
Add the vop_ops for ntfs before obtaining the root vnode(s) rather then
after.
Reported-by: "David W. Chapman Jr." <dwcjr@inethouston.net>
Matthew Dillon [Wed, 18 Aug 2004 16:55:21 +0000 (16:55 +0000)]
The -D__FreeBSD__ must be -D__FreeBSD__=4 or sendmail will not be properly
configured to use features like setproctitle().
Matthew Dillon [Wed, 18 Aug 2004 16:37:15 +0000 (16:37 +0000)]
Make the buildkernel and nativekernel targets completely wipe and regenerate
the kernel object hierarchy.
Add a quickkernel target which does not wipe the object hieracrhy and which
skips the make depend step. quickkernel can be run on kernels previously
built with buildkernel or nativekernel.
This brings the operation of our kernel building targets in-line with the
operation of our world building targets.
Matthew Dillon [Wed, 18 Aug 2004 09:16:16 +0000 (09:16 +0000)]
Properly free the temporary sf_buf in uiomove_fromphys() if a copyin/copyout
fails. Such failures commonly occur when pipes are broken by a ^C.
Matthew Dillon [Wed, 18 Aug 2004 09:10:32 +0000 (09:10 +0000)]
[test format strings for cvs server config]
Matthew Dillon [Wed, 18 Aug 2004 09:07:06 +0000 (09:07 +0000)]
test
Matthew Dillon [Wed, 18 Aug 2004 09:04:29 +0000 (09:04 +0000)]
*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 09:02:08 +0000 (09:02 +0000)]
*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 08:56:53 +0000 (08:56 +0000)]
bleh
Matthew Dillon [Wed, 18 Aug 2004 08:47:16 +0000 (08:47 +0000)]
*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 08:45:58 +0000 (08:45 +0000)]
*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 08:43:23 +0000 (08:43 +0000)]
more testing
Matthew Dillon [Wed, 18 Aug 2004 08:31:50 +0000 (08:31 +0000)]
yet more testing
Matthew Dillon [Wed, 18 Aug 2004 08:24:44 +0000 (08:24 +0000)]
test
Matthew Dillon [Wed, 18 Aug 2004 08:00:38 +0000 (08:00 +0000)]
*** empty log message ***
Matthew Dillon [Wed, 18 Aug 2004 07:24:30 +0000 (07:24 +0000)]
feh2
Matthew Dillon [Wed, 18 Aug 2004 07:23:54 +0000 (07:23 +0000)]
feh
Matthew Dillon [Wed, 18 Aug 2004 07:18:52 +0000 (07:18 +0000)]
sigh
Matthew Dillon [Wed, 18 Aug 2004 07:00:25 +0000 (07:00 +0000)]
more testing 3
Matthew Dillon [Wed, 18 Aug 2004 06:37:03 +0000 (06:37 +0000)]
more testing
Matthew Dillon [Wed, 18 Aug 2004 06:23:55 +0000 (06:23 +0000)]
Test commits after machine upgrade.
Matthew Dillon [Tue, 17 Aug 2004 20:59:39 +0000 (20:59 +0000)]
Add some robustness to the error-requeue code. FreeBSD-5's (new) ata driver
had an issue with the donecount not being properly reset. This issue is not
believed to occur with the old code but add sanity checks to be sure.
Matthew Dillon [Tue, 17 Aug 2004 20:34:38 +0000 (20:34 +0000)]
Properly record and print 64 bit file sizes, do not truncate the file size
to 32 bits.
Chris Pressey [Tue, 17 Aug 2004 19:23:52 +0000 (19:23 +0000)]
Update list of installer packages to match installer version 1.1.
Matthew Dillon [Tue, 17 Aug 2004 18:57:36 +0000 (18:57 +0000)]
VFS messaging/interfacing work stage 2/99. This stage retools the vnode ops
vector dispatch, making the vop_ops a per-mount structure rather then a
per-filesystem structure. Filesystem mount code, typically in blah_vfsops.c,
must now register various vop_ops pointers in the struct mount to compile
its VOP operations set.
This change will allow us to begin adding per-mount hooks to VFSes to support
things like kernel-level journaling, various forms of cache coherency
management, and so forth.
In addition, the vop_*() calls now require a struct vop_ops pointer as the
first argument instead of a vnode pointer (note: in this commit the VOP_*()
macros currently just pull the vop_ops pointer from the vnode in order to
call the vop_*() procedures). This change is intended to allow us to divorce
ourselves from the requirement that a vnode pointer always be part of a VOP
call. In particular, this will allow namespace based routines such as
remove(), mkdir(), stat(), and so forth to pass namecache pointers rather then
locked vnodes and is a very important precursor to the goal of using the
namecache for namespace locking.
Matthew Dillon [Tue, 17 Aug 2004 18:05:41 +0000 (18:05 +0000)]
Add an installer-fetchpkgs target and other related stuff to reduce the
work required to bring in the installer packages when building an
installer-enabled ISO.
Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>
Joerg Sonnenberger [Mon, 16 Aug 2004 14:19:31 +0000 (14:19 +0000)]
Make this WARNS?=6 clean by explicitly using __DECONST for the write
buffers in iov.
Joerg Sonnenberger [Mon, 16 Aug 2004 14:11:39 +0000 (14:11 +0000)]
In cmd(), after the vsnprintf is a strcat done to append a newline.
Keep that in mind for the size calculation.
Joerg Sonnenberger [Mon, 16 Aug 2004 14:07:34 +0000 (14:07 +0000)]
Fix various buffer overflows.
Noticed-by: Christer "Ober <christer.oberg@deprotect.com>
Joerg Sonnenberger [Mon, 16 Aug 2004 13:51:21 +0000 (13:51 +0000)]
More constify.
Joerg Sonnenberger [Mon, 16 Aug 2004 12:59:21 +0000 (12:59 +0000)]
Make libftpio WARNS=6 clean.
Joerg Sonnenberger [Mon, 16 Aug 2004 05:55:13 +0000 (05:55 +0000)]
Fix the fprintf statement for overlong domainnames.
Noticed-by: dillon
Joerg Sonnenberger [Sun, 15 Aug 2004 17:05:06 +0000 (17:05 +0000)]
- use const for file names, static for local functions
- remove register keyword
- remove useless casts
- remove '?' case from getopt switch
- check return value of signal
Submitted-by: Liam J. Foy <liamfoy@sepulcrum.org>
- use sys/queue.h instead of hand-rolled simple list
- WARNS?= 6 clean
Joerg Sonnenberger [Sun, 15 Aug 2004 16:12:03 +0000 (16:12 +0000)]
Minor style changes.
Joerg Sonnenberger [Sun, 15 Aug 2004 16:01:11 +0000 (16:01 +0000)]
Add strotonum(3) into the !ANSI_SOURCE && !_POSIX_SOURCE && !__STRICT_ANSI
part of stdlib.h.
strtonum simplifies string conversion by allowing automatic boundary checks.
Submitted-by: Andre Nathan <andre@digirati.com.br>
Obtained-from: OpenBSD
Joerg Sonnenberger [Sun, 15 Aug 2004 15:06:58 +0000 (15:06 +0000)]
- WARNS ?= 6 clean
- make helper functions static and the arguments const if possible
- remove '?' case from getopt switch
- remove useless casts to void of function return values
- move the error handling label to the end of the function, we don't want
Italian code here
Joerg Sonnenberger [Sun, 15 Aug 2004 15:00:22 +0000 (15:00 +0000)]
Make the addr parameter to kernacc and useracc const.
Wondered-about: corecode
Joerg Sonnenberger [Sun, 15 Aug 2004 14:15:00 +0000 (14:15 +0000)]
IOCTL mapping layer Part II/II
Convert the Linux IOCTL emulation to use the new mapping layer. This
also changes the drm(4) and aac(4) emulation of the respective APIs.
Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
Joerg Sonnenberger [Sun, 15 Aug 2004 12:27:37 +0000 (12:27 +0000)]
- remove prototype for main
- make usage() static
- remove unnecessary casts of function returns
- explicitly check input length against MAXHOSTNAMELEN for setdomainname
- explicitly terminate string after getdomainname
- minor style cleanup, this is WARNS?= 6 clean.
Matthew Dillon [Sat, 14 Aug 2004 19:55:28 +0000 (19:55 +0000)]
Add a missing uio_td assignment (that unionfs needs).
Reported-by: David Rhodus <sdrhodus@gmail.com>
Joerg Sonnenberger [Sat, 14 Aug 2004 13:49:41 +0000 (13:49 +0000)]
Add DFOSVERSION for ports to check for DragonFly and allow them to handle
it accordlingly.
Submitted-by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Joerg Sonnenberger [Sat, 14 Aug 2004 13:37:46 +0000 (13:37 +0000)]
- remove '?' from getopt switch case
- check the return values of gettimeofday and signal
- improve wording of failed fork() message
Submitted-by: Liam J. Foy <liamjoy@sepulcrum.org>
Jeffrey Hsu [Sat, 14 Aug 2004 06:41:33 +0000 (06:41 +0000)]
Move a comment to the right place.
Indentation changes.
Jeroen Ruigrok/asmodai [Fri, 13 Aug 2004 19:12:52 +0000 (19:12 +0000)]
Fix function definition {} placement according to our own style.
Submitted by: Liam J. Foy <liamfoy@sepulcrum.org>
Jeroen Ruigrok/asmodai [Fri, 13 Aug 2004 19:01:18 +0000 (19:01 +0000)]
Remove question mark (?) case statement.
Change %c strftime() specifier into %s to make sure we don't drop year
digits.
Submitted by: Liam J. Foy <liamfoy@sepulcrum.org>