]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoBetter handling of ioctl(SIOCSIFFLAGS) failing in ifpromisc():
fenner [Fri, 27 Apr 2001 22:20:22 +0000 (22:20 +0000)]
Better handling of ioctl(SIOCSIFFLAGS) failing in ifpromisc():
- Don't print the "promiscuous mode (enabled|disabled)" on failure
- Restore the reference count on failure

23 years agoFirst commit of RELNOTESng, the rewrite of the *.TXT documentation
bmah [Fri, 27 Apr 2001 21:28:02 +0000 (21:28 +0000)]
First commit of RELNOTESng, the rewrite of the *.TXT documentation
files.

src/release/doc/README has additional information.

Reviewed by: -current, -doc

23 years agoSome ports have been renamed after this script has been created.
olgeni [Fri, 27 Apr 2001 20:43:57 +0000 (20:43 +0000)]
Some ports have been renamed after this script has been created.

A couple of renames are needed (disc 1):

  print/xpdf -> graphics/xpdf
  mail/pine -> mail/pine4

23 years agoMove the disklabel construction to the attach function instead of
sos [Fri, 27 Apr 2001 19:47:33 +0000 (19:47 +0000)]
Move the disklabel construction to the attach function instead of
in open. This prevent panics when a the disklabel is accessed on
an ATA-RAID subdisk.

23 years agoCheck the new kern.smp.active sysctl rather than the non-existent
jhb [Fri, 27 Apr 2001 19:33:50 +0000 (19:33 +0000)]
Check the new kern.smp.active sysctl rather than the non-existent
smp.smp_active sysctl to determine if we are running on an SMP machine.

23 years agoOverhaul of the SMP code. Several portions of the SMP kernel support have
jhb [Fri, 27 Apr 2001 19:28:25 +0000 (19:28 +0000)]
Overhaul of the SMP code.  Several portions of the SMP kernel support have
been made machine independent and various other adjustments have been made
to support Alpha SMP.

- It splits the per-process portions of hardclock() and statclock() off
  into hardclock_process() and statclock_process() respectively.  hardclock()
  and statclock() call the *_process() functions for the current process so
  that UP systems will run as before.  For SMP systems, it is simply necessary
  to ensure that all other processors execute the *_process() functions when the
  main clock functions are triggered on one CPU by an interrupt.  For the alpha
  4100, clock interrupts are delievered in a staggered broadcast fashion, so
  we simply call hardclock/statclock on the boot CPU and call the *_process()
  functions on the secondaries.  For x86, we call statclock and hardclock as
  usual and then call forward_hardclock/statclock in the MD code to send an IPI
  to cause the AP's to execute forwared_hardclock/statclock which then call the
  *_process() functions.
- forward_signal() and forward_roundrobin() have been reworked to be MI and to
  involve less hackery.  Now the cpu doing the forward sets any flags, etc. and
  sends a very simple IPI_AST to the other cpu(s).  AST IPIs now just basically
  return so that they can execute ast() and don't bother with setting the
  astpending or needresched flags themselves.  This also removes the loop in
  forward_signal() as sched_lock closes the race condition that the loop worked
  around.
- need_resched(), resched_wanted() and clear_resched() have been changed to take
  a process to act on rather than assuming curproc so that they can be used to
  implement forward_roundrobin() as described above.
- Various other SMP variables have been moved to a MI subr_smp.c and a new
  header sys/smp.h declares MI SMP variables and API's.   The IPI API's from
  machine/ipl.h have moved to machine/smp.h which is included by sys/smp.h.
- The globaldata_register() and globaldata_find() functions as well as the
  SLIST of globaldata structures has become MI and moved into subr_smp.c.
  Also, the globaldata list is only available if SMP support is compiled in.

Reviewed by: jake, peter
Looked over by: eivind

23 years agoMake stathz match reality on platforms like the 4100 where hz!=1024
gallatin [Fri, 27 Apr 2001 18:21:25 +0000 (18:21 +0000)]
Make stathz match reality on platforms like the 4100 where hz!=1024
It might be more correct to make stathz as close as possible to 128,
but that would involve adding complexity to the clock intr path, which
I don't want to do.

23 years agoAdd getaddrinfo(3) to the "SEE ALSO" list.
archie [Fri, 27 Apr 2001 18:18:12 +0000 (18:18 +0000)]
Add getaddrinfo(3) to the "SEE ALSO" list.

23 years agoActually show the values that tripped the assertion "receive 1"
alfred [Fri, 27 Apr 2001 13:42:50 +0000 (13:42 +0000)]
Actually show the values that tripped the assertion "receive 1"

23 years agoRemoved reference to withdrawn secure-supfile.
ru [Fri, 27 Apr 2001 12:15:15 +0000 (12:15 +0000)]
Removed reference to withdrawn secure-supfile.

23 years agostable-supfile now covers 4.x-stable.
ru [Fri, 27 Apr 2001 12:08:34 +0000 (12:08 +0000)]
stable-supfile now covers 4.x-stable.

23 years agoMFS: revision 1.19.2.4
ru [Fri, 27 Apr 2001 12:00:35 +0000 (12:00 +0000)]
MFS: revision 1.19.2.4
Correct comments to fit current realities of exporting crypto.

23 years agomdoc(7) police: fix markup.
ru [Fri, 27 Apr 2001 10:32:48 +0000 (10:32 +0000)]
mdoc(7) police: fix markup.

23 years agomdoc(7) police: removed hard sentence breaks.
ru [Fri, 27 Apr 2001 10:27:06 +0000 (10:27 +0000)]
mdoc(7) police: removed hard sentence breaks.

23 years agomdoc(7) police: removed hard sentence break.
ru [Fri, 27 Apr 2001 10:22:17 +0000 (10:22 +0000)]
mdoc(7) police: removed hard sentence break.

23 years agomdoc(7) police: Removed forgotten .Pp.
ru [Fri, 27 Apr 2001 10:18:22 +0000 (10:18 +0000)]
mdoc(7) police: Removed forgotten .Pp.

23 years agomdoc(7) police: fix markup.
ru [Fri, 27 Apr 2001 10:13:20 +0000 (10:13 +0000)]
mdoc(7) police: fix markup.
(Shows how powerful new -mdoc is.)

23 years agomdoc(7) police: shrink list width by one character.
ru [Fri, 27 Apr 2001 09:06:50 +0000 (09:06 +0000)]
mdoc(7) police: shrink list width by one character.

23 years agomdoc(7) police:
ru [Fri, 27 Apr 2001 08:36:48 +0000 (08:36 +0000)]
mdoc(7) police:
document date updated, removed history info from the .Os call, cosmetics.

23 years agomdoc(7) police: update document date, sort xrefs, fix markup.
ru [Fri, 27 Apr 2001 08:28:44 +0000 (08:28 +0000)]
mdoc(7) police: update document date, sort xrefs, fix markup.

23 years agoGrammar nit.
ru [Fri, 27 Apr 2001 08:16:57 +0000 (08:16 +0000)]
Grammar nit.

23 years agoFixed a typo.
ru [Fri, 27 Apr 2001 08:12:45 +0000 (08:12 +0000)]
Fixed a typo.

23 years agoPut a note that `-h' and `-n' is non-standard and provided only for
sobomax [Fri, 27 Apr 2001 08:00:19 +0000 (08:00 +0000)]
Put a note that `-h' and `-n' is non-standard and provided only for
compatibility purposes.

Prompted by: ru

23 years agoo Remove the disabled p_cansched() test cases that permitted users to
rwatson [Fri, 27 Apr 2001 01:56:32 +0000 (01:56 +0000)]
o Remove the disabled p_cansched() test cases that permitted users to
  modify the scheduling properties of processes with a different real
  uid but the same effective uid (i.e., daemons, et al).  (note: these
  cases were previously commented out, so this does not change the
  compiled code at al)

Obtained from: TrustedBSD Project

23 years agoInitiate the deorbit burn sequence for sys/ipl.h by moving the software
jhb [Fri, 27 Apr 2001 00:29:45 +0000 (00:29 +0000)]
Initiate the deorbit burn sequence for sys/ipl.h by moving the software
interrupt priorities over to sys/interrupt.h next to the software interrupt
API.

23 years agoInitialize p_md.md_kernnest to 1 for newly fork'd processes since they
jhb [Thu, 26 Apr 2001 23:52:40 +0000 (23:52 +0000)]
Initialize p_md.md_kernnest to 1 for newly fork'd processes since they
start off in the kernel.

23 years agoDocument acl_get_entry(3)
jedgar [Thu, 26 Apr 2001 22:28:14 +0000 (22:28 +0000)]
Document acl_get_entry(3)

Obtained from: TrustedBSD Project

23 years agoNew release notes: Advance Logic ALS4000 driver, S3 Sonicvibes driver,
bmah [Thu, 26 Apr 2001 21:33:08 +0000 (21:33 +0000)]
New release notes:  Advance Logic ALS4000 driver, S3 Sonicvibes driver,
ln -h/-n.

23 years agoNew release notes: smbfs, fsck(8) backgrounding, fmtcheck(3),
bmah [Thu, 26 Apr 2001 20:57:25 +0000 (20:57 +0000)]
New release notes:  smbfs, fsck(8) backgrounding, fmtcheck(3),
file 3.35

MFCs noted:  groff 1.17, ping -m

23 years agovfs_subr.c is getting rather fat. The underlying repocopy and this
phk [Thu, 26 Apr 2001 20:47:14 +0000 (20:47 +0000)]
vfs_subr.c is getting rather fat.  The underlying repocopy and this
commit moves the filesystem export handling code to vfs_export.c

23 years agoDocument the "noError" variable.
olgeni [Thu, 26 Apr 2001 20:10:01 +0000 (20:10 +0000)]
Document the "noError" variable.

"noError" is used to ignore errors while processing sysinstall scripts.

Approved by: jkh

23 years agoRemove xlint from build-tools. This needs to be fixed in a different way.
asmodai [Thu, 26 Apr 2001 17:54:24 +0000 (17:54 +0000)]
Remove xlint from build-tools.  This needs to be fixed in a different way.

23 years agoChange this from being alphabetically ordered to being more "practically"
jkh [Thu, 26 Apr 2001 17:40:54 +0000 (17:40 +0000)]
Change this from being alphabetically ordered to being more "practically"
ordered by most frequent preference.

Submitted by: Adam <bsdx@looksharp.net>

23 years agoEnable static IPv6 address assignment on PCMCIA NIC.
ume [Thu, 26 Apr 2001 17:33:37 +0000 (17:33 +0000)]
Enable static IPv6 address assignment on PCMCIA NIC.

PR: conf/26633

23 years agoThe function __rpc_uaddr2taddr_af() converts an RPC "universal
iedowse [Thu, 26 Apr 2001 17:24:05 +0000 (17:24 +0000)]
The function __rpc_uaddr2taddr_af() converts an RPC "universal
address" string to a netbuf/sockaddr "transport address". In the
case of an AF_LOCAL address, it was missing the code to actually
point the netbuf at the newly allocated sockaddr_un, so the caller
ended up with a netbuf containing junk.

Submitted by:  Martin Blapp <mb@imp.ch>

23 years agoPrevious commit should read:
sobomax [Thu, 26 Apr 2001 17:22:48 +0000 (17:22 +0000)]
Previous commit should read:

style(9) Reviewed by: bde

23 years agoFix a grammar bogon.
schweikh [Thu, 26 Apr 2001 17:16:59 +0000 (17:16 +0000)]
Fix a grammar bogon.

23 years agoBring in `-h' compatability option and its alias `-n' to match NetBSD and GNU
sobomax [Thu, 26 Apr 2001 17:15:57 +0000 (17:15 +0000)]
Bring in `-h' compatability option and its alias `-n' to match NetBSD and GNU
semantics.

style(9) Reviewed by:
Obtained from: NetBSD

23 years agoBring in some bugfixes from NetBSD. I'm going to make a more
iedowse [Thu, 26 Apr 2001 17:05:55 +0000 (17:05 +0000)]
Bring in some bugfixes from NetBSD. I'm going to make a more
extensive pass through the rpcbind code soon, but I might as well
bring these in now.

- (NetBSD util.c r1.5) Move the initialisation of `tbuf' to avoid
  a case where it could end up containing junk from the stack. This
  should address the issue in PR bin/26806.
- (NetBSD util.c r1.6) Don't `merge' AF_LOCAL addresses, fix a few
  memory leaks.

PR: bin/26806
Submitted by: Martin Blapp <mb@imp.ch>
Obtained from: NetBSD

23 years agoFix the definitions for memory bank sizes, which I somehow got wrong.
wpaul [Thu, 26 Apr 2001 16:40:45 +0000 (16:40 +0000)]
Fix the definitions for memory bank sizes, which I somehow got wrong.
The constant I was using was correct, but I mislabeled it as 256K when
it should have been 512K. This doesn't actually change the code, but
it clarifies things somewhat.

Submitted by: Chuck Cranor <chuck@research.att.com>

23 years agoRemove a leading underscore that prevented I386_CPU kernels from
jake [Thu, 26 Apr 2001 13:57:03 +0000 (13:57 +0000)]
Remove a leading underscore that prevented I386_CPU kernels from
compiling.

Submitted by: Alexander N. Kabaev <ak03@gte.com>
PR: kern/26858

23 years ago"Portmapper" -> "Rpcbind" in a comment.
alex [Thu, 26 Apr 2001 13:43:02 +0000 (13:43 +0000)]
"Portmapper" -> "Rpcbind" in a comment.

23 years ago-lposix1e is dead.
ru [Thu, 26 Apr 2001 13:33:00 +0000 (13:33 +0000)]
-lposix1e is dead.

23 years agoFix some quotes and mention that it's usually necessary to train
brian [Thu, 26 Apr 2001 13:10:59 +0000 (13:10 +0000)]
Fix some quotes and mention that it's usually necessary to train
your modem to the correct speed when setting up an incoming getty.

23 years agoFix usage of GROFF_BIN_PATH.
ru [Thu, 26 Apr 2001 12:29:12 +0000 (12:29 +0000)]
Fix usage of GROFF_BIN_PATH.

23 years agoAdded missing no's to the -o options list.
ru [Thu, 26 Apr 2001 12:05:23 +0000 (12:05 +0000)]
Added missing no's to the -o options list.
Fixed markup.

23 years agomdoc(7) police: fix markup.
ru [Thu, 26 Apr 2001 11:47:49 +0000 (11:47 +0000)]
mdoc(7) police: fix markup.

23 years ago... and do it make(1) way.
ru [Thu, 26 Apr 2001 11:14:50 +0000 (11:14 +0000)]
... and do it make(1) way.

23 years agoRemove XXX_BROKEN_GCC from the Makefile.
asmodai [Thu, 26 Apr 2001 09:44:41 +0000 (09:44 +0000)]
Remove XXX_BROKEN_GCC from the Makefile.
This compiles just fine with recent gcc's.

23 years agoWhitespace cleanup pass; reduce diffs with OpenBSD. No functional changes.
kris [Thu, 26 Apr 2001 09:22:28 +0000 (09:22 +0000)]
Whitespace cleanup pass; reduce diffs with OpenBSD.  No functional changes.

23 years agoAdd back missing arguments to format strings.
kris [Thu, 26 Apr 2001 08:40:35 +0000 (08:40 +0000)]
Add back missing arguments to format strings.

Reviewed by: hm

23 years agoReduce diffs with OpenBSD:
kris [Thu, 26 Apr 2001 08:37:00 +0000 (08:37 +0000)]
Reduce diffs with OpenBSD:
  #if __STDC__ -> #ifdef __STDC__
  pax_warn() -> paxwarn()
  sys_warn() -> syswarn()
  (foo *)NULL -> NULL
  bcopy -> memmove()/memcpy()
  bzero -> memset()
  Typo fixes
  sprintf() -> snprintf()
  rindex() -> strrchr()
  index() -> strchr()
  sys_errlist[] -> strerror()

Obtained from: OpenBSD

23 years agoUse mkstemp() for secure tempfile creation instead of tempnam()
kris [Thu, 26 Apr 2001 07:32:27 +0000 (07:32 +0000)]
Use mkstemp() for secure tempfile creation instead of tempnam()

Obtained from: OpenBSD
Reviewed by: mikeh

23 years agoFix typo in prev commit - add missing comma
ache [Thu, 26 Apr 2001 06:48:59 +0000 (06:48 +0000)]
Fix typo in prev commit - add missing comma

23 years agomdoc(7) police: remove hard sentence breaks.
dd [Thu, 26 Apr 2001 06:10:46 +0000 (06:10 +0000)]
mdoc(7) police: remove hard sentence breaks.

23 years agoAdd missing break when printing IPv6 multicast addresses.
fenner [Thu, 26 Apr 2001 06:02:03 +0000 (06:02 +0000)]
Add missing break when printing IPv6 multicast addresses.
Use the sockaddr_dl sdl_type, not ifnet.if_type, to decide what type
 a multicast sockaddr_dl is.

23 years agoRemove GCC-ism (-Wall).
will [Thu, 26 Apr 2001 04:40:57 +0000 (04:40 +0000)]
Remove GCC-ism (-Wall).

Submitted by: bde

23 years agoMore new Dell PCI IDs.
msmith [Thu, 26 Apr 2001 01:14:37 +0000 (01:14 +0000)]
More new Dell PCI IDs.

Submitted by: "Marty Moll" <martym@arbor.edu>

23 years agoRather than copying all the indirect blocks of the snapshot,
mckusick [Thu, 26 Apr 2001 00:50:53 +0000 (00:50 +0000)]
Rather than copying all the indirect blocks of the snapshot,
simply mark them as BLK_NOCOPY. This trick cuts the initial
size of the snapshot in half and cuts the time to take a
snapshot by a third.

23 years agoThe PERC 3/Di in the Dell PowerEdge 2250 has a new subdevice ID.
msmith [Thu, 26 Apr 2001 00:32:02 +0000 (00:32 +0000)]
The PERC 3/Di in the Dell PowerEdge 2250 has a new subdevice ID.

Submitted by: Chris Csanady <cc@ameslab.gov>

23 years agoSendfile is documented to return 0 on success, however if when a
alfred [Thu, 26 Apr 2001 00:14:14 +0000 (00:14 +0000)]
Sendfile is documented to return 0 on success, however if when a
sf_hdtr is used to provide writev(2) style headers/trailers on the
sent data the return value is actually either the result of writev(2)
from the trailers or headers of no tailers are specified.

Fix sendfile to comply with the documentation, by returning 0 on
success.

Ok'd by: dg

23 years agoA bogus check for a char device also matched symbolic links.
paul [Wed, 25 Apr 2001 22:07:16 +0000 (22:07 +0000)]
A bogus check for a char device also matched symbolic links.
Replace it with a correct check using S_ISCHR()

Symbolic links will now work again in linux compatibility.

23 years ago- Add some environment variables that need to be present when using packages
steve [Wed, 25 Apr 2001 21:40:57 +0000 (21:40 +0000)]
- Add some environment variables that need to be present when using packages
  from the build cluster.  These are required to get the dependencies the
  same as the parallel builds.
- Add an optional second argument that allows you to specific an alternate
  ports directory.
- Remove the temporary file after we are done with it.
- Remove ksh93 because it won't make it on the discs until the license issues
  are resolved.

Approved by: jkh

23 years agoReduce the number of $FreeBSD$'s from 3 to 2. I believe both remaining
obrien [Wed, 25 Apr 2001 20:58:28 +0000 (20:58 +0000)]
Reduce the number of $FreeBSD$'s from 3 to 2.  I believe both remaining
are needed for proper examples.

23 years agoDon't install KO's with the "schg" flag.
obrien [Wed, 25 Apr 2001 20:56:15 +0000 (20:56 +0000)]
Don't install KO's with the "schg" flag.
We are way too inconsistent with our setting of the "schg" flag, and in
our default install, it doesn't really offer any additional security.

Reviewed by: arch@

23 years agoFix SCM ID's and remove tailing blanks.
obrien [Wed, 25 Apr 2001 20:40:57 +0000 (20:40 +0000)]
Fix SCM ID's and remove tailing blanks.

23 years agoDocument XFREE86_VERSION.
jim [Wed, 25 Apr 2001 19:27:39 +0000 (19:27 +0000)]
Document XFREE86_VERSION.

23 years agoAdd /usr/X11R6/bin to the exported PATH. If /usr/local/bin is there,
obrien [Wed, 25 Apr 2001 19:11:09 +0000 (19:11 +0000)]
Add /usr/X11R6/bin to the exported PATH.  If /usr/local/bin is there,
/usr/X11R6/bin should be there.  This helps all the ports that need to
run `mkfontdir' and error out as many port maintainers do not realize
`mkfontdir' isn't in the path.

Prompted by: pkg_add pcemu

23 years agoAdd support for -F flag (trivial as background check is never possible).
mckusick [Wed, 25 Apr 2001 19:05:23 +0000 (19:05 +0000)]
Add support for -F flag (trivial as background check is never possible).

23 years agoFix compiling without -O, some dead code was using non-existant functions,
alfred [Wed, 25 Apr 2001 18:40:38 +0000 (18:40 +0000)]
Fix compiling without -O, some dead code was using non-existant functions,
make the code not automatically dead but actually use the debug level
in order to determine if output is needed.  Fix non-existant from_addr()
by #define'ing it to inet_ntoa().

Remove hardcoded -g from Makefile.

Reported by: "John W. De Boskey" <jwd@bsdwins.com>
Tested by: "John W. De Boskey" <jwd@bsdwins.com>

23 years ago- Make the dumping of console messages from the secondary CPU's to the
jhb [Wed, 25 Apr 2001 17:24:57 +0000 (17:24 +0000)]
- Make the dumping of console messages from the secondary CPU's to the
  kernel console be #ifdef DIAGNOSTIC.
- Don't set ktr_mask in release_aps().

23 years agoBackout rev.1.30, as the root of this problem was already fixed
ru [Wed, 25 Apr 2001 15:10:36 +0000 (15:10 +0000)]
Backout rev.1.30, as the root of this problem was already fixed
in bsd.obj.mk rev.1.35, and

On Tue, Apr 24, 2001 at 06:29:27AM +1000, Bruce Evans wrote:
>
> This is bogus.  It is normal for sloppy cleaning to cause problems.
> `make depend' after `make depend' should not do anything.  I'm still
> waiting for a similar problem in kdump to be fixed properly :-).

23 years agoAdd -Wall.
ru [Wed, 25 Apr 2001 14:59:16 +0000 (14:59 +0000)]
Add -Wall.

23 years ago-Wall cleanup.
ru [Wed, 25 Apr 2001 14:45:36 +0000 (14:45 +0000)]
-Wall cleanup.

23 years agounifdef -UWANT_ENV_PWD.
ru [Wed, 25 Apr 2001 14:44:42 +0000 (14:44 +0000)]
unifdef -UWANT_ENV_PWD.

No one ever going to use this bugfeature.

23 years agoMake ${.OBJDIR} canonical.
ru [Wed, 25 Apr 2001 14:22:38 +0000 (14:22 +0000)]
Make ${.OBJDIR} canonical.

Reviewed by: bde

23 years agoalpha_fpstate_save is fairly expensive (critical enter/exit, possibly
gallatin [Wed, 25 Apr 2001 13:57:33 +0000 (13:57 +0000)]
alpha_fpstate_save is fairly expensive (critical enter/exit, possibly
saves 32 registers) to do on every context switch.  This is only required
for SMP, so only do it there.

We should also look at moving the critical enter/exit out to the callers

23 years agoFixed typo.
ru [Wed, 25 Apr 2001 12:11:54 +0000 (12:11 +0000)]
Fixed typo.

PR: bin/26836
Submitted by: Matthew Seaman <matthew.seaman@tornadogroup.com>

23 years agoMFffs ffs_balloc.c 1.5.
bde [Wed, 25 Apr 2001 10:33:09 +0000 (10:33 +0000)]
MFffs ffs_balloc.c 1.5.

Long ago, bread() set b_blkno to the disk block number as a side effect
of doing physical i/o (or it just retained the setting from when the
i/o was done).  The setting is lost when buffers go away and then are
reconsituted from VM.  bread() originally compensated by doing a
VOP_BMAP() to recover b_blkno, but this was no good since it sometimes
caused extra i/o or even deadlock for bread()ing metadata to do the
bmap.  This was fixed in vfs_bio.c 1.33 (1995/03/03) and ffs_balloc.c
1.5, etc., by removing the VOP_BMAP() from bread() and breadn(), and
changing all (?) places that used b_blkno to set it if necessary.

ext2fs was not imported until later in 1995 and was still depending on
the old behaviour of bread() in at least ext2_balloc().  This caused
filesystem and file corruption by clobbering direct block numbers in
inodes.

23 years agoDo not leave a process with no credential in zombproc.
tanimura [Wed, 25 Apr 2001 10:22:35 +0000 (10:22 +0000)]
Do not leave a process with no credential in zombproc.

Reviewed by: jhb

23 years agoWhen closing the last reference to an unlinked file, it is freed
mckusick [Wed, 25 Apr 2001 08:11:18 +0000 (08:11 +0000)]
When closing the last reference to an unlinked file, it is freed
by the inactive routine. Because the freeing causes the filesystem
to be modified, the close must be held up during periods when the
filesystem is suspended.

For snapshots to be consistent across crashes, they must write
blocks that they copy and claim those written blocks in their
on-disk block pointers before the old blocks that they referenced
can be allowed to be written.

Close a loophole that allowed unwritten blocks to be skipped when
doing ffs_sync with a request to wait for all I/O activity to be
completed.

23 years agoReverse order of from and to in order to match reality.
dougb [Wed, 25 Apr 2001 07:43:45 +0000 (07:43 +0000)]
Reverse order of from and to in order to match reality.

PR: 26631
Submitted by: Glenn Johnson, glennpj@charter.net

23 years agoUpdate for file 3.35.
obrien [Wed, 25 Apr 2001 07:42:15 +0000 (07:42 +0000)]
Update for file 3.35.

23 years agoThis commit was generated by cvs2svn to compensate for changes in r75937,
obrien [Wed, 25 Apr 2001 07:41:21 +0000 (07:41 +0000)]
This commit was generated by cvs2svn to compensate for changes in r75937,
which included commits to RCS files with non-trunk default branches.

23 years agoVirgin import of Christos Zoulas's FILE 3.35.
obrien [Wed, 25 Apr 2001 07:41:21 +0000 (07:41 +0000)]
Virgin import of Christos Zoulas's FILE 3.35.

23 years agoAdd support for running foreground (-F) and background (-B) checks.
mckusick [Wed, 25 Apr 2001 07:18:22 +0000 (07:18 +0000)]
Add support for running foreground (-F) and background (-B) checks.
Traditionally, fsck is invoked before the filesystems are mounted
and all checks are done to completion at that time. If background
checking is available, fsck is invoked twice. It is first invoked
at the traditional time, before the filesystems are mounted, with
the -F flag to do checking on all the filesystems that cannot do
background checking. It is then invoked a second time, after the
system has completed going multiuser, with the -B flag to do checking
on all the filesystems that can do background checking. Unlike
the foreground checking, the background checking is started
asynchonously so that other system activity can proceed even on
the filesystems that are being checked.

At the moment, only the fast filesystem supports background checking.
To be able to do background checking, a filesystem must have been
running with soft updates, not have been marked as needing a
foreground check, and be mounted and writable when the background
check is to be done (i.e., not listed as `noauto' in /etc/fstab).

These changes are the final piece needed to support background
filesystem checking. They will not have any effect until you update
your /etc/rc to invoke fsck in its new mode of operation. I am
still playing around with exactly what those changes should be
and should be committing them later this week.

23 years agoMove the netexport structure from the fs-specific mountstructure
phk [Wed, 25 Apr 2001 07:07:52 +0000 (07:07 +0000)]
Move the netexport structure from the fs-specific mountstructure
to struct mount.

This makes the "struct netexport *" paramter to the vfs_export
and vfs_checkexport interface unneeded.

Consequently that all non-stacking filesystems can use
vfs_stdcheckexp().

At the same time, make it a pointer to a struct netexport
in struct mount, so that we can remove the bogus AF_MAX
and #include <net/radix.h> from <sys/mount.h>

23 years agoIgnore chflags errors. This makes installing to nfs mounted target
imp [Wed, 25 Apr 2001 06:19:58 +0000 (06:19 +0000)]
Ignore chflags errors.  This makes installing to nfs mounted target
directories work.

23 years ago"break", "chdir", "continue", "else", and "while" are sh(1) builtins;
dd [Wed, 25 Apr 2001 05:53:20 +0000 (05:53 +0000)]
"break", "chdir", "continue", "else", and "while" are sh(1) builtins;
mark them as such.

PR: 26702

23 years agoMove to using md.
imp [Wed, 25 Apr 2001 05:46:40 +0000 (05:46 +0000)]
Move to using md.
o create a simple wrapper function mount_md that makes it easy to
  move from mount_mfs.

# NOTE: you will need to MAKEDEV md[0123] in order for this to work.

Reviewed by: bsd, keichii

23 years agoTeach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).
dd [Wed, 25 Apr 2001 05:42:53 +0000 (05:42 +0000)]
Teach cut(1) how to handle long lines: convert from fgets(3) to fgetln(3).

PR: 26810
Reviewed by: dwmalone

23 years agoNew release notes: TCP_COMPAT_42 option gone, labpc(4) gone, client-side
bmah [Tue, 24 Apr 2001 22:47:34 +0000 (22:47 +0000)]
New release notes:  TCP_COMPAT_42 option gone, labpc(4) gone, client-side
NFS locks, devinfo(8), options REGRESSION.

23 years agoo Separate acl_t into internal and external representations as
jedgar [Tue, 24 Apr 2001 22:45:41 +0000 (22:45 +0000)]
o Separate acl_t into internal and external representations as
  required by POSIX.1e.  This maintains the current 'struct acl'
  in the kernel while providing the generic external acl_t
  interface required to complete the ACL editing library.
o Add the acl_get_entry() function.
o Convert the existing ACL utilities, getfacl and setfacl, to
  fully make use of the ACL editing library.

Obtained from: TrustedBSD Project

23 years agoAdd support for the -F flag which determines whether a specified
mckusick [Tue, 24 Apr 2001 22:38:08 +0000 (22:38 +0000)]
Add support for the -F flag which determines whether a specified
filesystem needs foreground checking (usually at boot time) or
can defer to background checking (after the system is up and running).
See the manual page, fsck_ffs(8), for details on the -F and -B options.
These options are primarily intended for use by the fsck front end.

All output is directed to stdout so that the output is coherent
when redirected to a file or a pipe. Unify the code with the fsck
front end that allows either a device or a mount point to be
specified as the argument to be checked.

23 years agoget the parameters to pci_write_config the right way round. this may fix
cg [Tue, 24 Apr 2001 22:35:11 +0000 (22:35 +0000)]
get the parameters to pci_write_config the right way round.  this may fix
some non-functional cards/machines

23 years agoAdd a new field 'md_kernnest' to the alpha machine dependent process
jhb [Tue, 24 Apr 2001 21:06:53 +0000 (21:06 +0000)]
Add a new field 'md_kernnest' to the alpha machine dependent process
structure.  This field keeps track of how many levels deep we are nested
into the kernel.  The nesting level is bumped at the start of a trap,
interrupt, syscall, or exception and is decremented on return.  This is
used to detect the case when the kernel is returning back to a kernel
context in exception_return().  If we are returning to the kernel we need
to update the globaldata pointer register saved in the stack frame in case
we have switched CPU's between taking the initial interrupt that saved the
frame and returning.  If we don't do this fixup it is possible for a CPU to
use the wrong per-cpu data.  On UP systems this is not a problem, so the
code is conditional on SMP.

A count was used instead of simply checking the process status register in
the frame during exception_return() since there are critical sections at
the very start and end of a trap, exception, or interrupt from userland in
which we could trash the t7 register being used in userland.  The counter
is incremented after adn before these critical sections respectively so
that we will not overwrite the saved t7 register if we are interrupted
during one of these critical sections.

23 years agoRemove bogus assignments of libc syscall stub return values to errno;
tmm [Tue, 24 Apr 2001 20:50:42 +0000 (20:50 +0000)]
Remove bogus assignments of libc syscall stub return values to errno;
the stubs do errno assignments and return -1 in this case, so that errno
would end up with this value.

Approved by: rwatson

23 years agoWrap lint calling in a variable.
asmodai [Tue, 24 Apr 2001 20:23:37 +0000 (20:23 +0000)]
Wrap lint calling in a variable.

Set LINT to the obj path, since we need to use the new lint's features
to create .ln files.  We do not want to use the installed version for that,
since that might create files according to the old lint.

This is still a work in progress to clean this all up, but it gets
through buildworld, which was the problem at hand.

23 years agoAdd build-tools target to the description file, requisite of making
asmodai [Tue, 24 Apr 2001 20:20:41 +0000 (20:20 +0000)]
Add build-tools target to the description file, requisite of making
lint a build-tool.

Also re-enable llib.

23 years agoAdd usr.bin/xlint to build-tools.
asmodai [Tue, 24 Apr 2001 20:19:29 +0000 (20:19 +0000)]
Add usr.bin/xlint to build-tools.