]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoEmbed the correct name.
scottl [Sun, 24 Oct 2004 08:48:32 +0000 (08:48 +0000)]
Embed the correct name.

19 years agoClean up some messy Makefile stuff so that this can be built into the
scottl [Sun, 24 Oct 2004 08:38:29 +0000 (08:38 +0000)]
Clean up some messy Makefile stuff so that this can be built into the
kernel.

19 years agoHack around a problem with sys/tools/usbdevs2h.awk that generates
ru [Sun, 24 Oct 2004 08:26:48 +0000 (08:26 +0000)]
Hack around a problem with sys/tools/usbdevs2h.awk that generates
both usbdevs.h and usbdevs_data.h.  (The latter was not cleaned.)

19 years agoCurlies only work in target and sources specifications, but
ru [Sun, 24 Oct 2004 07:54:44 +0000 (07:54 +0000)]
Curlies only work in target and sources specifications, but
not when passed to Bourne shell.  This unbreaks "make clean".

19 years agoUse VM_ALLOC_NOBUSY to eliminate an unneeded vm_page_wakeup() call and the
alc [Sun, 24 Oct 2004 07:31:07 +0000 (07:31 +0000)]
Use VM_ALLOC_NOBUSY to eliminate an unneeded vm_page_wakeup() call and the
synchronization that one entails.

19 years agoAvoid repeated acquisition and release of the vm object lock inside of
alc [Sun, 24 Oct 2004 07:12:13 +0000 (07:12 +0000)]
Avoid repeated acquisition and release of the vm object lock inside of
two loops in agp_generic_bind_memory().  As an intended side-effect, all
of the calls to vm_page_wakeup() are now performed with the containing
vm object lock held.

19 years agoSort SUBDIR.
ru [Sun, 24 Oct 2004 06:22:16 +0000 (06:22 +0000)]
Sort SUBDIR.

19 years agoIntroduce VM_ALLOC_NOBUSY, an option to vm_page_alloc() and vm_page_grab()
alc [Sun, 24 Oct 2004 06:15:36 +0000 (06:15 +0000)]
Introduce VM_ALLOC_NOBUSY, an option to vm_page_alloc() and vm_page_grab()
that indicates that the caller does not want a page with its busy flag set.
In many places, the global page queues lock is acquired and released just
to clear the busy flag on a just allocated page.  Both the allocation of
the page and the clearing of the busy flag occur while the containing vm
object is locked.  So, the busy flag might as well never be set.

19 years agoImport the HighPoint RocketRAID 182x driver. Thanks to HighPoint for
scottl [Sun, 24 Oct 2004 05:37:23 +0000 (05:37 +0000)]
Import the HighPoint RocketRAID 182x driver.  Thanks to HighPoint for
providing the original driver, and thanks to IronSystems for providing
hardware for testing.

19 years agoAdd a missing full-stop to match the rest of the items in a list.
keramida [Sun, 24 Oct 2004 00:26:35 +0000 (00:26 +0000)]
Add a missing full-stop to match the rest of the items in a list.

19 years agoCheck unhandled signals before thread marks itself as DEAD,
davidxu [Sat, 23 Oct 2004 23:37:54 +0000 (23:37 +0000)]
Check unhandled signals before thread marks itself as DEAD,
this reduces chances of signal losting problem found by
Peter Holm <peter@holm.cc>

19 years ago1. Move thread list flags into new separate member, and atomically
davidxu [Sat, 23 Oct 2004 23:28:36 +0000 (23:28 +0000)]
1. Move thread list flags into new separate member, and atomically
   put DEAD thread on GC list, this closes a race between pthread_join
   and thr_cleanup.
2. Introduce a mutex to protect tcb initialization, tls allocation and
   deallocation code in rtld seems no lock protection or it is broken,
   under stress testing, memory is corrupted.

Reviewed by: deischen
patch partly provided by: deischen

19 years agoAdd -m option, set default fwmem target.
simokawa [Sat, 23 Oct 2004 23:28:08 +0000 (23:28 +0000)]
Add -m option, set default fwmem target.

19 years agoUse errx() instead of fprintf()/exit() for conciseness.
rwatson [Sat, 23 Oct 2004 22:18:37 +0000 (22:18 +0000)]
Use errx() instead of fprintf()/exit() for conciseness.

Suggested by: ru (some time ago)

19 years agoUse errx() instead of perror()/exit() for conciseness.
rwatson [Sat, 23 Oct 2004 22:11:35 +0000 (22:11 +0000)]
Use errx() instead of perror()/exit() for conciseness.

Suggested by: ru (some time ago)

19 years agoAdd a regression test for the alternate shell specification.
ru [Sat, 23 Oct 2004 21:38:58 +0000 (21:38 +0000)]
Add a regression test for the alternate shell specification.

19 years ago"unset verbose" is 13 characters, not 10.
ru [Sat, 23 Oct 2004 21:36:55 +0000 (21:36 +0000)]
"unset verbose" is 13 characters, not 10.

19 years agoExpand the scope of the .SHELL specification to also cover
ru [Sat, 23 Oct 2004 21:34:41 +0000 (21:34 +0000)]
Expand the scope of the .SHELL specification to also cover
the compat mode of operation and the != operator.

While here, fixed a bug in the .SHELL directive processing
when only the name= attribute is specified and no built-in
shell matches this name, causing null pointer dereference.

Obtained from: NetBSD (except for bugs)

19 years agoDon't call g_waitidle(), it happens automagically now.
phk [Sat, 23 Oct 2004 20:52:15 +0000 (20:52 +0000)]
Don't call g_waitidle(), it happens automagically now.

19 years agoDon't explicitly call g_waitidle(), it happens automagically now.
phk [Sat, 23 Oct 2004 20:50:06 +0000 (20:50 +0000)]
Don't explicitly call g_waitidle(), it happens automagically now.

19 years agoAdd a new per-thread private flag: TDP_GEOM.
phk [Sat, 23 Oct 2004 20:49:17 +0000 (20:49 +0000)]
Add a new per-thread private flag: TDP_GEOM.

This flag gets set whenever the thread posts an event on the GEOM
event queue, and if the flag is set when the thread is prepared
to return to userland from the kernel, g_waitidle() will be called
to make sure that the posted events have completed.

This can replace an insufficient number of g_waitidle() calls in
various other places, and has the advantage of being failsafe:  Any
system call which does a VOP_OPEN()/VOP_CLOSE will now correctly
wait for any geom events it posted as part of spoils or tastes.

Assert that topology and Giant is not held in g_waitidle().

19 years agoMove the prototype for g_waitidle() to a more visible place.
phk [Sat, 23 Oct 2004 20:22:02 +0000 (20:22 +0000)]
Move the prototype for g_waitidle() to a more visible place.

19 years agoDrop Giant around the call to g_waitidle().
phk [Sat, 23 Oct 2004 20:21:05 +0000 (20:21 +0000)]
Drop Giant around the call to g_waitidle().
This is necessary to allow any geom events which need it to pick up Giant.

19 years agoRebuild from FreeBSD32 syscalls.master:1.42.
rwatson [Sat, 23 Oct 2004 20:05:42 +0000 (20:05 +0000)]
Rebuild from FreeBSD32 syscalls.master:1.42.

19 years ago32-bit FreeBSD ABI compatibility stubs from syscalls.master:1.178.
rwatson [Sat, 23 Oct 2004 20:04:56 +0000 (20:04 +0000)]
32-bit FreeBSD ABI compatibility stubs from syscalls.master:1.178.

19 years agoRebuild from syscalls.master:1.178.
rwatson [Sat, 23 Oct 2004 20:01:32 +0000 (20:01 +0000)]
Rebuild from syscalls.master:1.178.

19 years agoAdd system call place-holders for the following system calls
rwatson [Sat, 23 Oct 2004 20:00:43 +0000 (20:00 +0000)]
Add system call place-holders for the following system calls
implementing Sun's BSM Audit API on FreeBSD:

  audit()
  auditon()
  getauid()
  setauid()
  getaudit()
  setaudit()
  getaudit_addr()
  setaudit_addr()
  auditctl()

Submitted by: Wayne Salamon <wsalamon at computer dot org>
Obtained from: TrustedBSD Project

19 years agoDue to space constraints, use gnome2-lite for i386 and gnome2 for everything
scottl [Sat, 23 Oct 2004 19:54:18 +0000 (19:54 +0000)]
Due to space constraints, use gnome2-lite for i386 and gnome2 for everything
else.  Also add ltmdm to i386 by popular request.

19 years agosocreate() does an early abort if either the protocol cannot be found,
andre [Sat, 23 Oct 2004 19:06:43 +0000 (19:06 +0000)]
socreate() does an early abort if either the protocol cannot be found,
or pru_attach is NULL.  With loadable protocols the SPACER dummy protocols
have valid function pointers for all methods to functions returning just
EOPNOTSUPP.  Thus the early abort check would not detect immediately that
attach is not supported for this protocol.  Instead it would correctly
get the EOPNOTSUPP error later on when it calls the protocol specific
attach function.

Add testing against the pru_attach_notsupp() function pointer to the
early abort check as well.

19 years agoAquire GIANT in pf_proto_[un]register() before manipulating the protosw.
andre [Sat, 23 Oct 2004 18:52:06 +0000 (18:52 +0000)]
Aquire GIANT in pf_proto_[un]register() before manipulating the protosw.

19 years agoo Remove entire section talking about RTF_PRCLONING that got nuked in 5.2
andre [Sat, 23 Oct 2004 18:45:53 +0000 (18:45 +0000)]
o Remove entire section talking about RTF_PRCLONING that got nuked in 5.2
  already.
o Better description of IP fastforwarding.  It can do the full thing now
  including firewalling.
o Reword the description of ICMP redirects.
o Add references to route(4) and pfil(9).

19 years agoRephrase certain centences and sync description of default values to reality.
andre [Sat, 23 Oct 2004 18:37:23 +0000 (18:37 +0000)]
Rephrase certain centences and sync description of default values to reality.

19 years agoBump document date that was forgotten in the last commit.
andre [Sat, 23 Oct 2004 18:35:35 +0000 (18:35 +0000)]
Bump document date that was forgotten in the last commit.

Reminded by: ru

19 years agoUse %zu to format size_t instead of %jd and an intmax_t cast.
des [Sat, 23 Oct 2004 15:58:50 +0000 (15:58 +0000)]
Use %zu to format size_t instead of %jd and an intmax_t cast.

Approved by: hamlet

19 years ago/%x/%s/ -- mismerged DEBUGGER() printf() format stirng from the
rwatson [Sat, 23 Oct 2004 15:12:34 +0000 (15:12 +0000)]
/%x/%s/ -- mismerged DEBUGGER() printf() format stirng from the
TrustedBSD branch.

Submitted by: bde

19 years agoMention pf.conf(5), pfctl(8) and pflogd(8) as ADDITIONAL READINGs.
mlaier [Sat, 23 Oct 2004 15:05:46 +0000 (15:05 +0000)]
Mention pf.conf(5), pfctl(8) and pflogd(8) as ADDITIONAL READINGs.

Requested by: Chris Laverdure <dashevil sympatico ca>

19 years agouse bioq_takefirst()
phk [Sat, 23 Oct 2004 12:45:39 +0000 (12:45 +0000)]
use bioq_takefirst()

19 years agoUse bioq_takefirst()
phk [Sat, 23 Oct 2004 12:44:19 +0000 (12:44 +0000)]
Use bioq_takefirst()

19 years agoStop amd64 warnings.
phk [Sat, 23 Oct 2004 12:42:18 +0000 (12:42 +0000)]
Stop amd64 warnings.

19 years agoRemove P_STOPPED_TRACE bit if debugger dies without a chance to
davidxu [Sat, 23 Oct 2004 11:20:26 +0000 (11:20 +0000)]
Remove P_STOPPED_TRACE bit if debugger dies without a chance to
detach debugged process.

19 years agoMake documentation up to date with recent changes.
glebius [Sat, 23 Oct 2004 11:14:30 +0000 (11:14 +0000)]
Make documentation up to date with recent changes.

Reviewed by: ru

19 years agoAdd some basic KTR tracing to busdma on i386. This is likely not
rwatson [Sat, 23 Oct 2004 10:34:27 +0000 (10:34 +0000)]
Add some basic KTR tracing to busdma on i386.  This is likely not
the final set of traces -- someone with more busdma background
will probably want to review and expand this, as well as port to
other platforms.  This tracing is sufficient to identify key
busdma events on i386, and in particular to draw attention to
bounce buffering events that may have a substantial performance
impact.

19 years agoLocking cleanups to remove the need for a recursive mutex
mtm [Sat, 23 Oct 2004 08:33:10 +0000 (08:33 +0000)]
Locking cleanups to remove the need for a recursive mutex
o Instead of locking and unlocking all over the place, use
  lock assertions to make certain that the bfe lock is held
  where necessary.
o Create locked and unlocked versions of bfe_init and bfe_start. These
  functions can be called from outside the module and by functions
  within the bfe module. The calls from outside the module don't
  hold the bfe lock so the unlocked versions called by these functions
  simple obtain the bfe lock and call the locked version.

- Fix a typo (scp) in the locking macros that only worked because in all the
  instances in which it was called the softc pointer happened to be named 'sc'.

- Mark the interrupt MPSAFE

Tested by: matusita, Dario Freni <saturnero@gufi.org>
Silence from: -net, wpaul

19 years agoMove devfs earlier in the boot sequence. Some system daemons and other
mtm [Sat, 23 Oct 2004 06:50:50 +0000 (06:50 +0000)]
Move devfs earlier in the boot sequence. Some system daemons and other
programs may need to use the symlinks and permissions that it sets up.

Discussed on: -current

19 years agoIPDIVERT will automatically load ipdivert.ko if not compiled into the
andre [Fri, 22 Oct 2004 23:07:52 +0000 (23:07 +0000)]
IPDIVERT will automatically load ipdivert.ko if not compiled into the
kernel.

19 years ago- Turn KASSERT()s into warning printf()'s in the g_class_load() routine.
arr [Fri, 22 Oct 2004 22:16:24 +0000 (22:16 +0000)]
- Turn KASSERT()s into warning printf()'s in the g_class_load() routine.
  This removes a panic that will occur if you build with GENERIC and
  attempt to kldload a GEOM module that is already in the kernel.

Reviewed by: phk

19 years agoImprove accuracy of last addition, as best Google advices me.
phk [Fri, 22 Oct 2004 19:59:37 +0000 (19:59 +0000)]
Improve accuracy of last addition, as best Google advices me.

19 years agoShave 40 unused bytes from struct tcpcb.
andre [Fri, 22 Oct 2004 19:55:04 +0000 (19:55 +0000)]
Shave 40 unused bytes from struct tcpcb.

19 years agoAutomatically load the ipdivert module if it was not compiled into the kernel
andre [Fri, 22 Oct 2004 19:36:03 +0000 (19:36 +0000)]
Automatically load the ipdivert module if it was not compiled into the kernel
and natd_enable is true.

19 years agoWhen printing the initialization string and IPDIVERT is not compiled into the
andre [Fri, 22 Oct 2004 19:18:06 +0000 (19:18 +0000)]
When printing the initialization string and IPDIVERT is not compiled into the
kernel refer to it as "loadable" instead of "disabled".

19 years agoRefuse to unload the ipdivert module unless the 'force' flag is given to kldunload.
andre [Fri, 22 Oct 2004 19:12:01 +0000 (19:12 +0000)]
Refuse to unload the ipdivert module unless the 'force' flag is given to kldunload.

Reflect the fact that IPDIVERT is a loadable module in the divert(4) and ipfw(8)
man pages.

19 years agoProperly handle failure to allocate isadma bounce buffer
phk [Fri, 22 Oct 2004 19:01:10 +0000 (19:01 +0000)]
Properly handle failure to allocate isadma bounce buffer

19 years agoRemove a "needs Giant" flag from the /dev/apm compat device.
njl [Fri, 22 Oct 2004 17:17:12 +0000 (17:17 +0000)]
Remove a "needs Giant" flag from the /dev/apm compat device.

MFC after: 2 weeks

19 years agoAdd punctuation which appears to have been accidentally removed in
cperciva [Fri, 22 Oct 2004 16:44:39 +0000 (16:44 +0000)]
Add punctuation which appears to have been accidentally removed in
revision 1.6.

19 years agoI'm surprised this one was not here yet.
phk [Fri, 22 Oct 2004 16:18:15 +0000 (16:18 +0000)]
I'm surprised this one was not here yet.

To save you all a trip to CVSWEB:

Experts have correctly predicted nine out of the last five recessions.
               -- Paul Samuelson,  Nobel laureate in economics.

19 years agoRespect _BOOT flag.
simokawa [Fri, 22 Oct 2004 15:39:39 +0000 (15:39 +0000)]
Respect _BOOT flag.

19 years agoCheck _BOOT flag.
simokawa [Fri, 22 Oct 2004 15:03:22 +0000 (15:03 +0000)]
Check _BOOT flag.

19 years agoRespect RB_MULTIPLE flag.
simokawa [Fri, 22 Oct 2004 14:57:28 +0000 (14:57 +0000)]
Respect RB_MULTIPLE flag.

19 years ago- Add FireWire subclass and OHCI interface.
simokawa [Fri, 22 Oct 2004 14:56:23 +0000 (14:56 +0000)]
- Add FireWire subclass and OHCI interface.
- Add some PCI BIOS function calls.
(find_devclass, read_config, write_config)

19 years agoAdd an annotation to the comment for sysv_ipc.c to indicate that the
rwatson [Fri, 22 Oct 2004 12:12:40 +0000 (12:12 +0000)]
Add an annotation to the comment for sysv_ipc.c to indicate that the
MAC Framework doesn't require checks in ipcperm() because checks
relating to System V IPC will be performed in individual IPC
implementations.

19 years agoIn osethostname(), don't need to call suser() directly as
rwatson [Fri, 22 Oct 2004 12:10:50 +0000 (12:10 +0000)]
In osethostname(), don't need to call suser() directly as
userland_sysctl() will perform all necessary privilege checks for
the caller.

19 years agoExpand comments on various sections of the MAC Framework Policy API,
rwatson [Fri, 22 Oct 2004 11:29:30 +0000 (11:29 +0000)]
Expand comments on various sections of the MAC Framework Policy API,
as well as document the properties of the mac_policy_conf structure.
Warn about the ABI risks in changing the structure without careful
consideration.

Obtained from: TrustedBSD Project
Sponsored by: SPAWAR

19 years agoReplace direct reference to kdb_enter() with a DEBUGGER() macro that
rwatson [Fri, 22 Oct 2004 11:24:50 +0000 (11:24 +0000)]
Replace direct reference to kdb_enter() with a  DEBUGGER() macro that
will call printf() if KDB isn't compiled into the kernel.

Obtained from: TrustedBSD Project
Sponsored by: SPAWAR

19 years agoMinor white space synchronization and line wrapping.
rwatson [Fri, 22 Oct 2004 11:15:47 +0000 (11:15 +0000)]
Minor white space synchronization and line wrapping.

19 years agoIn the MAC label zone destructor, assert that the label is only
rwatson [Fri, 22 Oct 2004 11:08:52 +0000 (11:08 +0000)]
In the MAC label zone destructor, assert that the label is only
destroyed in an initialized state.

19 years agoRemove extern declaration of mac_enforce_sysv, as it's not present in
rwatson [Fri, 22 Oct 2004 11:07:18 +0000 (11:07 +0000)]
Remove extern declaration of mac_enforce_sysv, as it's not present in
the CVS version of the MAC Framework.

19 years agoWhen MAC is enabled, warn if getnewvnode() is asked to produce a vnode
rwatson [Fri, 22 Oct 2004 11:04:58 +0000 (11:04 +0000)]
When MAC is enabled, warn if getnewvnode() is asked to produce a vnode
without a mountpoint.  In this scenario, there's no useful source for
a label on the vnode, since we can't query the mountpoint for the
labeling strategy or default label.

19 years agoAlas, poor SPECFS! -- I knew him, Horatio; A filesystem of infinite
phk [Fri, 22 Oct 2004 09:59:37 +0000 (09:59 +0000)]
Alas, poor SPECFS! -- I knew him, Horatio; A filesystem of infinite
jest, of most excellent fancy: he hath taught me lessons a thousand
times; and now, how abhorred in my imagination it is! my gorge rises
at it.  Here were those hacks that I have curs'd I know not how
oft.  Where be your kludges now? your workarounds? your layering
violations, that were wont to set the table on a roar?

Move the skeleton of specfs into devfs where it now belongs and
bury the rest.

19 years agoAdd NO_BLUETOOTH and NO_AUTHPF variables. [1]
blackend [Fri, 22 Oct 2004 08:49:54 +0000 (08:49 +0000)]
Add NO_BLUETOOTH and NO_AUTHPF variables. [1]
While I'm there use lowercase "yes" for consistency.

Approved by: phk [1]

19 years agoAdd b_bufobj to struct buf which eventually will eliminate the need for b_vp.
phk [Fri, 22 Oct 2004 08:47:20 +0000 (08:47 +0000)]
Add b_bufobj to struct buf which eventually will eliminate the need for b_vp.

Initialize b_bufobj for all buffers.

Make incore() and gbincore() take a bufobj instead of a vnode.

Make inmem() local to vfs_bio.c

Change a lot of VI_[UN]LOCK(bp->b_vp) to BO_[UN]LOCK(bp->b_bufobj)
also VI_MTX() to BO_MTX(),

Make buf_vlist_add() take a bufobj instead of a vnode.

Eliminate other uses of bp->b_vp where bp->b_bufobj will do.

Various minor polishing: remove "register", turn panic into KASSERT,
use new function declarations, TAILQ_FOREACH_SAFE() etc.

19 years agoSort NO* variables.
blackend [Fri, 22 Oct 2004 08:45:34 +0000 (08:45 +0000)]
Sort NO* variables.

Approved by: phk

19 years agoUse bioq_takefirst()
phk [Fri, 22 Oct 2004 08:12:49 +0000 (08:12 +0000)]
Use bioq_takefirst()

19 years agoremoved compilation warning
suz [Fri, 22 Oct 2004 07:31:12 +0000 (07:31 +0000)]
removed compilation warning

PR: bin/71624

19 years agoCorrect and clarify some very incorrect text.
scottl [Fri, 22 Oct 2004 05:21:20 +0000 (05:21 +0000)]
Correct and clarify some very incorrect text.

19 years agoSeperate ia64 from the pack. The disc1 is overflowing to such extend
marcel [Fri, 22 Oct 2004 04:49:09 +0000 (04:49 +0000)]
Seperate ia64 from the pack. The disc1 is overflowing to such extend
that most packages can not be included. It's much easier to list those
that we do want on disc1 for ia64. We only need to list 11 of them.

Apply proper indentation for better readability.

19 years agoDocument the 21610SA card.
scottl [Fri, 22 Oct 2004 04:17:28 +0000 (04:17 +0000)]
Document the 21610SA card.

19 years agoMerge files peter takes off the vendor branch
ache [Thu, 21 Oct 2004 23:45:57 +0000 (23:45 +0000)]
Merge files peter takes off the vendor branch

19 years agoFix some more files that got butchered to appear to be back on the
peter [Thu, 21 Oct 2004 20:10:14 +0000 (20:10 +0000)]
Fix some more files that got butchered to appear to be back on the
vendor branch again.  (These will need a readline import merge too)

19 years agoForce these files back off the vendor branch. They should NEVER have been
peter [Thu, 21 Oct 2004 20:02:02 +0000 (20:02 +0000)]
Force these files back off the vendor branch.  They should NEVER have been
put back on there in the first place. :-(

Note that complete.c will need a readline 5.0 merge.

19 years agoAdd support for the 21610SA 16-channel SATA card. Thanks to Adaptec for
scottl [Thu, 21 Oct 2004 19:14:32 +0000 (19:14 +0000)]
Add support for the 21610SA 16-channel SATA card.  Thanks to Adaptec for
providing hardware for testing.

19 years agoAdd KTR_GEOM, which allows tracing of basic GEOM I/O events occuring
rwatson [Thu, 21 Oct 2004 18:35:24 +0000 (18:35 +0000)]
Add KTR_GEOM, which allows tracing of basic GEOM I/O events occuring
in the g_up and g_down threads.  Each time a bio is propelled up and
down the stack, an event is generating showing the provider, offset,
and length, as well as thread wakeup and work status information.

19 years agoMove the VI_BWAIT flag into no bo_flag element of bufobj and call it BO_WWAIT
phk [Thu, 21 Oct 2004 15:53:54 +0000 (15:53 +0000)]
Move the VI_BWAIT flag into no bo_flag element of bufobj and call it BO_WWAIT

Add bufobj_wref(), bufobj_wdrop() and bufobj_wwait() to handle the write
count on a bufobj.  Bufobj_wdrop() replaces vwakeup().

Use these functions all relevant places except in ffs_softdep.c where
the use if interlocked_sleep() makes this impossible.

Rename b_vnbufs to b_bobufs now that we touch all the relevant files anyway.

19 years agoAdd BO_* macros parallel to VI_* macros for manipulating the bo_mtx.
phk [Thu, 21 Oct 2004 14:42:31 +0000 (14:42 +0000)]
Add BO_* macros parallel to VI_* macros for manipulating the bo_mtx.

Initialize the bo_mtx when we allocate a vnode i getnewvnode() For
now we point to the vnodes interlock mutex, that retains the exact
same locking sematics.

Move v_numoutput from vnode to bufobj.  Add renaming macro to
postpone code sweep.

19 years agoPolish vtruncbuf() to improve readability and style a bit.
phk [Thu, 21 Oct 2004 14:13:54 +0000 (14:13 +0000)]
Polish vtruncbuf() to improve readability and style a bit.

19 years agoRemove NOLIBPTHREAD=yes since BIND related binaries (dig etc.) require
blackend [Thu, 21 Oct 2004 13:56:24 +0000 (13:56 +0000)]
Remove NOLIBPTHREAD=yes since BIND related binaries (dig etc.) require
LIBPTHREAD.

Approved by: phk

19 years agoSimplify buf_vlist_remove().
phk [Thu, 21 Oct 2004 13:48:50 +0000 (13:48 +0000)]
Simplify buf_vlist_remove().

Now that we have encapsulated the splaytree related information
into a structure we can eliminate the half of this function.

19 years agoForced commit to get the right commit message:
phk [Thu, 21 Oct 2004 12:51:36 +0000 (12:51 +0000)]
Forced commit to get the right commit message:

Add new include file <sys/bufobj.h> which will contain the gory
details on the new buffer-cache object. (see comments in file
about the direction this is moving).

Include it from <sys/vnode.h> for now to avoid munging a lot of files
which can later be munged back.

Embed a bufobj in vnode.

Move the buf splay trees from the vnode to the bufobj.

Alias the fields to avoid sweeping code yet.

Hide vnode and bufobj behind

#if defined(_KERNEL) || defined(_KVM_VNODE)

to discourage userland voyeurism.

19 years agoAdd new function ttyinitmode() which sets our systemwide default
phk [Thu, 21 Oct 2004 12:24:38 +0000 (12:24 +0000)]
Add new function ttyinitmode() which sets our systemwide default
modes on a tty structure.  Both the ".init" and the current settings
are initialized allowing the function to be used both at attach and
open time.

The function takes an argument to decide if echoing should be enabled
by default.  Echoing should not be enabled for regular physical
serial ports unless they are consoles, in which case they should
be configured by ttyconsolemode() instead.

Use the new function throughout.

19 years agoAdd -D_KVM_VNODE to indicate that despite being a userland program,
phk [Thu, 21 Oct 2004 12:09:45 +0000 (12:09 +0000)]
Add -D_KVM_VNODE to indicate that despite being a userland program,
we want to know the vnode structures internals.

19 years agoWe want to ignore BUS_DMASYNC_POSTWRITE, not BUS_DMASYNC_POSTREAD.
cognet [Thu, 21 Oct 2004 11:59:33 +0000 (11:59 +0000)]
We want to ignore BUS_DMASYNC_POSTWRITE, not BUS_DMASYNC_POSTREAD.
Spotted out by: mux
Pointy hat to: cognet

19 years agoBump copyright dates for NETA on these files.
rwatson [Thu, 21 Oct 2004 11:29:56 +0000 (11:29 +0000)]
Bump copyright dates for NETA on these files.

19 years agoRemove unnecessary include of vnode.h.
rwatson [Thu, 21 Oct 2004 11:22:07 +0000 (11:22 +0000)]
Remove unnecessary include of vnode.h.

Requested by: phk

19 years agoModify libugidfw(3) to use MBI_* permission flags from mac_bsdextended.h
rwatson [Thu, 21 Oct 2004 11:21:13 +0000 (11:21 +0000)]
Modify libugidfw(3) to use MBI_* permission flags from mac_bsdextended.h
instead of using the V* permission flags from vnode.h.  Remove include
of vnode.h.

Requested by: phk

19 years agoModify mac_bsdextended policy so that it defines its own vnode access
rwatson [Thu, 21 Oct 2004 11:19:02 +0000 (11:19 +0000)]
Modify mac_bsdextended policy so that it defines its own vnode access
right bits rather than piggy-backing on the V* rights defined in
vnode.h.  The mac_bsdextended bits are given the same values as the V*
bits to make the new kernel module binary compatible with the old
version of libugidfw that uses V* bits.  This avoids leaking kernel
API/ABI to user management tools, and in particular should remove the
need for libugidfw to include vnode.h.

Requested by: phk

19 years agoPass WORLD_FLAGS down to the distributeworld target, so it's
ru [Thu, 21 Oct 2004 08:54:10 +0000 (08:54 +0000)]
Pass WORLD_FLAGS down to the distributeworld target, so it's
possible to build releases with customizations such as with
NOPROFILE.

Problem found and fix tested by Roman Neuhauser.

19 years agoDecrease reference count if we won't use the thread, this avoids memory
davidxu [Thu, 21 Oct 2004 03:42:24 +0000 (03:42 +0000)]
Decrease reference count if we won't use the thread, this avoids memory
leak under some cases.

19 years agoZero terminate empty sting in kdb_sysctl_available.
ups [Thu, 21 Oct 2004 01:11:25 +0000 (01:11 +0000)]
Zero terminate empty sting in kdb_sysctl_available.

Approved by:    sam (mentor)
MFC after: 1 week

19 years agoBump the document date, s/filesystem/file system/ and add missing word.
keramida [Wed, 20 Oct 2004 19:05:50 +0000 (19:05 +0000)]
Bump the document date, s/filesystem/file system/ and add missing word.

Noticed by: ru

19 years agoModify the vm object locking in do_sendfile() so that the containing object
alc [Wed, 20 Oct 2004 17:44:40 +0000 (17:44 +0000)]
Modify the vm object locking in do_sendfile() so that the containing object
is locked when vm_page_io_finish() is called on a page.  This is to satisfy
a new, post-RELENG_5 assertion in vm_page_io_finish().  (I am in the
process of transitioning the responsibility for synchronizing access to
various fields/flags on the page from the global page queues lock to the
per-object lock.)

Tripped over by: obrien@

19 years agoIntroduce root_rw_mount as a new variable in defaults/rc.conf to
keramida [Wed, 20 Oct 2004 16:58:28 +0000 (16:58 +0000)]
Introduce root_rw_mount as a new variable in defaults/rc.conf to
unbreak /etc/rc.d/root for diskless systems that get their root
filesystem from a read-only NFS mount.

PR: conf/72927
Submitted by: Ralf Wenk <RZ-FreeBSD1004@fh-karlsruhe.de>
Reviewed by: brooks