Commit Graph

160785 Commits

Author SHA1 Message Date
pooka
573c189296 properly setup ubcflags 2007-07-30 14:49:01 +00:00
he
e448d82109 Change one overlooked label reference from "bad" to "done". 2007-07-30 14:32:40 +00:00
jmmv
a556f30fda In the shark's installation image, create the bpf device from the
'ramdisk' MAKEDEV goal instead of from a Makefile definition.  As there
is just one configuration for the ramdisk, it's better to keep everything
in one place.
2007-07-30 14:03:17 +00:00
jmmv
5575290bc2 Fix build of kernels that use vga or igsfb together with pccons by avoiding
a warning mentioning an unused static function.
2007-07-30 13:02:01 +00:00
jmmv
3e495310cf Print some debugging information when DEBUG is set, not when TERSE is
unset.  The latter is not a "standard" definition, and was used in very
few places anyway.
2007-07-30 12:25:14 +00:00
pooka
eaf29fa688 Move PUFFS_TYPEPREFIX to puffs_msgif.h since it's used in a macro there. 2007-07-30 09:04:58 +00:00
pooka
a06e97c8ef move setrootfstime() from init_main.c to vfs_subr2.c 2007-07-30 08:45:26 +00:00
taca
324019adc6 Make it compile with WD_SOFTBADSECT option. 2007-07-30 06:59:13 +00:00
taca
aefef5cb2c Add lint library for libarchive(3). 2007-07-30 06:58:18 +00:00
rumble
331f3b4b63 Rescue the subjunctive. 2007-07-30 05:00:55 +00:00
rumble
daacba5e07 Be more specific in the description of VOP_READDIR:
- uio->uio_offset must be set to the offset of the next directory entry.
 - each cookie entry points to the next directory entry's offset, not the
   current entry's offset.
 - cookies must be callee allocated with malloc type M_TEMP.
2007-07-30 03:25:50 +00:00
rumble
3ea6a6534e Use _DIRENT_MINSIZE when determining the number of NFS cookies to allocate,
rather than hard-coding 16.
2007-07-29 21:17:41 +00:00
rumble
1c42082598 Only set *ap->a_cookies when we're returning success. Also, do not hard-
code 16, but rather use _DIRENT_MINSIZE as the divisor when determining
the number of cookies to allocate.

Noticed by pooka@.
2007-07-29 20:58:10 +00:00
jmmv
36b239668c Use get_media_subtype_string instead of get_media_mode_string to determine
the card's current media type.  Otherwise it always defaults to 'autoselect'
which is not supported by all cards (e.g. cs(4) in NetBSD/shark).

This was causing problems when configuring an interface with dhclient, as
sysinst could incorrectly reset the media type (the net_media variable) to
'autoselect', writing incorrect ifconfig.<if> files in the target file
system.
2007-07-29 20:44:26 +00:00
rumble
8f9941b474 Support NFS cookies and the eofflag in efs_readdir. Also, be sure to
update uio->uio_offset as not doing so would cause large directory reads
to misbehave.

EFS is now properly NFS-exportable.
2007-07-29 20:15:20 +00:00
jmmv
38b7aff676 Replace usages of bcopy:
- Use memmove to copy memory blocks that are likely to overlap.  Fixes
  some rendering problems in programs that use, for example, the "insert
  rows" feature.  This was reproducible with sysinst as explained here:
  http://mail-index.netbsd.org/tech-install/2007/07/29/0000.html
- Use memcpy in situations where the blocks cannot overlap.
2007-07-29 18:01:11 +00:00
pooka
b5bd455564 make closehandles() void, because that's what it is 2007-07-29 17:50:22 +00:00
joerg
577a8c7029 Add build glue for libarchive and update the various sets. 2007-07-29 17:06:00 +00:00
joerg
ae6a532ddf Add entry for libarchive. 2007-07-29 16:43:59 +00:00
joerg
ed52b7dc34 Import libarchive-2.2.5.
Only the library, tar, the test suites for each and the NEWS are
imported, the rest is not used or currently not useful.

Patches for an aliasing violation and a ctype interface violation
are included, they are scheduled to be part of the next release.
2007-07-29 16:35:09 +00:00
xtraeme
415820dd5e Fix up some comments. 2007-07-29 15:44:24 +00:00
jmmv
daea18cac0 Disable the mouse driver during installation. Not needed. 2007-07-29 15:14:08 +00:00
pooka
59f0f4532f Split vfs_subr.c into routines which need much of the kernel
infrastructure (vfs_subr.c) and routines which need little or none
of the kernel infra (vfs_subr2.c).
2007-07-29 14:44:08 +00:00
nonaka
6198bdd8dc Added /usr/sbin/tpctl 2007-07-29 14:37:53 +00:00
nonaka
16469ee06f Added zaurus. 2007-07-29 14:37:25 +00:00
nonaka
d8caf5f9b4 Added apm releated programs. 2007-07-29 14:35:55 +00:00
nonaka
055f45996f Added zaurus. 2007-07-29 14:34:45 +00:00
nonaka
d1d5985b69 Added apmvar.h 2007-07-29 14:32:18 +00:00
nonaka
1de7f19819 Added support to detect AC adapter and charge battery. 2007-07-29 14:31:23 +00:00
nonaka
9efd71ca75 sync with OpenBSD. 2007-07-29 14:29:38 +00:00
xtraeme
e802e6b656 - Do not call sme_gtredata in sysmon_envsys_createplist, as in some
systems the interrupts are not configured and causes unexpected behaviour
  in acpi_bat and other drivers, reported by cube@.
- Update the 'type' object in sme_update_dictionary(), so that it can
  report the correct units type in acpibat(4).
2007-07-29 14:02:29 +00:00
jmmv
1887d3d26e Add dhclient to the shark's installation disk image so that we can configure
network interfaces through DHCP in sysinst.
2007-07-29 13:59:38 +00:00
ad
10b11b97b0 B_ERROR is gone. 2007-07-29 13:53:46 +00:00
ad
a0d1fd8d0c It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 13:31:07 +00:00
plunky
30ba4a7458 add mention of rc.d/btuartd 2007-07-29 13:17:38 +00:00
pooka
b7321c1a86 apply ketchup to vop_mmap_args comment 2007-07-29 13:12:42 +00:00
ad
eb171eaaa7 It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:50:17 +00:00
pooka
abf11c212d Define a new lockmgr flag LK_RESURRECT which can be used in
conjunction with LK_DRAIN.  This has the same effect as LK_DRAIN
except it atomically does NOT mark the lock as drained.  This
guarantees that when we got the lock, we were the last one currently
waiting for the lock.

Use LK_DRAIN|LK_RESURRECT in vclean() to make sure there are no
waiters for the lock.  This should fix behaviour theoretized to be
caused by vfs_subr.c 1.289 which caused vclean() to run into
completion and free the vnode before all lock-waiters had been
processed.  Should therefore fix the "simple_lock: unitialized lock"
problems seen recently.

thanks to Juergen Hannken-Illjes for some analysis of the problem
and Erik Bertelsen for testing
2007-07-29 12:40:37 +00:00
ad
66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
ad
480f8d26c5 Disable kernel assertions if panicstr != NULL. 2007-07-29 11:46:02 +00:00
ad
c52c14050e Be more forgiving if panicstr != NULL. 2007-07-29 11:45:21 +00:00
ad
79ba10e06a lockmgr > rwlock 2007-07-29 11:25:01 +00:00
pooka
dff8581037 Print also the topmost flag hex in vprint().
fun fact: this bug was introduced over 10 years ago, so I don't
think anyone has really keenly missed it.
2007-07-29 10:00:15 +00:00
pooka
833194271b update CODE REFERENCES to match new module 2007-07-29 09:40:54 +00:00
pooka
e97d926940 Move bitmask_snprintf() from subr_prf.c to subr_prf_bitmask.c to permit
standalone compilation.  No functional change.
2007-07-29 09:38:01 +00:00
rumble
f486212a0e When computing the superblock checksum, use an unsigned short to avoid an
undesired sign-extension. Now EFS works on big endian machines, too.
2007-07-29 00:56:04 +00:00
rumble
64dd04152b Set the 'ri' pointer before use. 2007-07-28 22:35:56 +00:00
mjf
05619021ad Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
2007-07-28 20:28:56 +00:00
dsl
bd8009e530 Don't call P_ZOMBIE(struct kinfo_proc2), it's p_stat field contains
lwp states, not process states!
Since the times are filled with zeros for zombie processes the check
before assuming teh process time is zero is moot - delete it.
Fix the other chact to test the p_realstat.
Fixer PR kern/36295
2007-07-28 17:05:50 +00:00
drochner
c6de8226b0 Back out local NetBSD change (range check to avoid buffer overflow),
to reduce diffs to upstream.
This is superseded by another check (TCHECK2) introduced upstream.
2007-07-28 16:09:14 +00:00