Commit Graph

161160 Commits

Author SHA1 Message Date
pooka
f89f2dc0be Add some barely staggering code to get more disklabel support. 2007-08-14 13:24:07 +00:00
reed
4f402e3972 Add the year for:
08/15  Beatles replace drummer Pete Best with Richard Starkey, 1962
(While http://en.wikipedia.org/wiki/Ringo_Starr
says this happened on August 16 not the 15th.)
2007-08-14 13:15:06 +00:00
martin
2c724d3948 Backout the md_tf part of the previous change - it was wrong and should
not be needed, needs more investigation.
2007-08-14 11:10:55 +00:00
martin
0617d834b5 Initialize lwp0.l_md.md_tf - it was NULL before. Spotted by tnn.
While there, g/c the unused md_pcbpaddr.
2007-08-14 10:42:00 +00:00
dyoung
4287175475 Don't nul-terminate the interface name in a sockaddr_dl that is
part of an ifa_msghdr returned by sysctl(3), because that could
overwrite the ifam_len field of the following ifa_msgher.  Instead,
copy the interface name out of the sockaddr_dl, and then nul-terminate.
Fixes the bug reported by Frank Kardel on current-users@.  Thanks
Frank for reporting, and for testing the fix.
2007-08-14 03:39:19 +00:00
macallan
a0e394bf30 envctrl needs to pull in i2cbus 2007-08-13 22:18:31 +00:00
briggs
b53262281a Check for duplicate sensor names in the IPMI table. If a duplicate name
is found, try to make it unique by appending a count (1-99) to the sensor
description (truncating, if necessary).  This takes my Dell PowerEdge 1800
from:
        Temp:     40.000 degC
  VRD 1 Temp:     35.000 degC
  VRD 0 Temp:     39.000 degC
 Planar Temp:     35.000 degC
Ambient Temp:     20.000 degC
       Fan 2:       1500 RPM
       Fan 1:       1425 RPM
CMOS Battery:      3.057 V
   Intrusion:         ON
     Status :         ON

to:
       Temp3:     40.000 degC
       Temp2:     40.000 degC
  VRD 1 Temp:     35.000 degC
  VRD 0 Temp:     39.000 degC
 Planar Temp:     35.000 degC
Ambient Temp:     20.000 degC
       Temp1:     41.000 degC
        Temp:     43.000 degC
       Fan 2:       1500 RPM
       Fan 1:       1425 RPM
CMOS Battery:      3.057 V
   Intrusion:         ON
    Status 1:         ON
     Status :         ON
2007-08-13 18:32:22 +00:00
pooka
0322f263f2 nuke no longer used vm macros 2007-08-13 15:59:47 +00:00
pooka
5e1193986e opts necessary for vfs_vnops.c missed in previous commit 2007-08-13 13:57:21 +00:00
pooka
7ed98ea083 Add locking assertions to check that file systems comply with the
vnode locking protocol.
2007-08-13 13:52:45 +00:00
pooka
787d952790 Use supermarket variety vfs_vnops.c instead of homecooked routines
(that's actually a good thing here).
2007-08-13 13:51:39 +00:00
pooka
e09047007b lock and unlock vnodes according to locking protocol 2007-08-13 12:20:55 +00:00
pooka
66cdfd6744 compile in libkern __assert.c, argument order differs from libc model 2007-08-13 10:52:15 +00:00
pooka
d1cd2c26a2 * don't call VOP_ACCESS in lookup, that's the file system's problem
* be more careful with r/o fs to catch EEXIST in lookup CREATE
* some comment polish
2007-08-13 09:48:55 +00:00
rillig
3911c95333 A small word can sometimes express things clearer ... 2007-08-13 06:14:08 +00:00
macallan
ce33f23af8 remove two restore without matching save 2007-08-13 03:09:13 +00:00
tsutsui
6c44f1b32b Parse "root=/dev/hdXN" args passed from the firmware and
set default boot device accordingly.
Requested and okay'ed by cyber@.
2007-08-13 02:09:01 +00:00
tsutsui
320e4f3fc5 Remove all references to spl_mask. Now it isn't used by any sources.
Discussed on port-arm.
2007-08-13 02:04:50 +00:00
tsutsui
908dae93e8 Pull the similar fix from arch/shark/isa/isa_irq.S rev 1.8:
In irq_setmasks(), refer spl_masks[current_spl_level] directly
rather than spl_mask which is a saved value in splraise() and
splx() functions because the latter one is not always sync'ed with
current_spl_level and interrupt state could be mangled.
2007-08-13 02:00:14 +00:00
tsutsui
5c47006ea3 In irq_setmasks(), refer spl_masks[current_spl_level] directly
rather than spl_mask which is a saved value in splraise() and
splx() functions because the latter one is not always sync'ed with
current_spl_level and interrupt state could be mangled.

Okay'ed by chris@, and should close PR port-shark/22355.
2007-08-13 01:55:31 +00:00
pooka
e7c5957392 Revert code part of rev 1.95, yamt pointed out it changes NFS semantics. 2007-08-12 23:40:40 +00:00
pooka
4c3f2a2acf enforce MNT_RDONLY 2007-08-12 19:44:15 +00:00
pooka
67c57c75e0 CREATE is a write operation in my book, so check for that also when
checking for a readonly lookup.  This shouldn't make a difference
now, though, as the only RDONLY lookup is done by getcwd(), and
that a) doesn't create files b) calls LOOKUP directly anyway.

Also, fix comment I managed to miss in the previous commit (I didn't
expect the same comment to be there twice).
2007-08-12 19:42:09 +00:00
pooka
5450d0d87b cn_flags RDONLY brilliantly has nothing to do with the file system
itself being r/o, so fix a couple of misguided comments.
2007-08-12 19:31:12 +00:00
macallan
860afb1c25 make this compile (again?) on sparc64 by sprinkling bus_space_vaddr().
Needs testing on both sparc and sparc64 - I don't have a magma.
2007-08-12 17:53:01 +00:00
pooka
306d09812c In case a file system doesn't provide st_blksize, default to DEV_BSIZE. 2007-08-12 15:32:39 +00:00
pooka
74e8607136 track lockmgr lock status. makes lfs work again 2007-08-12 13:34:11 +00:00
christos
5f3802ca6e patches from Axel Thimm 2007-08-12 07:41:51 +00:00
wiz
09bb3e5a2f Use .Nx. 2007-08-12 03:15:18 +00:00
rumble
29de6bc603 Add a note about PMTU lossage in some SGI firmwares. 2007-08-12 01:44:33 +00:00
martin
984c6bf848 Bump SYMTAB_SPACE significantly, so that the MTX-1 kernel builds with
symbols again.
2007-08-11 23:48:04 +00:00
pooka
5a92d448e1 POOL_INIT -> pool_init, we need to call bufinit() anyway 2007-08-11 19:56:53 +00:00
pooka
a307c8e659 boolean_t -> bool sweep 2007-08-11 19:16:21 +00:00
chris
0c2fd7359e Note addition of new chris-arm-intr-rework branch. 2007-08-11 19:10:07 +00:00
rumble
b62e2a9bce Fix typo in dhcpd.conf example. 2007-08-11 18:58:15 +00:00
pooka
ea9b8a0046 run realpath() on the mountpath 2007-08-11 18:04:50 +00:00
pooka
643e56125f * move rump_vopwrite_fault() into history - we now support the file
system faulting in pages if it does e.g. fragment reallocation
* get rid of rumpvm_findpage() and always use uvm_pagelookup()
* determine a vnode's cleanness by flagging it as being on the work
  list if we "take" a write fault and removing it from the worklist
  once pages are flushed.  There is no work list here, but at least
  there is symmetry with the kernel.
2007-08-11 17:52:12 +00:00
jnemeth
a7fddb6456 regem 2007-08-11 02:06:12 +00:00
jnemeth
20861ef7a0 PR/36759 - Christoph Egger -- AMD product updates 2007-08-11 02:05:11 +00:00
dyoung
75929630cc Read the PCI latency timer from the right register, using the right
macro.
2007-08-11 00:45:35 +00:00
dyoung
abb1098904 Make pccbb(4) use more PCI configuration register definitions,
especially the Bridge Control Register definition, instead of
rolling its own.

As we read/modify/write configuration registers, use a variable
that is named for the register we're r/m/w'ing, instead of using
the variable 'reg' over and over.  This helps both a human reader
verify that we're not reading register X, modifying it, and writing
back to register Y (oops); the compiler can help a little by warning
that a variable is used before it is initialized.
2007-08-11 00:31:04 +00:00
dyoung
3a1d58e9a8 Constify. Use satocsdl() and satosdl(). 2007-08-10 23:55:54 +00:00
dyoung
4e20c97fe0 Remove unused definitions CB_CHIPS_LAST and cb_chipset_name. Add
a type code for the Texas Instruments PCI1420 PCI-CardBus bridge,
CB_TI1420, which I will use in the near future.
2007-08-10 22:57:54 +00:00
dyoung
596a16c16b Don't run ctags(1) on sys/altq/altq.h, it redefines useful NetBSD
tag targets.
2007-08-10 22:50:12 +00:00
dyoung
b40a86e49c Use sockaddr_dl_init(). 2007-08-10 22:46:16 +00:00
dyoung
ddf36c7b8b Constify. bcopy -> memcpy. 2007-08-10 22:44:05 +00:00
dyoung
d7d71cd2b5 Constify. 2007-08-10 22:43:26 +00:00
dyoung
219b1f1507 Add offset for Host Bridge Target Interrupt Control register. 2007-08-10 22:39:13 +00:00
dyoung
1f33e95d60 Use __arraycount(). 2007-08-10 22:38:03 +00:00
dyoung
ca87560b9d Fix 'tags' target: ${COMM} overflows the echo command line, so
use ${FINDCOMM} instead.
2007-08-10 22:36:59 +00:00