MFC: Sync with head.
- Use firmware commands to do device discovery instead of SCSI probes
which fixes a problem with multiple volumes and do the probe synchronously
during boot.
- Fix a typo when getting the log_state.
- Consolidate dcmd firmware processing into a single function.
- Cleanup various printfs and nits.
I considered leaving /boot/kernel out of the chflags noschg line, but
I seem to remember that there was a period where /boot/kernel was schg,
so have left it in for safety's sake.
MFC rev 1.274 and 1.275
date: 2006/01/27 21:11:50; author: cognet; state: Exp; lines: +9 -0
Make sure b_vp and b_bufobj are NULL before calling relpbuf(), as it asserts
they are. They should be NULL at this point, except if we're coming from
swapdev_strategy().
It should only affect the case where we're swapping directly on a file over
NFS.
----------------------------
revision 1.275
date: 2005/09/21 15:01:09; author: cognet; state: Exp; lines: +3 -1
Make sure we have a bufobj before calling bstrategy().
I'm not sure this is the right thing to do, but at least I don't panic
anymore when swapping on a NFS file without using md(4).
MFC 1.64: Fix checking of the "lock" file in the spool directory
for a queue, so that the checking will wind up with the correct
mode-bits in the case where the initial open() of that lock file
will create it.
Due to this bug, the first job ever sent to a queue could result
in that queue going in a "printing is disabled" state.
MFC rev. 1.37:
Never zero-out db_last_symtab. Whan backtraces are done
in parallel in several threads, one symbol lookup could
clear db_last_symtab when another one going to use it as
starting point for traversal.
MFC:
- Update the resolver in libc to BIND9's one.
- make reentrant version of netdb functions glibc style API, and
expose them to outside of libc.
- make netdb functions NSS friendly.
- Allow to close access even if device is already destroyed.
Reported by: Ulrich Spoerlein <uspoerlein@gmail.com>
PR: kern/98093
- When kern.geom.raid3.use_malloc tunnable is set to 1, malloc(9) instead of
uma(9) will be used for memory allocation.
In case of problems or tracking bugs, there are more useful tools for
malloc(9) debugging than for uma(9) debugging, like memguard(9) and
redzone(9).
Change fs->fs_fsmnt to mp->mnt_stat.f_mntonname in warnings about missing
MAC and ACLs support in the kernel. If it is a first mount, fs->fs_fsmnt
is empty.
MFC various revisions of usr.sbin/i4b/*/main.c:
Remove build timestamps. There's no need to know exactly when these
programs were built, and this removal makes these binaries build the
same every time.
MFC rev. 1.168: for sockets with LOCAL_CREDS option remove all previous
linked SCM_CREDS control messages and then add a control message with
struct sockcred so the process specifically asked for the peer credentials
by LOCAL_CREDS option always gets struct sockcred.
Create bus_enumerate_hinted_children. This routine will allow
drivers to use the hinted child system. Bus drivers that use
this need to implmenet the bus_hinted_child method, where they
actually add the child to their bus, as they see fit. The bus
is repsonsible for getting the attribtues for the child,
adding it in the right order, etc. ISA hinting will be
updated to use this method.
simon [Wed, 12 Jul 2006 18:51:51 +0000 (18:51 +0000)]
MFC rev 1.90:
In g_dev_strategy(), when failing an IO request with EINVAL due to
offset or request size which is not a multiple of the sector size, make
sure that the bio is set to indicate that no data has actually been
transferred.
The result of this is that the file offset is no longer incremented for
these requests. The fact that the file offset was incremented broke
fdisk(8)'s probing of sector size for non-512 byte sector sizes.
sam [Mon, 10 Jul 2006 01:15:24 +0000 (01:15 +0000)]
MFC 1.131:
o handle fatal errors directly instead of via the task queue
o temporarily dump some h/w state for diagnosis; this will be
removed once some issues are resolved
sam [Mon, 10 Jul 2006 00:46:27 +0000 (00:46 +0000)]
MFC 1.75:
Move conditional preprocessing out from the IEEE80211_DPRINTF macro
invocation. Per C99 6.10.3 paragraph 11 preprocessing directives
appearing as macro arguments yield undefined behavior.
sam [Mon, 10 Jul 2006 00:44:47 +0000 (00:44 +0000)]
MFC 1.74:
Ensure outbound data packets in hostap mode are delivered only
to stations that are associated by making ieee80211_find_txnode
return NULL when a unicast frame is to be delivered to an
unassociated station.
MFC:
- linux_misc.c 1.179
Don't copyout/do unneccesary work if the buffer is a NULL pointer.
Noticed by: Dmitry Ganenko <dima@apk-inform.com>
Reviewed by: rdivacky (the original version as in emulation@)
- linprocfs.c 1.96:
Improve linprovfs to provide/fix the
- process state (idle, sleeping, running, ...) [1]
- the process group ID of the process which owns the connected tty
- some page fault stats
- time spend in kernel/userland
- priority/nice value
- starttime [1]
- memory/swap stats
- scheduling policy
Additionally add some new fields and correct some not filled out ones.
This brings us down to 15 dummy fields.
The fields marked with [1] are needed to get Oracle 10 running. The starttime
field is not completely right, since it displays the _same_ starttime for
_every_ process, but at least it is not 0 and Oracle accepts this.
All of those are needed for Oracle 10. Since previous Oracle versions work
just fine without those fixes, these patches can be seen as regression fixes
too. Because of this I think they are a RELENG_6_x candidate (MFC reminder
set).
MFC: phk's bus_{read,write}_* macros. These are slightly different than
-current because rman is opaque in RELENG_6, but are 100% API compatible.
If they prove to be too slow, we may be able to make rman non-opaque to
mitigate it. This should help porting drivers from -current into
-stable.
MFC: sync taskqueue api with HEAD modulo preserving the calling
convention for taskqueue_create
This is replay of [1], that was backed out before 6.1-RELEASE
due to breaking ACPI on certain laptops. The [2] commit has
fixed this problem. bsam@, who once reported the breakage
confirms that after [2] the problem has vanished and now it
is safe to merge [1] again.
MFC rev. 1.4.
Replace absolute addressing in the call instructions with position-independend
calls. This eliminates TEXTREL from libc, making its text segment relocatable.