phk
47d248f4ca
Add note about changed root mount semantics for (preloaded) memory disks
2004-11-10 07:39:27 +00:00
phk
16982b2183
Remove hack which mounts the root filesystem R/W if the device is
...
named 'md<something>'. While convenient, it does not belong here,
if anywhere at all.
2004-11-10 07:36:09 +00:00
phk
9fdf027988
Slim vnodes by another four bytes by eliminating the (now) unused field
...
v_cachedid.
2004-11-10 07:31:06 +00:00
phk
d09bec0098
Pick up the inode number using VOP_GETATTR() rather than caching it
...
in all vnodes on the off chance that linprocfs needs it. If we can afford
to call vn_fullpath() we can afford the much cheaper VOP_GETATTR().
2004-11-10 07:25:37 +00:00
phk
cea5000057
Remove vn_todev()
2004-11-10 07:17:28 +00:00
phk
28bd6b5898
Don't use vn_todev().
2004-11-10 07:16:59 +00:00
phk
95d99361de
fix some comments
2004-11-10 06:53:31 +00:00
simokawa
36690451fe
Fix malloc type in free().
2004-11-10 06:21:47 +00:00
delphij
05758a9b47
Correct a potential DoS vulnerability, as described at
...
http://www.securityfocus.com/archive/1/379450
This patch is based on dillon's patch on DragonFlyBSD, which is in
turn derived from OpenBSD's src/usr.sbin/pppd/cbcp.c,v 1.6.
Obtained from: OpenBSD via DragonFlyBSD
Encouraged by: nectar
2004-11-10 05:49:52 +00:00
julian
0c7042c36c
Add record capability.
...
Submitted by: Taku Yamamoto (original author)
2004-11-10 04:29:09 +00:00
scottl
8d0c676b01
MFi386 rev 1.63-1.64:
...
Use tag-specific pools of bounce pages instead of a single global pool.
2004-11-10 03:49:24 +00:00
trhodes
e849b9601d
Remove __P here too.
...
Ok'ed by: cognet
2004-11-10 01:33:42 +00:00
imp
aef628c1eb
Learn that 'b' comes before 'e' in ISO-LATIN-1
2004-11-10 00:54:18 +00:00
iedowse
f834839bdf
Keep a handle on the startup rescan timer and cancel the timer if
...
the device goes away.
2004-11-10 00:48:22 +00:00
imp
5bf0e6b98a
Make pci_do_powerstate default to 1 now that we've done the release to
...
get more testing. This should help things a little.
2004-11-10 00:41:39 +00:00
imp
8c126525fe
Tweaks to the resource allocation to allow a few of my obscure
...
cdrom/ata controller PC Card devices work better.
2004-11-10 00:33:05 +00:00
imp
1e7f87c964
Sort function names.
2004-11-10 00:07:09 +00:00
phk
a633563324
Use mount flags instead of NULL path to detect root filesystem mount.
2004-11-09 23:38:10 +00:00
pjd
64bf081bc3
Before trying to update metadata (so open consumer for writing), be sure
...
that the events queue is empty. In other case we're able to hit the race
where for example da0s1 is tasted by some other class, which means that
da0 is open with exclusive bit set, which means that we can't open da0
for writing if it is our component.
Reported by: Attila Nagy <bra@fsn.hu> (and somebody else sometime ago,
but I cannot find who it was)
2004-11-09 23:27:21 +00:00
pjd
412bff1f39
Introduce g_waitidlelock() function which is simlar to g_waitidle(),
...
but should be called with the topology lock held and returns with the
topology lock held and empty event queue.
Approved by: phk (sometime ago)
2004-11-09 23:20:50 +00:00
trhodes
37a1084115
Remove stale comment after previous commit.
...
Noticed by: pjd
2004-11-09 23:19:21 +00:00
pjd
a2d5ae235d
Don't rely on DIRTY flag to be sure that consumer if open, because
...
DIRTY flag can be removed in idle process. Use consumer's acw field
instead to avoid opening consumer twice.
2004-11-09 23:15:40 +00:00
phk
8fe1c85657
Stop pretending to have a vm_object backing the underlying disk vnode:
...
it isn't used for anything anywhere and the vnode_pager would explode
if we attempted to.
2004-11-09 23:12:45 +00:00
pjd
5cac522046
For BIO_READ check if provider is open for reading and for BIO_WRITE,
...
check if provider is open for writing.
This fixes panic when device is open only for writing and we send write
request.
2004-11-09 23:04:45 +00:00
phk
6f9f259ced
Make getdiskbyname() static to vfs_mount.c.
...
Eliminate use of vn_todev() while here.
2004-11-09 23:03:34 +00:00
phk
7bef55364a
Remove vnode->v_cachedfs.
...
It was only used for the highly dangerous "export all vnodes with a sysctl"
function.
2004-11-09 22:51:03 +00:00
wilko
c09a33b488
Remove sections on Multia and Turbolaser.
2004-11-09 22:34:02 +00:00
wilko
d6ff934045
Get in sync with reality: TurboLaser was never really well supported to
...
start with, so let it die in peace. While there, remove Multia-class
as 486-like performance will not buy us much when 6.x arrives.
2004-11-09 22:24:47 +00:00
phk
5eae02ee76
Detect root mount attempts on the flag, not on the NULL path.
2004-11-09 22:21:52 +00:00
phk
37ad4f1923
Refuse attempts to mount root filesystem
2004-11-09 22:21:10 +00:00
phk
921930c585
Refuse attemps to mount root filesystem
2004-11-09 22:14:57 +00:00
keramida
c6f350df37
Revert the noexec,nosuid,nodev options for md /tmp file systems, since
...
the change in the default behavior may break existing, working setups.
Requested by: brooks
2004-11-09 21:33:19 +00:00
mlaier
b188666781
Remove the #if 0 wrapping around !ALTQ stuff that can't be used due to ABI
...
stability anyway.
2004-11-09 21:29:28 +00:00
iedowse
3e514b9f37
Attempt to fix a number of race conditions in the handling of
...
transfer timeouts that typically cause a transfer to be completed
twice, resulting in panics and page faults:
o A transfer completion interrupt could arrive while an abort_task
event was set up, so the transfer would be aborted after it had
completed. This is very easy to reproduce. Fix this by setting
the transfer status to USBD_TIMEOUT before scheduling the
abort_task so that the transfer completion code will ignore it.
o The transfer completion code could execute concurrently with the
timeout callout, leaving the callout blocked (e.g. waiting for
Giant) while the transfer completion code runs. In this case,
callout_stop() does not prevent the callout from running, so
again the timeout code would run after the transfer was complete.
Handle this case by checking the return value from callout_stop(),
and ignoring the transfer if the callout could not be removed.
o Finally, protect against a timeout callout occurring while a
transfer is being aborted by another process. Here we arrange
for the timeout processing to ignore the transfer, and use
callout_drain() to ensure that the callout has really gone before
completing the transfer.
This was tested by repeatedly performing USB transfers with a timeout
set to approximately the same as the normal transfer completion
time. In the PR below, apparently this occurred by accident with a
particular printer and the default timeout.
PR: kern/71491
2004-11-09 20:51:32 +00:00
iedowse
50d51dddeb
When a port cannot be set up, report the error code in the `disabling
...
port X' message.
2004-11-09 19:46:57 +00:00
glebius
9e1a271f2f
Since sb_timeo type was increased to int, use INT_MAX instead of SHRT_MAX.
...
This also gives us ability to close PR.
PR: kern/42352
Approved by: julian (mentor)
MFC after: 1 week
2004-11-09 18:35:26 +00:00
njl
6800ade4c4
Update the manpage for acpi_panasonic for new models supported.
...
Submitted by: OGAWA Takaya
MFC after: 1 day
2004-11-09 18:07:20 +00:00
keramida
457d89dc2b
The correct name of the long option is --line-buffered,
...
not --line-bufferring.
PR: docs/72985
Submitted by: John Engelhart <johne@zang.com>
MFC after: 1 week
2004-11-09 17:00:06 +00:00
cognet
98ebb25e56
Use the RET macro.
...
For setjmp() and longjmp(), put the signal mask where it's supposed to be,
instead of in the space reserved for fp regs.
2004-11-09 16:49:14 +00:00
cognet
7e3e230230
Use the RET macro.
2004-11-09 16:47:47 +00:00
cognet
601293a498
Import a RET macro, that will use bx if the arch supports it.
...
Obtained from: NetBSD
2004-11-09 16:45:55 +00:00
cognet
527c39f49b
Add a week alias __siglongjmp => siglongjmp.
2004-11-09 16:44:57 +00:00
scottl
55a71798c5
Zero the tag when it's allocated. Also fix a printf format problem. This
...
should fix the problems introduced several hours ago.
2004-11-09 16:03:27 +00:00
nyan
749586a21a
Fixed fd related tools on pc98.
...
Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
2004-11-09 14:10:18 +00:00
nyan
268ec4a834
Add FL_MFM flag to the fd_native_types structure.
...
Submitted by: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
2004-11-09 14:08:21 +00:00
phk
d87333225e
Improve readability with a bunch of typedefs for the pager ops.
...
These can also be used for prototypes in the pagers.
2004-11-09 13:43:20 +00:00
sos
ab25fa1db2
Add -c option that calculates the overhead of read I/O ops.
2004-11-09 12:28:41 +00:00
brueffer
b48f38e410
Bump document date
...
Reminded by: ru
2004-11-09 11:50:17 +00:00
rwatson
bd4e6ffd55
Bump MAC Framework version to 2 in preparation for the upcoming API/ABI
...
changes associated with adding System V IPC support. This will prevent
old modules from being used with the new kernel, and new modules from
being used with the old kernel.
2004-11-09 11:28:40 +00:00
keramida
3e9750af4e
Bump document date for the {tmp,var}mfs_flags change.
2004-11-09 10:15:59 +00:00