]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoUse ACTION_PTR(r) instead of (r->cmd + r->act_ofs).
brooks [Wed, 6 Apr 2005 00:26:08 +0000 (00:26 +0000)]
Use ACTION_PTR(r) instead of (r->cmd + r->act_ofs).

Reviewed by: md5

19 years agoNew release note: SA-05:02.sendfile (+MFC).
bmah [Wed, 6 Apr 2005 00:10:19 +0000 (00:10 +0000)]
New release note:  SA-05:02.sendfile (+MFC).

19 years agoMake dummynet_flush() match its prototype.
brooks [Tue, 5 Apr 2005 23:38:16 +0000 (23:38 +0000)]
Make dummynet_flush() match its prototype.

19 years agoFix a long-standing bug in k_rem_pio2(), which led to large errors when
das [Tue, 5 Apr 2005 23:27:47 +0000 (23:27 +0000)]
Fix a long-standing bug in k_rem_pio2(), which led to large errors when
tanf() was called with big arguments close to multiples of pi/2.

Reported by: ucbtest via bde

19 years agoFix 32 bit signals on amd64. It turns out that I was sign extending
peter [Tue, 5 Apr 2005 22:41:49 +0000 (22:41 +0000)]
Fix 32 bit signals on amd64.  It turns out that I was sign extending
the register values coming back from sigreturn(2).  Normally this wouldn't
matter because the 32 bit environment would truncate the upper 32 bits
and re-save the truncated values at the next trap.  However, if we got
a fast second signal and it was pending while we were returning from
sigreturn(2) in the signal trampoline, we'd never have had a chance to
truncate the bogus values in 32 bit mode, and the new sendsig would get
an EFAULT when trying to write to the bogus user stack address.

19 years agoDocument the configuration files used.
jcamou [Tue, 5 Apr 2005 22:29:47 +0000 (22:29 +0000)]
Document the configuration files used.

PR: docs/79572
Submitted by: Josh Paetzel <josh@tcbug.org>
Approved by:  trhodes (mentor)

19 years agoBe more specific when complaining about bit masks.
brooks [Tue, 5 Apr 2005 22:26:02 +0000 (22:26 +0000)]
Be more specific when complaining about bit masks.

19 years agoAdd support for FTDI's FT2232C twin channel chip.
ticso [Tue, 5 Apr 2005 22:09:18 +0000 (22:09 +0000)]
Add support for FTDI's FT2232C twin channel chip.

Tested by: Mike Tancsa <mike@sentex.net>

19 years agoremove usbd_errstr(err) from printf.
ticso [Tue, 5 Apr 2005 22:03:07 +0000 (22:03 +0000)]
remove usbd_errstr(err) from printf.
err has nothing to say about this specific error.

19 years agoDon't free the _PSS buffer until after we check to see if we have no valid
jhb [Tue, 5 Apr 2005 19:39:44 +0000 (19:39 +0000)]
Don't free the _PSS buffer until after we check to see if we have no valid
states as otherwise we will try to free the buffer twice.

19 years ago'dumpon' can run before 'initrandom' so make it.
obrien [Tue, 5 Apr 2005 18:59:24 +0000 (18:59 +0000)]
'dumpon' can run before 'initrandom' so make it.
This gives a better chance of debugging /dev/random related panics.

19 years agoCorrect type mismatch introduced in last commit.
nectar [Tue, 5 Apr 2005 18:25:27 +0000 (18:25 +0000)]
Correct type mismatch introduced in last commit.

Noticed by: Steve Kargl <sgk@troutmask.apl.washington.edu>

19 years agomake yp stuff re-entrant.
ume [Tue, 5 Apr 2005 18:25:23 +0000 (18:25 +0000)]
make yp stuff re-entrant.

Obtained from: NetBSD

19 years agoprotect _yp_domain with mutex lock.
ume [Tue, 5 Apr 2005 18:07:59 +0000 (18:07 +0000)]
protect _yp_domain with mutex lock.

Inspired by: NetBSD

19 years agoOops, revert a commit that snuck in with the earlier critical section
jhb [Tue, 5 Apr 2005 18:06:28 +0000 (18:06 +0000)]
Oops, revert a commit that snuck in with the earlier critical section
changes.

Noticed by: bde

19 years agoRelease the IRQ resource on detach. This fixes repeatedly loading and
marius [Tue, 5 Apr 2005 17:51:56 +0000 (17:51 +0000)]
Release the IRQ resource on detach. This fixes repeatedly loading and
unloading the hme(4) module in case it attaches to sbus(4).

MFC after: 1 week

19 years ago- Update and expand description of node operation.
glebius [Tue, 5 Apr 2005 17:27:36 +0000 (17:27 +0000)]
- Update and expand description of node operation.
- Cut section IMPLELEMENTATION NOTES. It doesn't apply to
  modern FreeBSD.

Sponsored by: Rambler

19 years agoMajor overhaul and cleanup of ng_source node.
glebius [Tue, 5 Apr 2005 17:22:05 +0000 (17:22 +0000)]
Major overhaul and cleanup of ng_source node.

Functional changes:
- Cut struct source_hookinfo. Just use hook_p pointer.
- Remove "start_now" command. "start" command now requires number of
  packets to send as argument. "start" command actually starts sending.
  Move the code that actually starts sending from ng_source_rcvmsg()
  to ng_source_start().
- Remove check for NG_SOURCE_ACTIVE in ng_source_stop(). We can be called
  with flag cleared (see begin of ng_source_intr()).
- If NG_SEND_DATA_ONLY() use log(LOG_DEBUG) instead of printf(). Otherwise
  we will *flood* console.
- Add ng_connect_t method, which sends NGM_ETHER_GET_IFNAME command
  to "output" hook. Cut ng_source_request_output_ifp(). Refactor
  ng_source_store_output_ifp() to use ifunit() and don't muck through
  interface list.
- Add "setiface" command, which gives ability to configure interface
  in case when ng_source_connect() failed. This happens, when we are not
  connected directly to ng_ether(4) node.
- Remove KASSERTs, which can never fire.
- Don't check for M_PKTHDR in rcvdata method. netgraph(4) does this
  for us.

Style:
- Assign sc_p = NG_NODE_PRIVATE(node) in declaration, to be
  consistent with style of other nodes.
- Sort variables.
- u_intXX -> uintXX.
- Dots at ends of comments.

Sponsored by:   Rambler

19 years agoadd missing mutex unlock.
ume [Tue, 5 Apr 2005 17:13:28 +0000 (17:13 +0000)]
add missing mutex unlock.

19 years agoFix a change in a debug printf I missed in an earlier commit.
jhb [Tue, 5 Apr 2005 15:28:06 +0000 (15:28 +0000)]
Fix a change in a debug printf I missed in an earlier commit.

19 years agoFix a use-after-free problem in atapi_cb(). Add some necessary synchronization
scottl [Tue, 5 Apr 2005 15:08:19 +0000 (15:08 +0000)]
Fix a use-after-free problem in atapi_cb().  Add some necessary synchronization
to the XPT_PATH_INQ op.  Don't leak locks on failure in XPT_SCSIIO.  Correctly
fix the CAMDEBUG message.

19 years agoDES pointed out that the PAM layer may change the target user name
nectar [Tue, 5 Apr 2005 14:55:33 +0000 (14:55 +0000)]
DES pointed out that the PAM layer may change the target user name
during authentication.  Thus we need to call getpwnam *after* the user
has been authenticated.  Colin mentioned that we should also move the
check for root in that case.

19 years agoAdd firstshot support for Acer Labs Inc SATA parts
sos [Tue, 5 Apr 2005 14:51:43 +0000 (14:51 +0000)]
Add firstshot support for Acer Labs Inc SATA parts
Update ALi PATA support to handle ATA133 as well

19 years agonatd core dumps when -reverse switch is used because of a bug in
phk [Tue, 5 Apr 2005 13:04:35 +0000 (13:04 +0000)]
natd core dumps when -reverse switch is used because of a bug in
libalias.

In /usr/src/lib/libalias/alias.c, the functions LibAliasIn and
LibAliasOutTry call the legacy PacketAliasIn/PacketAliasOut instead
of LibAliasIn/LibAliasOut when the PKT_ALIAS_REVERSE option is set.
In this case, the context variable "la" gets lost because the legacy
compatibility routines expect "la" to be global.  This was obviously
an oversight when rewriting the PacketAlias* functions to the
LibAlias* functions.

The fix (as shown in the patch below) is to remove the legacy
subroutine calls and replace with the new ones using the "la" struct
as the first arg.

Submitted by: Gil Kloepfer <fgil@kloepfer.org>
Confirmed by: <nicolai@catpipe.net>
PR: 76839
MFC after: 3 days

19 years agoThere is not much sense in having an else after Punt() and _exit() which
harti [Tue, 5 Apr 2005 12:33:54 +0000 (12:33 +0000)]
There is not much sense in having an else after Punt() and _exit() which
never return. Also use pid_t for variables holding PIDs.

19 years agoPrint thread address.
davidxu [Tue, 5 Apr 2005 11:40:58 +0000 (11:40 +0000)]
Print thread address.

PR: threads/76821

19 years agoExport thread address.
davidxu [Tue, 5 Apr 2005 11:38:30 +0000 (11:38 +0000)]
Export thread address.

19 years agoPush some faulty debugging aside so LINT compiles.
phk [Tue, 5 Apr 2005 09:42:52 +0000 (09:42 +0000)]
Push some faulty debugging aside so LINT compiles.

19 years ago - Move NDFREE() from vfs_subr to vfs_lookup where namei() is.
jeff [Tue, 5 Apr 2005 08:58:49 +0000 (08:58 +0000)]
 - Move NDFREE() from vfs_subr to vfs_lookup where namei() is.

19 years ago - Use taskqueue_thread rather than taskqueue_swi since our task is going
jeff [Tue, 5 Apr 2005 08:51:45 +0000 (08:51 +0000)]
 - Use taskqueue_thread rather than taskqueue_swi since our task is going
   to vrele, which may vop lock.  This is not safe in a software interrupt
   context.

19 years ago - Consistently call 'vp' vp rather than ovp sometimes in ffs_truncate().
jeff [Tue, 5 Apr 2005 08:49:41 +0000 (08:49 +0000)]
 - Consistently call 'vp' vp rather than ovp sometimes in ffs_truncate().
   Do the same for oip.

Pointed out by: glebius

19 years agoPut parantheses into 'if (foo && bar & flag)'. While they are not strictly
harti [Tue, 5 Apr 2005 08:14:40 +0000 (08:14 +0000)]
Put parantheses into 'if (foo && bar & flag)'. While they are not strictly
needed, they are useful for the human reader.

19 years agoRemove lots if irritating parantheses and fix two comments.
harti [Tue, 5 Apr 2005 08:09:48 +0000 (08:09 +0000)]
Remove lots if irritating parantheses and fix two comments.

Checked by: md5

19 years agoRemove the definition for STATIC and just use static.
harti [Tue, 5 Apr 2005 07:44:11 +0000 (07:44 +0000)]
Remove the definition for STATIC and just use static.

19 years agoRemove unneccessary local prototypes.
harti [Tue, 5 Apr 2005 07:43:02 +0000 (07:43 +0000)]
Remove unneccessary local prototypes.

19 years agoThe static tfile is used only in one single function so move it into that
harti [Tue, 5 Apr 2005 07:40:40 +0000 (07:40 +0000)]
The static tfile is used only in one single function so move it into that
function.

19 years agoThe tfile field of struct Job isn't used anymore since revision 1.22 so
harti [Tue, 5 Apr 2005 07:32:12 +0000 (07:32 +0000)]
The tfile field of struct Job isn't used anymore since revision 1.22 so
remove it now.

19 years agoRun em_local_timer() once per second instead of running it once per 2 seconds.
glebius [Tue, 5 Apr 2005 07:06:47 +0000 (07:06 +0000)]
Run em_local_timer() once per second instead of running it once per 2 seconds.
This makes gathering of error stats more precise, and netstat(1) output look
right.

Reviewed by: tackerman

19 years agoAdd locking and enable INTR_MPSAFE. Eliminate spl calls.
alc [Tue, 5 Apr 2005 05:05:29 +0000 (05:05 +0000)]
Add locking and enable INTR_MPSAFE.  Eliminate spl calls.

Submitted by: Paul Willmann willmann at rice dot edu
MFC After: 3 weeks

19 years agoBuild exp2(), exp2f(), and related documentation.
das [Tue, 5 Apr 2005 02:57:39 +0000 (02:57 +0000)]
Build exp2(), exp2f(), and related documentation.

19 years agoDocument exp2() and exp2f(), and make other minor tweaks and updates.
das [Tue, 5 Apr 2005 02:57:28 +0000 (02:57 +0000)]
Document exp2() and exp2f(), and make other minor tweaks and updates.

19 years agoImplement exp2() and exp2f().
das [Tue, 5 Apr 2005 02:57:15 +0000 (02:57 +0000)]
Implement exp2() and exp2f().

19 years agoRe-enable the atapicam driver in NOTES.
scottl [Tue, 5 Apr 2005 02:05:38 +0000 (02:05 +0000)]
Re-enable the atapicam driver in NOTES.

19 years agoConnect the atapicam module to the build.
scottl [Tue, 5 Apr 2005 02:05:01 +0000 (02:05 +0000)]
Connect the atapicam module to the build.

19 years agoAdd a Makefile for atapi-cam.
scottl [Tue, 5 Apr 2005 02:04:30 +0000 (02:04 +0000)]
Add a Makefile for atapi-cam.

19 years agoCommit ATAPI-CAM for ATAmkIII. Improvements and changes:
scottl [Tue, 5 Apr 2005 02:03:31 +0000 (02:03 +0000)]
Commit ATAPI-CAM for ATAmkIII.  Improvements and changes:

- newbus plumbing.  Each atapicam bus is a child off of a parent ata channel
  bus.  This is somewhat of a hack, but allows the ata core to be completely
  free of atapicam knowledge.
- No more global lists of softc's and no more groping around in internal ata
  structures on each command.
- Giant-free operation of the completion handler.
- Per-bus mutex for protecting the busy list and synchronizing detach.
- Lots of streamlining and dead code elimination, better adherence to the
  CAM locking protocol.

This feature still requires that the appropriate atapi-* driver be present
for each atapi device that you want to talk to (i.e. atapi-cd for cdroms).
It does work both compiled into the kernel and as a loadable module.

Reviewed by: thomas, sos

19 years agoAssert that the vnode is locked. This is meant to catch bugs or
csjp [Tue, 5 Apr 2005 01:11:43 +0000 (01:11 +0000)]
Assert that the vnode is locked. This is meant to catch bugs or
mis-use of the vnode API in conditions where IO_NODELOCKED has been
used without the vnode actually being locked.

19 years agoPass exact number of threads.
davidxu [Mon, 4 Apr 2005 23:43:53 +0000 (23:43 +0000)]
Pass exact number of threads.

19 years agoWhen reloading rules via rc.d/pf, flush everything but existing state
seanc [Mon, 4 Apr 2005 23:06:10 +0000 (23:06 +0000)]
When reloading rules via rc.d/pf, flush everything but existing state
entries that way when rules are read in, it doesn't break established
connections.

Approved by: mlaier
Reviewed by: rc
MFC after: 3 weeks

19 years agoDivorce critical sections from spinlocks. Critical sections as denoted by
jhb [Mon, 4 Apr 2005 21:53:56 +0000 (21:53 +0000)]
Divorce critical sections from spinlocks.  Critical sections as denoted by
critical_enter() and critical_exit() are now solely a mechanism for
deferring kernel preemptions.  They no longer have any affect on
interrupts.  This means that standalone critical sections are now very
cheap as they are simply unlocked integer increments and decrements for the
common case.

Spin mutexes now use a separate KPI implemented in MD code: spinlock_enter()
and spinlock_exit().  This KPI is responsible for providing whatever MD
guarantees are needed to ensure that a thread holding a spin lock won't
be preempted by any other code that will try to lock the same lock.  For
now all archs continue to block interrupts in a "spinlock section" as they
did formerly in all critical sections.  Note that I've also taken this
opportunity to push a few things into MD code rather than MI.  For example,
critical_fork_exit() no longer exists.  Instead, MD code ensures that new
threads have the correct state when they are created.  Also, we no longer
try to fixup the idlethreads for APs in MI code.  Instead, each arch sets
the initial curthread and adjusts the state of the idle thread it borrows
in order to perform the initial context switch.

This change is largely a big NOP, but the cleaner separation it provides
will allow for more efficient alternative locking schemes in other parts
of the kernel (bare critical sections rather than per-CPU spin mutexes
for per-CPU data for example).

Reviewed by: grehan, cognet, arch@, others
Tested on: i386, alpha, sparc64, powerpc, arm, possibly more

19 years agoInclude <string.h> and <strings.h> for various functions.
stefanf [Mon, 4 Apr 2005 21:19:48 +0000 (21:19 +0000)]
Include <string.h> and <strings.h> for various functions.

19 years agoFlip the switch and turn mpsafevm on by default for sparc64.
jhb [Mon, 4 Apr 2005 20:59:02 +0000 (20:59 +0000)]
Flip the switch and turn mpsafevm on by default for sparc64.

Approved by: alc

19 years agomake _files_getaddrinfo() re-entrant.
ume [Mon, 4 Apr 2005 19:45:27 +0000 (19:45 +0000)]
make _files_getaddrinfo() re-entrant.

Obtained from: NetBSD

19 years agoDon't leak mutex on open failure.
phk [Mon, 4 Apr 2005 17:37:35 +0000 (17:37 +0000)]
Don't leak mutex on open failure.

19 years agoAdd support for _PDC/_OSC by advertising that we support direct access to
njl [Mon, 4 Apr 2005 15:51:13 +0000 (15:51 +0000)]
Add support for _PDC/_OSC by advertising that we support direct access to
the PERF_CTL/STS MSRs via the new acpi_get_features() method.  This should
allow newer systems to use SpeedStep.

19 years agoAdd the acpi_get_features() method. This method is called on child drivers
njl [Mon, 4 Apr 2005 15:46:57 +0000 (15:46 +0000)]
Add the acpi_get_features() method.  This method is called on child drivers
to see what features they may support before calling identify/probe/attach.
This is necessary because the ACPI 3.0 spec requires driver support be
advertised before running any methods.  For now, the flags are as specified
in for the _PDC and _OSC methods but we can support private flags as needed.

Add an implementation of this for acpi_cpu.  It checks all its children
(notably cpufreq drivers) and calls the _PDC method to report the results.

19 years agoDocument that devclass_get_maxunit(9) returns one greater than the current
njl [Mon, 4 Apr 2005 15:37:59 +0000 (15:37 +0000)]
Document that devclass_get_maxunit(9) returns one greater than the current
highest unit.

Reviewed by: dfr
MFC after: 2 weeks

19 years agoAdd devclass_get_drivers(9) which provides an array of pointers to driver
njl [Mon, 4 Apr 2005 15:26:51 +0000 (15:26 +0000)]
Add devclass_get_drivers(9) which provides an array of pointers to driver
instances in a given devclass.  This is useful for systems that want to
call code in driver static methods, similar to device_identify().

Reviewed by: dfr
MFC after: 2 weeks

19 years ago - Add a missing unlock of the vnode_free_list_mtx.
jeff [Mon, 4 Apr 2005 12:07:16 +0000 (12:07 +0000)]
 - Add a missing unlock of the vnode_free_list_mtx.

Spotted by: Antoine Brodin

19 years ago - Instead of waiting forever to get a vnode in getnewvnode() wait for
jeff [Mon, 4 Apr 2005 11:43:44 +0000 (11:43 +0000)]
 - Instead of waiting forever to get a vnode in getnewvnode() wait for
   one to become available for one second and then return ENFILE.  We
   can run out of vnodes, and there must be a hard limit because without
   one we can quickly run out of KVA on x86.  Presently the system can
   deadlock if there are maxvnodes directories in the namecache.  The
   original 4.x BSD behavior was to return ENFILE if we reached the max,
   but 4.x BSD did not have the vnlru proc so it was less profitable to
   wait.

19 years agoFix a small locking error.
philip [Mon, 4 Apr 2005 10:21:20 +0000 (10:21 +0000)]
Fix a small locking error.

Submitted by: Anish Mistry <mistry.7@osu.edu>

19 years ago - Fix union's assumptions about when the dvp is unlocked. It is only
jeff [Mon, 4 Apr 2005 09:36:26 +0000 (09:36 +0000)]
 - Fix union's assumptions about when the dvp is unlocked.  It is only
   unlocked in the ISDOTDOT case now, not for all !ISLASTCN lookups.

19 years agoNo need to ifdef this pc98.
imp [Mon, 4 Apr 2005 05:28:19 +0000 (05:28 +0000)]
No need to ifdef this pc98.

19 years agoremove extern from function decls
sam [Mon, 4 Apr 2005 04:27:20 +0000 (04:27 +0000)]
remove extern from function decls

19 years agouse frame type returned by ieee80211_input to drive softled code
sam [Mon, 4 Apr 2005 02:34:15 +0000 (02:34 +0000)]
use frame type returned by ieee80211_input to drive softled code
instead of monitoring the input packet count

19 years agochange ieee80211_input to return the frame type or -1
sam [Mon, 4 Apr 2005 02:32:56 +0000 (02:32 +0000)]
change ieee80211_input to return the frame type or -1

19 years agoAdd pthread_condattr_getclock, pthread_condattr_setclock.
davidxu [Sun, 3 Apr 2005 23:55:02 +0000 (23:55 +0000)]
Add pthread_condattr_getclock, pthread_condattr_setclock.

19 years agoExport pthread_condattr_getclock, pthread_condattr_setclock.
davidxu [Sun, 3 Apr 2005 23:52:29 +0000 (23:52 +0000)]
Export pthread_condattr_getclock, pthread_condattr_setclock.

19 years ago - Include opt_vfs.h for LOOKUP_SHARED.
jeff [Sun, 3 Apr 2005 23:50:20 +0000 (23:50 +0000)]
 - Include opt_vfs.h for LOOKUP_SHARED.
 - Control the behavior of shared lookups with the lookup_shared sysctl
   which has its default behavior set via the LOOKUP_SHARED option.

19 years ago - Move LOOKUP_SHARED from opt_global.h to opt_vfs.h so we don't have
jeff [Sun, 3 Apr 2005 23:49:13 +0000 (23:49 +0000)]
 - Move LOOKUP_SHARED from opt_global.h to opt_vfs.h so we don't have
   to recompile the whole kernel if we change it.

19 years agoMove pc98 specific parts to the pc98 specific file.
imp [Sun, 3 Apr 2005 23:27:11 +0000 (23:27 +0000)]
Move pc98 specific parts to the pc98 specific file.

19 years ago - Don't NULL the vnode's v_object pointer until after the object is torn
jeff [Sun, 3 Apr 2005 22:56:58 +0000 (22:56 +0000)]
 - Don't NULL the vnode's v_object pointer until after the object is torn
   down.  If we have dirty pages, the putpages routine will need to know
   what the vnode's object is so that it may write out dirty pages.

Pointy hat: phk
Found by: obrien

19 years agomaxunit is actually one higher than the greatest currently-allocated unit
njl [Sun, 3 Apr 2005 22:23:18 +0000 (22:23 +0000)]
maxunit is actually one higher than the greatest currently-allocated unit
in a devclass.  All the other uses of maxunit are correct and this one was
safe since it checks the return value of devclass_get_device(), which would
always say that the highest unit device doesn't exist.

Reviewed by: dfr
MFC after: 3 days

19 years agoInstead of leaving the current frequency setting at whatever the BIOS set
njl [Sun, 3 Apr 2005 21:45:20 +0000 (21:45 +0000)]
Instead of leaving the current frequency setting at whatever the BIOS set
on boot, force it to HIGH.  This is needed for some systems which appear
to boot with a low acpi_throttle setting by default.  Thanks to Christian
Brueffer for tracking this down on his system.

MFC after: 1 day

19 years agoWith pc98/include, we can have pc98 and i386 specific bus space
imp [Sun, 3 Apr 2005 17:47:03 +0000 (17:47 +0000)]
With pc98/include, we can have pc98 and i386 specific bus space
implementations in their own files named $MACHINE/include/bus.h.  Copy
the contents appropriately.

19 years agoMFen 1.30 -> 1.31
delphij [Sun, 3 Apr 2005 17:41:21 +0000 (17:41 +0000)]
MFen 1.30 -> 1.31

Obtained from: The FreeBSD Simplified Chinese Project CVS

19 years agoMFen 1.276 -> 1.277
delphij [Sun, 3 Apr 2005 16:48:22 +0000 (16:48 +0000)]
MFen 1.276 -> 1.277

Obtained from: The FreeBSD Simplified Chinese Project CVS

19 years agoRemove debug from last commit
imp [Sun, 3 Apr 2005 16:35:58 +0000 (16:35 +0000)]
Remove debug from last commit

19 years ago- Add a missing g_io_deliver() in case of allocation failure - we didn't
pjd [Sun, 3 Apr 2005 14:55:49 +0000 (14:55 +0000)]
- Add a missing g_io_deliver() in case of allocation failure - we didn't
  completed I/O requests here.
- First allocate all needed bios, so if any of allocations fail, we can
  free memory before sending any I/O requests down.

Reported by: Pawel Malachowski
MFC after: 3 days

19 years agoFix a buglet that caused slaves to be nondetected.
sos [Sun, 3 Apr 2005 13:03:53 +0000 (13:03 +0000)]
Fix a buglet that caused slaves to be nondetected.

19 years ago - Use M_ZERO rather than explicitly calling bzero().
jeff [Sun, 3 Apr 2005 12:03:44 +0000 (12:03 +0000)]
 - Use M_ZERO rather than explicitly calling bzero().
 - Don't intermingle direct calls to lockmgr and indirect calls through
   VOPs.  This will be important in the future.
 - Dont lock the devvp's interlock just to release it on the next line by
   passing LK_INTERLOCK to lockmgr.
 - Restructure ffs_snapshot_unmount so we don't call free() with the
   devvp's interlock locked.

19 years ago - Slightly restructure acquire() so I can add more ktr information and
jeff [Sun, 3 Apr 2005 11:49:02 +0000 (11:49 +0000)]
 - Slightly restructure acquire() so I can add more ktr information and
   an assert to help find two strange bugs.
 - Remove some nearby spls.

19 years ago - In ffs_sync we need to pass LK_SLEEPFAIL in when we lock the vnode
jeff [Sun, 3 Apr 2005 10:38:18 +0000 (10:38 +0000)]
 - In ffs_sync we need to pass LK_SLEEPFAIL in when we lock the vnode
   because it may change identities while we're sleeping on the lock.
   Otherwise we may bail out of ffs_sync() early due to an error from
   deadfs.
 - Collapse a VOP_UNLOCK, vrele into a single vput().

19 years ago - Move the contents of softdep_disk_prewrite into ffs_geom_strategy to fix
jeff [Sun, 3 Apr 2005 10:29:55 +0000 (10:29 +0000)]
 - Move the contents of softdep_disk_prewrite into ffs_geom_strategy to fix
   two bugs.
 - ffs_disk_prewrite was pulling the vp from the buf and checking for
   COPYONWRITE, when really it wanted the vp from the bufobj that we're
   writing to, which is the devvp.  This lead to us skipping the copy on
   write to all file data, which significantly broke snapshots for the
   last few months.
 - When the SOFTUPDATES option was not included in the kernel config we
   would also skip the copy on write check, which would effectively disable
   snapshots.
 - Remove an invalid mp_fixme().

Debugging tips from: mckusick
Reported by: iedowse, others
Discussed with: phk

19 years ago - Now that writes to character devices supporting softupdates can
jeff [Sun, 3 Apr 2005 10:24:03 +0000 (10:24 +0000)]
 - Now that writes to character devices supporting softupdates can
   generate dirty bufs even with a locked vnode, 100 retries is not that
   many.  This should probably change from a retry count to an abort when
   we are no longer cleaning any buffers.
 - Don't call vprint() while we still hold the vnode locked.  Move the call
   to later in the function.
 - Clean up a comment.

19 years agoIf they ever tell my story,
pjd [Sun, 3 Apr 2005 09:46:06 +0000 (09:46 +0000)]
If they ever tell my story,
let them say I lived in the time of Pope John Paul II,
one of the greatest man...

Je¶li kiedy¶ kto¶ opowie moj± historiê,
niech powie, ¿e ¿y³em w czasach Papie¿a Jana Paw³a II,
jednego z najwspanialszych ludzi, najwspanialszego Polaka...

-- Pawe³ Jakub Dawidek, atheist

19 years agoRemove GIANT_REQUIRED from elfN_load_section().
alc [Sun, 3 Apr 2005 07:57:47 +0000 (07:57 +0000)]
Remove GIANT_REQUIRED from elfN_load_section().

19 years agoDon't init ifp->if_addrhead, if_attach() does it for us.
brooks [Sun, 3 Apr 2005 05:21:29 +0000 (05:21 +0000)]
Don't init ifp->if_addrhead, if_attach() does it for us.

19 years agoDon't refer to devices that don't exist.
imp [Sun, 3 Apr 2005 05:19:45 +0000 (05:19 +0000)]
Don't refer to devices that don't exist.

19 years ago/*-
imp [Sun, 3 Apr 2005 05:18:28 +0000 (05:18 +0000)]
/*-

19 years agoFix buidling of boot blocks for pc98 with new links.
imp [Sun, 3 Apr 2005 04:58:15 +0000 (04:58 +0000)]
Fix buidling of boot blocks for pc98 with new links.

Submitted by: nyan@

19 years agoDon't forget to create new-style links for module builds.
imp [Sun, 3 Apr 2005 04:56:05 +0000 (04:56 +0000)]
Don't forget to create new-style links for module builds.

Forgotten by: imp@
Reminded by: nyan@

19 years agoMake sure that $_MARCH and friends exist
imp [Sun, 3 Apr 2005 04:53:23 +0000 (04:53 +0000)]
Make sure that $_MARCH and friends exist

Submitted by: nyan@

19 years agoNow that we have proper links, no need to fake up ones as part of
imp [Sun, 3 Apr 2005 04:33:42 +0000 (04:33 +0000)]
Now that we have proper links, no need to fake up ones as part of
depend.  Now that we no longer need this hack, remove it.

Forgotten by: imp
Reminded by: nyan

19 years agoMFC noted: arcmsr(4).
bmah [Sat, 2 Apr 2005 23:28:42 +0000 (23:28 +0000)]
MFC noted:  arcmsr(4).

19 years agoRewrite the fixit section to reflect reality as I understand it.
bmah [Sat, 2 Apr 2005 19:50:07 +0000 (19:50 +0000)]
Rewrite the fixit section to reflect reality as I understand it.

Thanks to avatar and jhb for pointing out the more glaring problems in
the prior version.

19 years agoMention that CDROMs have a slightly different layout than what is
bmah [Sat, 2 Apr 2005 19:41:41 +0000 (19:41 +0000)]
Mention that CDROMs have a slightly different layout than what is
pictured here.  We might want to show a real CDROM layout here.

Also clarify that whatever's in the floppies/ directory is primarily
useful to users who actually need to boot from floppy to start an
installation.

19 years agoUse <replaceable></replaceable> elements where appropriate for floppy
bmah [Sat, 2 Apr 2005 19:39:35 +0000 (19:39 +0000)]
Use <replaceable></replaceable> elements where appropriate for floppy
disk names.

"Approximately three...floppies" is kind of weird to me, so substitute
"several" here instead.  We already mention that a floppy disk set
requires three disks elsewhere, so we're not really losing any
content.

19 years agofix size_to_bin
sam [Sat, 2 Apr 2005 18:56:50 +0000 (18:56 +0000)]
fix size_to_bin

Obtained from: madwifi

19 years agonuke unintentional use of HAL_BOOL type
sam [Sat, 2 Apr 2005 18:54:30 +0000 (18:54 +0000)]
nuke unintentional use of HAL_BOOL type