Commit Graph

147571 Commits

Author SHA1 Message Date
thorpej 42e8dee346 Fix the way that prop_array_ensure_capacity() and _prop_array_expand()
interact.
2006-05-28 03:53:51 +00:00
elad 48404677c4 be quiet if symbol not in namelist, nothing cares 2006-05-27 23:57:32 +00:00
simonb e78022e1d6 Limit the size of any kernel buffers allocated by the VOP_READDIR
routines to MAXBSIZE.
2006-05-27 23:46:49 +00:00
elad 4ea6eb36cb add sysctl for routing stats 2006-05-27 23:08:11 +00:00
agc c52b27c275 Bump version number for the portability fix, and the dynamic number of
sessions.
2006-05-27 21:29:32 +00:00
agc 36fad19155 Rather than hardcoding the maximum number of sessions that a target can
serve simultaneously to DEFAULT_TARGET_MAX_SESSIONS, add a -s argument to
iscsi-target(8) to specify the maximum number of sessions.

Also bump default from 4 to 16.
2006-05-27 21:21:04 +00:00
bouyer 5ff62d8d84 On my system the CPU frequency reported at boot is off by about 10% (maybe
because of the jitter caused by the serial console), which is not only
cosmetic but is bad for clock accuracy. Introducing a 1s delay before reading
Xen's idea of the CPU frequency fixes this.
2006-05-27 20:48:40 +00:00
martin ad53adb7c1 Make "entries" optional - so that `echo system > /etc/isdn/isdnd.rc; isdnd`
works.
2006-05-27 20:11:14 +00:00
bouyer 2a649c320b HYPERVISOR_set_timer_op() doesn't seem to work right on a NetBSD Xen3 dom0,
the dom0 is getting a continous stream of clock interrupts. As we want an
interrupt every hz anyway, just use HYPERVISOR_yield() instead.
2006-05-27 19:57:15 +00:00
bouyer 498d4ec7e6 The receive buffer, once mapped back in the domU, is read/write and not
shared so there;s no problems marking the mbuf M_EXT_RW.
2006-05-27 19:54:59 +00:00
he 732bd1213b Remove setting of xs_status to XS_STS_DONE before calling scspi_done().
After revision 1.135 of scsipi_base.c, it's a big no-no to set
XS_STS_DONE before calling scsipi_done().  Besides, scsipi_done()
sets XS_STS_DONE itself after checking that it's not already set.

This puts this driver back in working order; before this change
the probe of the logical drives would cause a hang.
2006-05-27 17:56:39 +00:00
agc 6dff2af424 Include another header file - should make this compile on platforms where
arpa/inet.h does not include netinet/in.h automatically.

Some people do just make life harder for themselves.
2006-05-27 16:00:05 +00:00
bouyer de9d456540 A lot of work is needed in the tcp stack to handle read-only ext storage
so always copy packets from the domU to a fresh mbuf for now.
2006-05-27 13:54:35 +00:00
drochner cb566fe802 sync RCS IDs in comments, no functional change 2006-05-27 13:37:04 +00:00
bouyer 01307555ec Revert rev 1.241: calling m_makewritable() in tcp_input causes problems when
it has to change the mbuf chain. I experience hard hang on a Xen2 domU after
TCP connections have been closed, and a crash has been reported which may be
caused by this too.
2006-05-27 13:35:20 +00:00
drochner 8bd6a6b9bd reran native-gcc, fixing the COMDAT problem 2006-05-27 12:14:33 +00:00
simonb 7f2151a308 Fix previous Coverity "fix" so that it doesn't break vi completely. 2006-05-27 12:03:37 +00:00
agc 8b41108aee Clean up after the last fix. 2006-05-27 11:10:55 +00:00
yamt b1af57a6ba remove __POOL_EXPOSE. 2006-05-27 09:14:03 +00:00
yamt 725fa55be5 hide more by ifdef _KERNEL. 2006-05-27 09:12:31 +00:00
jdolecek 94172cbcb1 in short netstat output, use 12 characters for [IO]pkts columns, so that
it doesn't overflow too easily
2006-05-27 08:56:47 +00:00
yamt 21785cfc00 remove a nested function so that its initializers can be compiled by gcc2.
pointed by Havard Eidnes.
2006-05-27 08:41:13 +00:00
yamt 4e9ca7aa01 callback_head_init: don't forget to initialize ch_running and ch_flags.
fix a problem reported by Jeff Rizzo on tech-kern@.
2006-05-27 07:42:42 +00:00
jnemeth 6222f021a3 Coverity CID 3684: memory leak 2006-05-27 04:55:14 +00:00
jnemeth 243d02dab5 Coverity CID 3135: memory leak 2006-05-27 04:15:42 +00:00
jnemeth d9a7dcfba5 Coverity annotation -- although memsave free()s its first argument, it
will allocate memory and assign it to its first argument, so it is neutral
Coverity CID 3229:  memory leak -- failed to fclose() master in moduser()
Coverity CID 3228:  memory leak -- failed to free() newname in groupmod()
2006-05-27 03:41:48 +00:00
christos d25db4db59 Coverity fixes from Mark D. Baushke 2006-05-27 03:01:09 +00:00
mrg f421d0c91a regenerate. fixes mipsel HAVE_COMDAT_GROUP 2006-05-26 19:57:29 +00:00
rittera 2fb24c8b6d Added an #ifdef _KERNEL around the #include <sys/device.h>. This is needed
because nbcompat.h is included from the user-level ndiscvt utility, which
wouldn't compile due to the indirect inclusion of sys/device.h.
2006-05-26 19:31:35 +00:00
rittera 60d227b1f8 Some general cleaning up of if_ndis.c, and if_ndis_pci.c. Added
#ifdef NDIS_DBG around some printfs, and deleted some commented out code.
2006-05-26 19:27:49 +00:00
chap baa41845e1 Remove statement (incorrect as of ISC release 3.0.3) that the next-server
value defaults to the server address. (This statement has been removed in
ISC release 3.0.4.)

Closes PR bin/33565.
2006-05-26 19:22:03 +00:00
mrg cf8192ab0d use the same "Generated from: " tag for mknative.common so that changes
that only affect rcsid's don't cause all generated files to change.
2006-05-26 19:17:21 +00:00
agc 2fa516b2eb Rewrite the way report_luns() works, after suspicion by Matt Green, and
following Dan Carosone's suggestion of the uint64_t array.

Abstract a bit more from the HTOBE64() macro intrigue, for platforms
like Solaris/x86 which have fun in this part.

Tested only with little-endian initiators for now.

Bump version to 20060526.
2006-05-26 16:34:43 +00:00
tsutsui eeb8ad7128 Use the same bus_space_barrier(9) macro with other mips ports to avoid
possible unused variable warnings.
2006-05-26 13:25:21 +00:00
tsutsui a465c6b884 Tweak bus_space_barrier(9) macro to appease
"left-hand operand of comma expression has no effect"
warnings by gcc4.
2006-05-26 13:23:34 +00:00
jnemeth 62381dbddf Coverity CID 3785: calling fclose() twice on same file pointer
Coverity CID 3780: dereference of NULL pointer
Approved by: christos@
2006-05-26 13:21:47 +00:00
blymn a88dd3436a Clean up bogus whitespace 2006-05-26 12:52:45 +00:00
blymn 6b8a344329 Clean up bogus whitespace 2006-05-26 12:39:31 +00:00
drochner f5015685d4 mention error return value, like getrawpartition(3) 2006-05-26 12:36:59 +00:00
blymn 44278a4fa1 Clean up bogus whitespace 2006-05-26 11:52:08 +00:00
jnemeth 305a7bfee2 In bincvt() use fdopen() on the fdesc returned by mkstemp(), instead
of fopen().
2006-05-26 11:45:31 +00:00
jnemeth 693e9aec19 Coverity CID 2977: failed to check for error return from ftell() 2006-05-26 11:13:20 +00:00
jnemeth e10c71d2be Coverity CID 3685: memory leak
While here, check for failure to create temp file in bincvt() and close
unused file descriptor.

XXX bincvt() should be rewritten to use fork()/exec() instead of system().
2006-05-26 10:59:58 +00:00
jnemeth 1124e30e6e Coverity CID 3027: possible dereference of NULL pointer.
Also don't bother zero'ing memory immediately before reading the
.SYS file into it and check for errors while reading the file.
2006-05-26 09:25:27 +00:00
pavel 3b5ae171d2 New linker scripts for the i386 kernel. The main improvement is setting the
physical load address correctly. (Before, it was set to the same very high
value as the virtual address.)

Provided by Jason Thorpe in
http://mail-index.netbsd.org/port-i386/2006/02/10/0008.html
with some modifications by me, mainly to make the output more similar to
the current one, and to not hardwire the physical and virtual addresses.

See also:
http://mail-index.netbsd.org/port-i386/2006/05/19/0001.html

Now an unpatched grub can load a NetBSD Multiboot kernel.
2006-05-26 09:22:42 +00:00
jnemeth 14902917f6 Remove redundant check for end of list wrapping around on itself.
It this were to actually happen, then others parts would go into
infinite loop.  Also, fix KNF.  Found while checking Coverity
CID 3784.
2006-05-26 02:16:17 +00:00
uebayasi b5775a5a4f Expose struct pool::struct callback_entry pr_reclaimerentry only when _KERNEL
is defined.  Fix build of src/sbin/mount/mount_tmpfs/mount_tmpfs.c.
2006-05-26 00:26:12 +00:00
cube ac24e16176 Introduce two new statements:
obsolete defflag <option> [, <option> [, ...]]
    obsolete defparam <option> [, <option> [, ...]]

The two statements actually do the same thing (there could be only one),
but it makes things less cryptic that way.  The optional ": deps" part of
a 'defflag' or 'defparam' still has to be dropped when it gets obsoleted.

When the user has 'options OBSOLETE_OPTION' in his configuration file, it
is ignored (that is, opt_*.h files are generated as if it wasn't there),
and the user gets a warning about it.

Bump version to 20060525.

When someone first uses that syntax in the tree, a "version 20060525"
statement should be added before its occurrence, preferably at the top
of sys/conf/files.

Suggested by Matt Thomas a few months ago.
2006-05-25 22:28:38 +00:00
christos fc19b961ac s/vax/__vax__/ 2006-05-25 22:06:53 +00:00
bouyer bc93583ffe If we're going to byteswap fields in the TCP header, make sure the mbuf
area is writable first.
2006-05-25 21:49:19 +00:00