]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoWhen cleaning up excess inode dependencies, check for being done.
mckusick [Thu, 22 Feb 2001 10:17:57 +0000 (10:17 +0000)]
When cleaning up excess inode dependencies, check for being done.

Reviewed by: Jan Koum <jkb@yahoo-inc.com>

23 years agoNow that zerror() and SPLASSERT() have been laid to rest, INVARIANT_SUPPORT
jhb [Thu, 22 Feb 2001 10:03:05 +0000 (10:03 +0000)]
Now that zerror() and SPLASSERT() have been laid to rest, INVARIANT_SUPPORT
is no longer needed.  R.I.P.

23 years agoDocument that the IPFW messages are logged via syslogd(8).
ru [Thu, 22 Feb 2001 09:12:44 +0000 (09:12 +0000)]
Document that the IPFW messages are logged via syslogd(8).

23 years agoDocument TARGET_ARCH.
jhb [Thu, 22 Feb 2001 08:27:17 +0000 (08:27 +0000)]
Document TARGET_ARCH.

23 years agoConvert an instance of 8 spaces to a tab.
jhb [Thu, 22 Feb 2001 08:13:09 +0000 (08:13 +0000)]
Convert an instance of 8 spaces to a tab.

23 years agoSince we don't have rfd0 anymore, put in a line that will actually work
dcs [Thu, 22 Feb 2001 07:34:53 +0000 (07:34 +0000)]
Since we don't have rfd0 anymore, put in a line that will actually work
for generating floppies.

Mention mdconfig(8) instead of vnconfig(8).

23 years agoMove the realpath(1) birth day from FreeBSD 5.0 to FreeBSD 4.3.
ru [Thu, 22 Feb 2001 07:29:40 +0000 (07:29 +0000)]
Move the realpath(1) birth day from FreeBSD 5.0 to FreeBSD 4.3.

Submitted by: "Stephen L. Palmer" <slpalmer@mail.com>
Forgotten by: asmodai

23 years agoRestore a print_sense=FALSE that got nuked by accident in last delta.
mjacob [Thu, 22 Feb 2001 06:43:42 +0000 (06:43 +0000)]
Restore a print_sense=FALSE that got nuked by accident in last delta.
Noticed by: Dan Nelson <dnelson@emsphone.com>

23 years agoDocument the vacation -d and -l options
gshapiro [Thu, 22 Feb 2001 05:54:31 +0000 (05:54 +0000)]
Document the vacation -d and -l options

PR: docs/22875

23 years agoRevamp /etc/mail/Makefile:
gshapiro [Thu, 22 Feb 2001 04:17:33 +0000 (04:17 +0000)]
Revamp /etc/mail/Makefile:

+ Add support for the new SENDMAIL_MC make.conf knob
+ Add the ability to build .cf files from .mc files
+ Generalize map rebuilding
+ Add the ability to rebuild the aliases file
+ Add the ability to stop, start, and restart sendmail

PR: bin/13759, bin/19897, bin/24397

23 years agoAdd a new make knob, SENDMAIL_MC, which is meant to replace SENDMAIL_CF as
gshapiro [Thu, 22 Feb 2001 04:11:52 +0000 (04:11 +0000)]
Add a new make knob, SENDMAIL_MC, which is meant to replace SENDMAIL_CF as
users should be configuring via m4 now.  If set, use m4 to create the .cf
file.  Also, if either SENDMAIL_MC or SENDMAIL_CF is set, 'make install' or
'make distribution' in src/etc/sendmail/ will install the appropriate .cf as
/etc/mail/sendmail.cf.  This fixes some mergemaster problems.

PR: conf/13016

23 years agoInstall freebsd.mc and freebsd.cf in /etc/mail so users have the base files
gshapiro [Thu, 22 Feb 2001 04:01:16 +0000 (04:01 +0000)]
Install freebsd.mc and freebsd.cf in /etc/mail so users have the base files
for creating their own configuration.

23 years agoFuther cleanups. Since we have two options lists, one for proper options
peter [Thu, 22 Feb 2001 04:00:29 +0000 (04:00 +0000)]
Futher cleanups. Since we have two options lists, one for proper options
and one for Makefile options, pass in the list head and use a common
newopt() routine.
Fix the 'config vmunix' support glue which was broken for a few minutes.

23 years agoMove creation of the sendmail statistics file from the usr.sbin/sendmail
gshapiro [Thu, 22 Feb 2001 03:55:08 +0000 (03:55 +0000)]
Move creation of the sendmail statistics file from the usr.sbin/sendmail
Makefile to the etc/sendmail Makefile to be consistent with all of the
other /var file creations.  In doing so, change the Makefile target from
etc-sendmail.cf to distribution as it installs more than just the sendmail.cf.

23 years agoClean up freebsd.mc to make it easier for users to read and modify.
gshapiro [Thu, 22 Feb 2001 03:41:14 +0000 (03:41 +0000)]
Clean up freebsd.mc to make it easier for users to read and modify.
The freebsd.cf from this new freebsd.mc is functionally equivalent.

23 years agoCollect together a handful of copies of the option generator code into a
peter [Thu, 22 Feb 2001 03:40:50 +0000 (03:40 +0000)]
Collect together a handful of copies of the option generator code into a
single newopt(char *name, char *value) function.  Change newdev() to
do the same thing rather than depending on the evil 'cur' device hack.

23 years agoWork around a race condition where an interrupt handler can be removed from
jhb [Thu, 22 Feb 2001 02:18:32 +0000 (02:18 +0000)]
Work around a race condition where an interrupt handler can be removed from
an interrupt thread while the interrupt thread is blocked on Giant waiting
to execute the interrupt handler being removed.  The result was that the
intrhand structure would be free'd, and we would call 0xdeadc0de.  The work
around is to check to see if the interrupt thread is idle when removing a
handler.  If not, then we mark the interrupt handler as being dead using
the new IH_DEAD flag and don't remove it from the interrupt threads' list
of handlers.  When the interrupt thread resumes, it will see a dead handler
while traversing the list of handlers and will remove the handler then.

23 years agoJust use the ithread->it_proc directly in a KTR tracepoint instead of
jhb [Thu, 22 Feb 2001 02:15:57 +0000 (02:15 +0000)]
Just use the ithread->it_proc directly in a KTR tracepoint instead of
assigning a local var to it and using it, as otherwise the local var wasn't
used, and generated a warning in the !KTR case.

Noticed by: bde

23 years agoAdd KTR tracepoints for adding/removing interrupt handlers,
jhb [Thu, 22 Feb 2001 02:14:08 +0000 (02:14 +0000)]
Add KTR tracepoints for adding/removing interrupt handlers,
creating/destroying interrupt threads, and updating the state of an
interrupt thread.

23 years ago- Use the NOCPU constant.
jhb [Thu, 22 Feb 2001 02:12:54 +0000 (02:12 +0000)]
- Use the NOCPU constant.
- Move the ithread spin locks before sched lock and clk in preparation for
  future commits to the ithread code.

23 years agoQuiet a warning with a uintptr_t cast.
jhb [Thu, 22 Feb 2001 02:10:33 +0000 (02:10 +0000)]
Quiet a warning with a uintptr_t cast.

Noticed by: bde

23 years ago- Use the new NOCPU constant.
jhb [Thu, 22 Feb 2001 00:32:13 +0000 (00:32 +0000)]
- Use the new NOCPU constant.
- Fix a warning.

Noticed by: bde (2)

23 years agoFix a bug where the 'ithread' variable was being set in a KASSERT()
jhb [Thu, 22 Feb 2001 00:23:56 +0000 (00:23 +0000)]
Fix a bug where the 'ithread' variable was being set in a KASSERT()
condition and thus was not initialized properly in the !INVARIANTS case.

Noticed by: bde
Pointy hat to: me

23 years agoPut the kerberos checksum information into the correct CHECKSUM file,
jkh [Wed, 21 Feb 2001 23:01:59 +0000 (23:01 +0000)]
Put the kerberos checksum information into the correct CHECKSUM file,
fixing a long-standing bogon with this.

PR: 24264
Submitted by: Alec Wolman <wolman@cs.washington.edu>

23 years agoRemove attempt to add in PREEMPTION #ifdef test in MI code that didn't
jhb [Wed, 21 Feb 2001 22:51:00 +0000 (22:51 +0000)]
Remove attempt to add in PREEMPTION #ifdef test in MI code that didn't
work because opt_preemption.h wasn't #include'd.  Instead, make use of the
do_switch parameter to ithread_schedule() and do the check in the alpha
interrupt code.

23 years agoNew release notes: Note format string paranoia and tempfile fixes,
bmah [Wed, 21 Feb 2001 21:57:49 +0000 (21:57 +0000)]
New release notes:  Note format string paranoia and tempfile fixes,
OpenSSL ASM optimizations, sysinstall preserving /etc/mail,
savecore -k, pkg_delete(1) now deletes in dependency order.

MFCs noted:  ipfilter 3.4.16, ipfw(8) me, gperf 2.7.2,
lpr(1)/lpd(8)/syslogd(8)/logger(1) IPv6-capable,
bzip2(1) packages.

A few typo fixes were backported from RELNOTESng.

Preference was made to features that have been MFC-ed.  I'll try to
get HEAD caught up to reality soon.

23 years agoBig round of minor updates:
wpaul [Wed, 21 Feb 2001 20:54:22 +0000 (20:54 +0000)]
Big round of minor updates:

- Use pci_get_powerstate()/pci_set_powerstate() in all the other drivers
  that need them so we don't have to fiddle with the PCI power management
  registers directly.
- Use pci_enable_busmaster()/pci_enable_io() to turn on busmastering and
  PIO/memory mapped accesses.
- Add support to the RealTek driver for the D-Link DFE-530TX+ which has
  a RealTek 8139 with its own PCI ID. (Submitted by Jason Wright)
- Have the SiS 900/National DP83815 driver be sure to disable PME
  mode in sis_reset(). This apparently fixes a problem on some
  motherboards where the DP83815 chip fails to receive packets.
  (Submitted by Chuck McCrobie <mccrobie@cablespeed.com>)

23 years agoaic7xxx.c:
gibbs [Wed, 21 Feb 2001 20:50:36 +0000 (20:50 +0000)]
aic7xxx.c:
Use the target offset rather than the target Id to reference
the untagged SCB array.  The offset and id are identical save
in the twin channel case.  This should correct several issues
with the 2742T.

Set the user and goal settings prior to setting the current
settings.  This allows the async update routine to filter out
intermediate transfer negotiation updates that may be less
than interesting.  The Linux OSM uses this to reduce the amount
of stuff printed to the console.

aic7xxx.seq:
Correct an issue with the aic7770 in twin channel mode.
We could continually attempt to start a selection even
though a selection was already occurring on one channel.
This might have the side effect of hanging our selection
or causing us to select the wrong device.

While here, create a separate polling loop for when we
have already started a selection.  This should reduce
the latency of our response to a (re)selection.  The diffs
look larger than they really are due to some code rearrangement
to optimize out a jmp.

aic7xxx_freebsd.c:
Use the target offset rather than the target Id to reference
the untagged SCB array.  The offset and id are identical save
in the twin channel case.  This should correct several issues
with the 2742T.

aic7xxx_inline.h:
Get back in sync with perforce revision ID.

aic7xxx_pci.c:
Identify adapters in ARO mode as such.

Ensure that not only the subvendor ID is correct (9005)
but also that the controller type field is valid before
looking at other information in the subdevice id.  Intel
seems to have decided that their subdevice id of 8086
is more appropriate for some of their MBs with aic7xxx
parts than Adaptec's sanctioned scheme.

Add an exclusion entry for SISL (AAC on MB based adapters).
Adapters in SISL mode are owned by the RAID controller, so
even if a driver for the RAID controller is not present,
it isn't safe for us to touch them.

23 years agoExpand
ben [Wed, 21 Feb 2001 20:43:55 +0000 (20:43 +0000)]
Expand

if ((foo = bar()) != 0)

to
foo = bar();
if (foo != 0)

Submitted by: phk

23 years agoAdd com1-4 as finger friendly shortcuts for /dev/cuaa0-3. Specify a default
nik [Wed, 21 Feb 2001 19:45:47 +0000 (19:45 +0000)]
Add com1-4 as finger friendly shortcuts for /dev/cuaa0-3.  Specify a default
baud rate of 9600.

Reviewed by:    arch

23 years agoReword the description a little bit more for parallel construction.
wollman [Wed, 21 Feb 2001 19:33:38 +0000 (19:33 +0000)]
Reword the description a little bit more for parallel construction.

23 years agoDestroy the evidence of my misunderstanding of the specification.
wollman [Wed, 21 Feb 2001 19:31:53 +0000 (19:31 +0000)]
Destroy the evidence of my misunderstanding of the specification.
Also fix up the phrasing in the man page a bit.

23 years agoFix the osfulator in the face of Doug's optimized system call return path.
gallatin [Wed, 21 Feb 2001 18:48:06 +0000 (18:48 +0000)]
Fix the osfulator in the face of Doug's optimized system call return path.
We now need to set [FRAME_FLAGS] to zero to force a full restore of state
after a signal.

reported by: naddy@mips.inka.de (Christian Weisgerber)

23 years agoif no address is setted, do not call ioctl(SIOCAIFADDR)
ume [Wed, 21 Feb 2001 18:15:18 +0000 (18:15 +0000)]
if no address is setted, do not call ioctl(SIOCAIFADDR)

Obtained from: KAME

23 years agoUse the correct device names (now that we have devfs to embarrass us).
mjacob [Wed, 21 Feb 2001 17:29:01 +0000 (17:29 +0000)]
Use the correct device names (now that we have devfs to embarrass us).
PR: 25254

23 years agoBackout change in 1.153, as it violate rfc1122 section 3.2.1.3.
jesper [Wed, 21 Feb 2001 16:59:47 +0000 (16:59 +0000)]
Backout change in 1.153, as it violate rfc1122 section 3.2.1.3.

Requested by: jlemon,ru

23 years agoremove definition of KRB4, this gets defined conditionally in
assar [Wed, 21 Feb 2001 13:27:39 +0000 (13:27 +0000)]
remove definition of KRB4, this gets defined conditionally in
kerberos5/Makefile and should not have a constant value here.

Submitted by: Jun Kuriyama <kuriyama@imgsrc.co.jp>

23 years agoDon't suggest
ben [Wed, 21 Feb 2001 12:10:19 +0000 (12:10 +0000)]
Don't suggest

if (error = function(a1, a2))

since it causes a warning with -Wall.  Change it so it has an explicit test
against zero,

if ((error = function(a1, a2)) != 0)

23 years agoOur OS name is "freebsd", not "freebsdelf"
obrien [Wed, 21 Feb 2001 11:43:35 +0000 (11:43 +0000)]
Our OS name is "freebsd", not "freebsdelf"

23 years agoFixed warnings.
nyan [Wed, 21 Feb 2001 11:28:02 +0000 (11:28 +0000)]
Fixed warnings.

23 years agoAdd VI_LOCK(), VI_TRYLOCK() and VI_UNLOCK() macros to isolate implementation
bp [Wed, 21 Feb 2001 10:44:12 +0000 (10:44 +0000)]
Add VI_LOCK(), VI_TRYLOCK() and VI_UNLOCK() macros to isolate implementation
details of v_interlock.

Reviewed by: jhb, phk, arch@

23 years agoMerged from sys/isa/sio.c revision 1.326.
kato [Wed, 21 Feb 2001 10:24:21 +0000 (10:24 +0000)]
Merged from sys/isa/sio.c revision 1.326.

23 years agoMerged from sys/i386/isa/clock.c revision 1.170.
kato [Wed, 21 Feb 2001 10:22:22 +0000 (10:22 +0000)]
Merged from sys/i386/isa/clock.c revision 1.170.

23 years agoMerged from sys/i386/i386/machdep.c revision 1.441.
kato [Wed, 21 Feb 2001 10:20:11 +0000 (10:20 +0000)]
Merged from sys/i386/i386/machdep.c revision 1.441.

23 years agoFix parameter order in the calls to MGET().
bp [Wed, 21 Feb 2001 09:24:13 +0000 (09:24 +0000)]
Fix parameter order in the calls to MGET().

23 years agoProperly preserve /etc/mail during upgrades.
jkh [Wed, 21 Feb 2001 07:47:31 +0000 (07:47 +0000)]
Properly preserve /etc/mail during upgrades.

PR: misc/23048
Submitted by: jack@germanium.xtalwind.net

23 years agoo Move per-process jail pointer (p->pr_prison) to inside of the subject
rwatson [Wed, 21 Feb 2001 06:39:57 +0000 (06:39 +0000)]
o Move per-process jail pointer (p->pr_prison) to inside of the subject
  credential structure, ucred (cr->cr_prison).
o Allow jail inheritence to be a function of credential inheritence.
o Abstract prison structure reference counting behind pr_hold() and
  pr_free(), invoked by the similarly named credential reference
  management functions, removing this code from per-ABI fork/exit code.
o Modify various jail() functions to use struct ucred arguments instead
  of struct proc arguments.
o Introduce jailed() function to determine if a credential is jailed,
  rather than directly checking pointers all over the place.
o Convert PRISON_CHECK() macro to prison_check() function.
o Move jail() function prototypes to jail.h.
o Emulate the P_JAILED flag in fill_kinfo_proc() and no longer set the
  flag in the process flags field itself.
o Eliminate that "const" qualifier from suser/p_can/etc to reflect
  mutex use.

Notes:

o Some further cleanup of the linux/jail code is still required.
o It's now possible to consider resolving some of the process vs
  credential based permission checking confusion in the socket code.
o Mutex protection of struct prison is still not present, and is
  required to protect the reference count plus some fields in the
  structure.

Reviewed by: freebsd-arch
Obtained from: TrustedBSD Project

23 years agoDon't include "${.CURDIR}/../../Makefile.inc" explicitly. Doing so was
bde [Wed, 21 Feb 2001 06:12:38 +0000 (06:12 +0000)]
Don't include "${.CURDIR}/../../Makefile.inc" explicitly.  Doing so was
a bogus no-op in the usual case where fortune/ is a subdir of games/
(since <bsd.prog.mk> does an equivalent include automatically if
possible), but breaks building fortune when fortune/ is outside of the
games/ tree (since the include was unconditional here).  This fix
depends on a previous fix for non-recursiveness of ../Makefile.inc
(it didn't exist).

PR: 25232

23 years agoo Remove unnecessary jail() check in bpfopen() -- we limit device access
rwatson [Wed, 21 Feb 2001 05:34:34 +0000 (05:34 +0000)]
o Remove unnecessary jail() check in bpfopen() -- we limit device access
  in jail using /dev namespace limits and mknod() limits, not by explicit
  checks in the device open code.

23 years agoFix a typo, that in some cases may lead to incorrect packages reordering.
sobomax [Wed, 21 Feb 2001 02:01:10 +0000 (02:01 +0000)]
Fix a typo, that in some cases may lead to incorrect packages reordering.

23 years agoEnsure that RLIMIT_NPROC limits are at least 1 to avoid bad interaction
tegge [Tue, 20 Feb 2001 23:34:16 +0000 (23:34 +0000)]
Ensure that RLIMIT_NPROC limits are at least 1 to avoid bad interaction
with chgproccnt.  MFC candiate.

Reviewed by: alfred

23 years agoOnly call in_pcbnotify if the src port number != 0, as we
jesper [Tue, 20 Feb 2001 23:25:04 +0000 (23:25 +0000)]
Only call in_pcbnotify if the src port number != 0, as we
treat 0 as a wildcard in src/sys/in_pbc.c:in_pcbnotify()

It's sufficient to check for src|local port, as we'll have no
sessions with src|local port == 0

Without this a attacker sending ICMP messages, where the attached
IP header (+ 8 bytes) has the address and port numbers == 0, would
have the ICMP message applied to all sessions.

PR: kern/25195
Submitted by: originally by jesper, reimplimented by jlemon's advice
Reviewed by: jlemon
Approved by: jlemon

23 years agoFix vinum for both devfs and non-devfs systems.
alfred [Tue, 20 Feb 2001 22:07:36 +0000 (22:07 +0000)]
Fix vinum for both devfs and non-devfs systems.

userland tool:

  Use the vfs.devfs.generation sysctl to test for devfs presense
  (thanks phk!) when devfs is active it will not try to create the
  device nodes in /dev and therefore will not complain about the
  failure to do so.

  Revert the change in the #define for VINUM_DIR in the kernel
  header so that vinum can find its device nodes.

  Replace perror() with vinum_perror() to print file/line when
  DEVBUG is defined (not defined by default).

kernel:

  Don't use the #define names for the "superdev" creation since
  they will be prepended by "/dev/" (based on VINUM_DIR), instead
  use string constants.

  Create both debug and non-debug "superdev" nodes in the devfs.

Problem noticed and fix tested by: Martin Blapp <mblapp@fuchur.lan.attic.ch>

23 years agoUse the more logical author syntax from pkg_version and quote
jkh [Tue, 20 Feb 2001 21:57:19 +0000 (21:57 +0000)]
Use the more logical author syntax from pkg_version and quote
email addresses properly.

23 years agoSend a ICMP unreachable instead of dropping the packet silent, if we
jesper [Tue, 20 Feb 2001 21:31:47 +0000 (21:31 +0000)]
Send a ICMP unreachable instead of dropping the packet silent, if we
receive a packet not for us, and forwarding disabled.

PR: kern/24512
Reviewed by: jlemon
Approved by: jlemon

23 years agoRemove unneeded loop increment in src/sys/netinet/in_pcb.c:in_pcbnotify
jesper [Tue, 20 Feb 2001 21:11:29 +0000 (21:11 +0000)]
Remove unneeded loop increment in src/sys/netinet/in_pcb.c:in_pcbnotify

Forgotten by phk, when committing fix in kern/23986

PR: kern/23986
Reviewed by: phk
Approved by: phk

23 years agoFix some glaring insecurities in the prototype firewall configurations.
nsayer [Tue, 20 Feb 2001 19:54:31 +0000 (19:54 +0000)]
Fix some glaring insecurities in the prototype firewall configurations.

pass udp from any 53 to ${oip}

allows an attacker to access ANY local port by simply binding his local
side to 53. The state keeping mechanism is the correct way to allow DNS
replies to go back to their source.

23 years agoBring the new script into -current. Still untested here, but there
luigi [Tue, 20 Feb 2001 17:09:40 +0000 (17:09 +0000)]
Bring the new script into -current. Still untested here, but there
is a high chance that they work modulo minor things.

23 years agoforced commit to note that the last delta also reordered some code in
alfred [Tue, 20 Feb 2001 12:14:01 +0000 (12:14 +0000)]
forced commit to note that the last delta also reordered some code in
remove_sd_entry() to:

  Simplify (hopefully) it by moving all error returns closer to
  the beginning of the function.

  Return an error when "Error removing subdisk %s: not found in
  plex %s\n" would have been reported, as I doubt that we are "OK"
  after printing that error message.

23 years agoThese pages are not i386-specific.
ru [Tue, 20 Feb 2001 12:13:29 +0000 (12:13 +0000)]
These pages are not i386-specific.

23 years agoTake a shot at making vinum devfs aware.
alfred [Tue, 20 Feb 2001 11:37:04 +0000 (11:37 +0000)]
Take a shot at making vinum devfs aware.

Adding make_dev() and destroy_dev() calls in (hopefully) the right
places.

This is done by calling make_dev() in each object constructor and
caching the dev_t's returned from make_dev() in each struct
'subdisk'(sd), 'plex' and 'volume' such that the 'object'_free()
functioncs can call destroy dev.

This change makes a subset of the old /dev/vinum appear under devfs.

Enough nodes appear such that I'm able to mount my striped volume.

There may be more work needed to get vinum configuration working
properly.

23 years agoThis patch corrects two problems with the rate limiting code
mckusick [Tue, 20 Feb 2001 11:14:38 +0000 (11:14 +0000)]
This patch corrects two problems with the rate limiting code
that was introduced in revision 1.80. The problem manifested
itself with a `locking against myself' panic and could also
result in soft updates inconsistences associated with inodedeps.
The two problems are:

1) One of the background operations could manipulate the bitmap
while holding it locked with intent to create. This held lock
results in a `locking against myself' panic, when the background
processing that we have been coopted to do tries to lock the bitmap
which we are already holding locked. To understand how to fix this
problem, first, observe that we can do the background cleanups in
inodedep_lookup only when allocating inodedeps (DEPALLOC is set in
the call to inodedep_lookup). Second observe that calls to
inodedep_lookup with DEPALLOC set can only happen from the following
calls into the softdep code:

        softdep_setup_inomapdep
        softdep_setup_allocdirect
        softdep_setup_remove
        softdep_setup_freeblocks
        softdep_setup_directory_change
        softdep_setup_directory_add
        softdep_change_linkcnt

Only the first two of these can come from ffs_alloc.c while holding
a bitmap locked. Thus, inodedep_lookup must not go off to do
request_cleanups when being called from these functions. This change
adds a flag, NODELAY, that can be passed to inodedep_lookup to let
it know that it should not do background processing in those cases.

2) The return value from request_cleanup when helping out with the
cleanup was 0 instead of 1. This meant that despite the fact that
we may have slept while doing the cleanups, the code did not recheck
for the appearance of an inodedep (e.g., goto top in inodedep_lookup).
This lead to the softdep inconsistency in which we ended up with
two inodedep's for the same inode.

Reviewed by: Peter Wemm <peter@yahoo-inc.com>,
Matt Dillon <dillon@earth.backplane.com>

23 years agoRemove the MD part from the document title.
ru [Tue, 20 Feb 2001 11:07:27 +0000 (11:07 +0000)]
Remove the MD part from the document title.

Forgotten by: obrien

23 years ago- In the KTR_EXTEND case, use a const char * to point to the passed in
jhb [Tue, 20 Feb 2001 10:39:55 +0000 (10:39 +0000)]
- In the KTR_EXTEND case, use a const char * to point to the passed in
  filename insteada of copying the first 32 characters of it.
- Add in const modifiers for the passed in format strings and filenames
  and their respective members in the ktr_entry struct.

23 years agoTypo fixes: prefered -> preferred
kris [Tue, 20 Feb 2001 10:30:22 +0000 (10:30 +0000)]
Typo fixes: prefered -> preferred
There are some others in contributed/external code I haven't touched.

23 years ago- Add a new ithread_schedule() function to do the bulk of the work of
jhb [Tue, 20 Feb 2001 10:25:29 +0000 (10:25 +0000)]
- Add a new ithread_schedule() function to do the bulk of the work of
  scheduling an interrupt thread to run when needed.  This has the side
  effect of enabling support for entropy gathering from interrupts on
  all architectures.
- Change the software interrupt and x86 and alpha hardware interrupt code
  to use ithread_schedule() for most of their processing when scheduling
  an interrupt to run.
- Remove the pesky Warning message about interrupt threads having entropy
  enabled.  I'm not sure why I put that in there in the first place.
- Add more error checking for parameters and change some cases that
  returned EINVAL to panic on failure instead via KASSERT().
- Instead of doing a documented evil hack of setting the P_NOLOAD flag
  on every interrupt thread whose pri was SWI_CLOCK, set the flag
  explicity for clk_ithd's proc during start_softintr().

23 years agoBetter detection of duplicated initialization.
simokawa [Tue, 20 Feb 2001 10:23:25 +0000 (10:23 +0000)]
Better detection of duplicated initialization.

Obtained from: KAME

23 years agoCorrect comment typos
kris [Tue, 20 Feb 2001 10:23:10 +0000 (10:23 +0000)]
Correct comment typos

23 years ago- Axe unused macros used by BSD/OS in assembly for KTR tracing.
jhb [Tue, 20 Feb 2001 09:54:44 +0000 (09:54 +0000)]
- Axe unused macros used by BSD/OS in assembly for KTR tracing.
- Add a __printflike() tag to ktr_tracepoint() in the KTR_EXTEND case to
  verify the arguments passed to KTR tracepoints.

23 years ago- Abolish the 'show ktr_first' and 'show ktr_next' commands.
jhb [Tue, 20 Feb 2001 09:53:27 +0000 (09:53 +0000)]
- Abolish the 'show ktr_first' and 'show ktr_next' commands.
- Add pager capability to the 'show ktr' command.  It functions much like
  'ps': Enter at the prompt displays one more entry, Space displays
  another page, and any other key quits.

23 years agoThis time really fix the machine/lock.h thing. This time don't fool make
peter [Tue, 20 Feb 2001 09:37:00 +0000 (09:37 +0000)]
This time really fix the machine/lock.h thing.  This time don't fool make
into thinking that the way to build a .o file is to "rm -f .depend".

Suggested by: imp

23 years agoBack out a controverial commit.
obrien [Tue, 20 Feb 2001 09:09:27 +0000 (09:09 +0000)]
Back out a controverial commit.

23 years agoTurns out we do need to do bootstrapping of MACHINE_CPU here: make(1) won't
kris [Tue, 20 Feb 2001 08:37:51 +0000 (08:37 +0000)]
Turns out we do need to do bootstrapping of MACHINE_CPU here: make(1) won't
set the variable until you rebuild it, and the alternative is to be stuck
playing games with ``.if defined(MACHINE_CPU) && ... '' for all eternity.
We now set up the reasonable default for i386 and alpha here -- given this
it probably makes sense to remove the corresponding code from make(1).

23 years agoPreserve alignment of first mbuf in m_copypacket.
luigi [Tue, 20 Feb 2001 08:23:41 +0000 (08:23 +0000)]
Preserve alignment of first mbuf in m_copypacket.
This is useful when doing copies of packet where some leading
space has been preallocated to insert protocol headers.
Note that there are in fact almost no users of m_copypacket.

MFC candidate.

23 years agoMFS: rev 1.28.2.2 - Support GCC 3.0.
obrien [Tue, 20 Feb 2001 08:20:34 +0000 (08:20 +0000)]
MFS: rev 1.28.2.2 - Support GCC 3.0.

23 years ago- Don't call clear_resched() in userret(), instead, clear the resched flag
jhb [Tue, 20 Feb 2001 05:26:15 +0000 (05:26 +0000)]
- Don't call clear_resched() in userret(), instead, clear the resched flag
  in mi_switch() just before calling cpu_switch() so that the first switch
  after a resched request will satisfy the request.
- While I'm at it, move a few things into mi_switch() and out of
  cpu_switch(), specifically set the p_oncpu and p_lastcpu members of
  proc in mi_switch(), and handle the sched_lock state change across a
  context switch in mi_switch().
- Since cpu_switch() no longer handles the sched_lock state change, we
  have to setup an initial state for sched_lock in fork_exit() before we
  release it.

23 years agoTake luigi's suggestion and move the check for nothing to do to before the
imp [Tue, 20 Feb 2001 04:43:59 +0000 (04:43 +0000)]
Take luigi's suggestion and move the check for nothing to do to before the
lock so we don't have lots of null lock/release pairs.

23 years agoAdd DC_UNLOCK before first return. This caused returns when dc was on
imp [Tue, 20 Feb 2001 04:21:27 +0000 (04:21 +0000)]
Add DC_UNLOCK before first return.  This caused returns when dc was on
a shared interrupt.

Pointed out by tegge.

23 years agoRegen
gallatin [Tue, 20 Feb 2001 03:48:53 +0000 (03:48 +0000)]
Regen

23 years agoSort out the umount breakage introduced in the last 2 revisions.
gallatin [Tue, 20 Feb 2001 03:47:59 +0000 (03:47 +0000)]
Sort out the umount breakage introduced in the last 2 revisions.

Please note:
When committing changes to this file, it is important to note that
linux is not freebsd -- their system call numbers (and sometimes names)
are different on different platforms.  When in doubt (and you always need
to be) check the arch-specific unistd.h and entry.S files in the linux
kernel sources to see what the syscall numbers really are.

23 years agoCorrect IPv4 option processing.
kris [Tue, 20 Feb 2001 03:25:50 +0000 (03:25 +0000)]
Correct IPv4 option processing.

Submitted by: itojun
Obtained from: KAME

23 years agoHook up the linux module for alpha again.
jlemon [Tue, 20 Feb 2001 02:19:01 +0000 (02:19 +0000)]
Hook up the linux module for alpha again.

Approved by: beast

23 years agoRegenerate.
jlemon [Tue, 20 Feb 2001 02:16:38 +0000 (02:16 +0000)]
Regenerate.

23 years agoFix duplicate linux_mount definition
jlemon [Tue, 20 Feb 2001 02:16:07 +0000 (02:16 +0000)]
Fix duplicate linux_mount definition

23 years agoPlace some hooks (__stdin, __stdout, __stderr) into libc for a future
peter [Tue, 20 Feb 2001 01:56:52 +0000 (01:56 +0000)]
Place some hooks (__stdin, __stdout, __stderr) into libc for a future
ABI change.  There is some serious evilness here to work around some
gcc weaknesses.  We need to know the sizeof(FILE) manually until __sF
goes away in the next major bump.  We have the size for Alpha and i386,
missing is ia64, ppc and sparc* (and i386 with 64 bit longs).
At some point down the track we can change the stdin etc #defines to
stop hard coding the size of FILE into application binaries.

Lots of head scratching and ideas and testing by: green, imp

23 years agoAdd back a missing file from the no-asm case
kris [Tue, 20 Feb 2001 01:50:25 +0000 (01:50 +0000)]
Add back a missing file from the no-asm case

Submitted by: gallatin

23 years agoRemove bogus setting of MACHINE_CPU here. There is no need for it.
kris [Mon, 19 Feb 2001 23:33:13 +0000 (23:33 +0000)]
Remove bogus setting of MACHINE_CPU here.  There is no need for it.

Submitted by: bde

23 years agoRemove a remnant of my attempt to get alpha asm code working. OpenSSL
kris [Mon, 19 Feb 2001 23:31:53 +0000 (23:31 +0000)]
Remove a remnant of my attempt to get alpha asm code working.  OpenSSL
does include code for the alpha, but as far as I can tell, it is
non-functional (e.g. it's not even compiled by the native openssl build on
the alpha).

Noticed by: gallatin

23 years agoChange the read-only reply to "550 Permission denied.".
des [Mon, 19 Feb 2001 21:51:26 +0000 (21:51 +0000)]
Change the read-only reply to "550 Permission denied.".

23 years agoMove linux to i386 only until it gets fixed for alpha (again).
mjacob [Mon, 19 Feb 2001 21:20:33 +0000 (21:20 +0000)]
Move linux to i386 only until it gets fixed for alpha (again).

23 years agoCosmetic and spelling fixes. Includes some MDOC policework.
markm [Mon, 19 Feb 2001 20:08:01 +0000 (20:08 +0000)]
Cosmetic and spelling fixes. Includes some MDOC policework.

Submitted by: ru (mostly)

23 years agoadd LC_MONETARY, LC_MESSAGES and LC_NUMERIC definitions for ru_RU.CP866 and
phantom [Mon, 19 Feb 2001 20:05:22 +0000 (20:05 +0000)]
add LC_MONETARY, LC_MESSAGES and LC_NUMERIC definitions for ru_RU.CP866 and
ru_RU.ISO_8859-5 locales

23 years agocleanup commentaries
phantom [Mon, 19 Feb 2001 19:09:00 +0000 (19:09 +0000)]
cleanup commentaries

23 years ago. add comment that 4 character of int_curr_symbol should be SPACE
phantom [Mon, 19 Feb 2001 18:55:34 +0000 (18:55 +0000)]
. add comment that 4 character of int_curr_symbol should be SPACE
. fix chinese locales to meet this requirement

23 years agoBack out rev 1.92
peter [Mon, 19 Feb 2001 18:27:42 +0000 (18:27 +0000)]
Back out rev 1.92

23 years agoChange default devfs permissions to the ones in MAKEDEV.
n_hibma [Mon, 19 Feb 2001 18:14:49 +0000 (18:14 +0000)]
Change default devfs permissions to the ones in MAKEDEV.

Suggested by: rwatson

23 years agoInstall manpages into machine-specific (i386) subdir.
ru [Mon, 19 Feb 2001 16:01:05 +0000 (16:01 +0000)]
Install manpages into machine-specific (i386) subdir.

23 years agoRemove (now unnecessary) MLINKS.
ru [Mon, 19 Feb 2001 15:52:38 +0000 (15:52 +0000)]
Remove (now unnecessary) MLINKS.

23 years agoRemoved all traces of T_ASTFLT (except for gaps where it was). It became
bde [Mon, 19 Feb 2001 15:47:38 +0000 (15:47 +0000)]
Removed all traces of T_ASTFLT (except for gaps where it was).  It became
unused except in dead code when ast() was split off from trap().

23 years agoAdd missing .../cat?/alpha directories.
ru [Mon, 19 Feb 2001 15:30:11 +0000 (15:30 +0000)]
Add missing .../cat?/alpha directories.