]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoThe buffer daemon cannot skip over buffers owned by locked inodes as
mckusick [Sat, 14 Dec 2002 01:35:30 +0000 (01:35 +0000)]
The buffer daemon cannot skip over buffers owned by locked inodes as
they may be the only viable ones to flush. Thus it will now wait for
an inode lock if the other alternatives will result in rollbacks (and
immediate redirtying of the buffer). If only buffers with rollbacks
are available, one will be flushed, but then the buffer daemon will
wait briefly before proceeding. Failing to wait briefly effectively
deadlocks a uniprocessor since every other process writing to that
filesystem will wait for the buffer daemon to clean up which takes
close enough to forever to feel like a deadlock.

Reported by: Archie Cobbs <archie@dellroad.org>
Sponsored by:   DARPA & NAI Labs.
Approved by: re

21 years agoWhen job control is disabled, never show the job id when reporting the
tjr [Sat, 14 Dec 2002 01:08:04 +0000 (01:08 +0000)]
When job control is disabled, never show the job id when reporting the
status of a background process that has terminated because of a signal.

21 years agoFix two bugs:
archie [Sat, 14 Dec 2002 00:56:07 +0000 (00:56 +0000)]
Fix two bugs:

    (a) Save control message return address only if NGM_MPPC_CONFIG_DECOMP
    (b) Properly count the number of required re-key operations
when we loose synchronization and have to resync

MFC after: 3 days

21 years agoAdd missing "of".
fenner [Sat, 14 Dec 2002 00:20:43 +0000 (00:20 +0000)]
Add missing "of".

21 years agolibmchain no longer exports m_fixhdr(); remove it from EXPORT_SYMS.
tjr [Sat, 14 Dec 2002 00:01:51 +0000 (00:01 +0000)]
libmchain no longer exports m_fixhdr(); remove it from EXPORT_SYMS.

21 years agoKeep trying to flush the vnode list for the mount while some are still
tjr [Fri, 13 Dec 2002 23:44:00 +0000 (23:44 +0000)]
Keep trying to flush the vnode list for the mount while some are still
busy and we are making progress towards making them not busy. This is
needed because smbfs vnodes reference their parent directory but may
appear after their parent in the mount's vnode list; one pass over the
list is not sufficient in this case.

This stops attempts to unmount idle smbfs mounts failing with EBUSY.

21 years agoo Don't consider LOOPBACK devices as configured...
imp [Fri, 13 Dec 2002 23:36:31 +0000 (23:36 +0000)]
o Don't consider LOOPBACK devices as configured...

21 years agoMove the amd(4) driver to it's own directory in preparation for it growing
scottl [Fri, 13 Dec 2002 22:59:18 +0000 (22:59 +0000)]
Move the amd(4) driver to it's own directory in preparation for it growing
an sbus front-end.

21 years agoBackout removal SCARGS, the code freeze is only "selectively" over.
alfred [Fri, 13 Dec 2002 22:41:47 +0000 (22:41 +0000)]
Backout removal SCARGS, the code freeze is only "selectively" over.

21 years agoRemove SCARGS.
alfred [Fri, 13 Dec 2002 22:27:25 +0000 (22:27 +0000)]
Remove SCARGS.

Reviewed by: md5

21 years agoFix misspelling.
fenner [Fri, 13 Dec 2002 22:26:10 +0000 (22:26 +0000)]
Fix misspelling.

PR: docs/44930
Submitted by: Michael McGoldrick <mmcgoldrick@linuxdriven.net>

21 years agoAdd an implementation of the POSIX.1 sockatmark(3).
fenner [Fri, 13 Dec 2002 22:22:55 +0000 (22:22 +0000)]
Add an implementation of the POSIX.1 sockatmark(3).

21 years agoAdd a couple of KASSERTS, just in case.
phk [Fri, 13 Dec 2002 22:04:45 +0000 (22:04 +0000)]
Add a couple of KASSERTS, just in case.

21 years agoCorrect a harmless problem when creating the DMA tag
mux [Fri, 13 Dec 2002 21:34:35 +0000 (21:34 +0000)]
Correct a harmless problem when creating the DMA tag
used to map mbufs.  The maximum size should be MCLBYTES
and not SIS_TX_LIST_SZ.  This is probably a typo in
the original commit.

Tested by: cognet

21 years agoDon't interpret the hotspots relative to all slices on a slicer, but
phk [Fri, 13 Dec 2002 21:31:13 +0000 (21:31 +0000)]
Don't interpret the hotspots relative to all slices on a slicer, but
relative to the parent device.

21 years agoFix spelling in comment.
phk [Fri, 13 Dec 2002 21:10:59 +0000 (21:10 +0000)]
Fix spelling in comment.

21 years agoMFp4: Make ifs consistant with rest of file.
imp [Fri, 13 Dec 2002 19:47:07 +0000 (19:47 +0000)]
MFp4: Make ifs consistant with rest of file.

21 years agoProblem: Hang while bootup on Perc2/SC.
emoore [Fri, 13 Dec 2002 17:27:44 +0000 (17:27 +0000)]
Problem: Hang while bootup on Perc2/SC.
Fix: Error handling wasn't implemented
in newly implemented polling code for quartz
controllers.

Approved by: re@

21 years agomdoc(7) police: sort xrefs in SEE ALSO.
ru [Fri, 13 Dec 2002 16:53:51 +0000 (16:53 +0000)]
mdoc(7) police: sort xrefs in SEE ALSO.

21 years agoRemove the incorrect information about dump(8) and snapshots. All the
trhodes [Fri, 13 Dec 2002 16:35:23 +0000 (16:35 +0000)]
Remove the incorrect information about dump(8) and snapshots.  All the
dump(8) issues are assumed to be fixed.

PR: 46224
Submitted By: Chris Knight <chris@aims.com.au>
Approved By: re (murray)

21 years agomdoc(7) police: markup overhaul.
ru [Fri, 13 Dec 2002 15:27:27 +0000 (15:27 +0000)]
mdoc(7) police: markup overhaul.

21 years agomdoc(7) police: markup overhaul.
ru [Fri, 13 Dec 2002 10:38:42 +0000 (10:38 +0000)]
mdoc(7) police: markup overhaul.

21 years agoFix build with SMB_VNODE_DEBUG defined; use td_proc->p_pid instead of
tjr [Fri, 13 Dec 2002 10:25:08 +0000 (10:25 +0000)]
Fix build with SMB_VNODE_DEBUG defined; use td_proc->p_pid instead of
the nonexistent td_pid.

21 years agoStore a reference to the parent directory's vnode in struct smbnode,
tjr [Fri, 13 Dec 2002 10:15:01 +0000 (10:15 +0000)]
Store a reference to the parent directory's vnode in struct smbnode,
not to the parent's smbnode, which may be freed during the lifetime
of the child if the mount is forcibly unmounted. umount -f should now
work properly (ie. not panic) on smbfs mounts.

21 years agomdoc(7) police: markup overhaul.
ru [Fri, 13 Dec 2002 10:04:12 +0000 (10:04 +0000)]
mdoc(7) police: markup overhaul.

21 years agoDrop filedesc lock and acquire Giant around calls to malloc() and free().
tjr [Fri, 13 Dec 2002 09:59:40 +0000 (09:59 +0000)]
Drop filedesc lock and acquire Giant around calls to malloc() and free().
These call uma_large_malloc() and uma_large_free() which require Giant.
Fixes panic when descriptor table is larger than KMEM_ZMAX bytes
noticed by kkenn.

Reviewed by: jhb

21 years agoRenumber divert.
fenner [Fri, 13 Dec 2002 09:18:09 +0000 (09:18 +0000)]
Renumber divert.

Forgotten by: fenner
Approved by: re (murray)

21 years agomdoc(7) police: SEE ALSO references aren't real sentences.
ru [Fri, 13 Dec 2002 09:06:44 +0000 (09:06 +0000)]
mdoc(7) police: SEE ALSO references aren't real sentences.

21 years agomdoc(7) police: sort xrefs in SEE ALSO.
ru [Fri, 13 Dec 2002 09:05:50 +0000 (09:05 +0000)]
mdoc(7) police: sort xrefs in SEE ALSO.

21 years agoHEAD is 5.0-CURRENT again.
murray [Fri, 13 Dec 2002 08:48:34 +0000 (08:48 +0000)]
HEAD is 5.0-CURRENT again.

21 years agoHEAD reverts to 5.0-CURRENT
murray [Fri, 13 Dec 2002 08:47:15 +0000 (08:47 +0000)]
HEAD reverts to 5.0-CURRENT
RELENG_5_0 is 5.0-RC
5.0-RELEASE will be built off of the RELENG_5_0 branch

21 years agoMove the creation of the DRIVERS.TXT file to a more appropriate area
murray [Fri, 13 Dec 2002 06:54:33 +0000 (06:54 +0000)]
Move the creation of the DRIVERS.TXT file to a more appropriate area
of this file, so it will be created for other platforms that use a
third floppy disk, not just i386.

Approved by: re

21 years agoUpdate for the just-done-import.
obrien [Fri, 13 Dec 2002 05:03:15 +0000 (05:03 +0000)]
Update for the just-done-import.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r107806,
obrien [Fri, 13 Dec 2002 04:59:48 +0000 (04:59 +0000)]
This commit was generated by cvs2svn to compensate for changes in r107806,
which included commits to RCS files with non-trunk default branches.

21 years agoVendor import of bwk's 29-Nov-2002 release.
obrien [Fri, 13 Dec 2002 04:59:48 +0000 (04:59 +0000)]
Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

21 years agoDon't run kldxref when installing modules on sparc64. kldxref and the whole
jake [Fri, 13 Dec 2002 00:32:29 +0000 (00:32 +0000)]
Don't run kldxref when installing modules on sparc64.  kldxref and the whole
module dependency system rely on linker behaviour that is machine dependent
and not part of the elf spec, and only work by accident on other platforms.

Approved by: re

21 years agoCreate raw plexes and subdisks, not the old volume-related ones. This
grog [Fri, 13 Dec 2002 00:27:32 +0000 (00:27 +0000)]
Create raw plexes and subdisks, not the old volume-related ones.  This
crept in in the transition to devfs, and caused a number of "device
not configured" errors.

Approved by: re (rwatson)

21 years agoAdd more information about the third floppy disk, drivers.flp.
murray [Thu, 12 Dec 2002 23:11:43 +0000 (23:11 +0000)]
Add more information about the third floppy disk, drivers.flp.

Approved by: re (jhb)

21 years agoUse the correct compartment notation in sample labels.
chris [Thu, 12 Dec 2002 22:47:08 +0000 (22:47 +0000)]
Use the correct compartment notation in sample labels.

Sponsored by: DARPA, Network Associates Labs
Approved by: re (blanket)

21 years agoChange an "i.e." to an "e.g." This will be changed when a better
chris [Thu, 12 Dec 2002 22:27:00 +0000 (22:27 +0000)]
Change an "i.e." to an "e.g."  This will be changed when a better
solution is worked out to clarify more specific compartment-related
cases.

Submitted by: dcs
Sponsored by: DARPA, Network Associates Labs
Approved by: re (blanket)

21 years agosable the CAM interface on some more cards. It seemed to be confusing and
scottl [Thu, 12 Dec 2002 22:23:06 +0000 (22:23 +0000)]
sable the CAM interface on some more cards.  It seemed to be confusing and
upsetting the firmware there.

Thanks to imp@freebsd.org for suffering through testing with this.

Approved by: re

21 years agoFix the HISTORY to match reality. They were never MFC'ed to 4.X.
trhodes [Thu, 12 Dec 2002 22:22:51 +0000 (22:22 +0000)]
Fix the HISTORY to match reality.  They were never MFC'ed to 4.X.

Submitted by: R. Imura <imura@ryu16.org>
Approved by: re (murray)

21 years agoAdd and fix cross-references.
chris [Thu, 12 Dec 2002 22:17:44 +0000 (22:17 +0000)]
Add and fix cross-references.

Prompted by: rwatson, dcs
Sponsored by: DARPA, Network Associates Labs

21 years agoAccount for fts(3)'s FTS_SLNONE case for symbolic links which have
green [Thu, 12 Dec 2002 20:32:45 +0000 (20:32 +0000)]
Account for fts(3)'s FTS_SLNONE case for symbolic links which have
a nonexistant target, in addition to the FTS_SL previously, so e.g.
setfmac -h sebsd/system_u:object_r:malloc_conf_t /etc/malloc.conf
succeeds.

Approved by: re

21 years agoUpdate the pcm(4) manual page to explain devfs, fix a grammar error and
trhodes [Thu, 12 Dec 2002 19:50:09 +0000 (19:50 +0000)]
Update the pcm(4) manual page to explain devfs, fix a grammar error and
cross-ref devfs(5).

Approved by: re (jhb)

21 years agoThe uftdi driver runs with multiple instances.
ticso [Thu, 12 Dec 2002 19:03:43 +0000 (19:03 +0000)]
The uftdi driver runs with multiple instances.
Remove a comment claiming the opposite.

Approved by: re (rwatson)
             gallatin (Mentor)
MFC after: 1 week

21 years agoClear the "device open" flag in daopen() before returning a error,
yar [Thu, 12 Dec 2002 18:09:35 +0000 (18:09 +0000)]
Clear the "device open" flag in daopen() before returning a error,
so the device won't stay marked as open whereas it isn't.

Approved by: re, njl
MFC after: 1 week

21 years agoFix a buffer overrun in /dev/random which, due to the nature of the
markm [Thu, 12 Dec 2002 17:38:45 +0000 (17:38 +0000)]
Fix a buffer overrun in /dev/random which, due to the nature of the
kernel memory allocator, is harmless. This could be a problem for
other systems, though. I've modified Darren's patch a little.

Original patch by: Darren Schack, Isilon Systems, Inc <darrens@isilon.com>
Also analysed by:  SGI, and in particular Divy Le Ray of SGI
OK'ed by:          re(rwatson)

21 years agoUniformly refer to a file system as "file system".
ru [Thu, 12 Dec 2002 17:26:04 +0000 (17:26 +0000)]
Uniformly refer to a file system as "file system".

Approved by: re

21 years agoIncorporate some suggestions from several others about talking about
scottl [Thu, 12 Dec 2002 15:40:11 +0000 (15:40 +0000)]
Incorporate some suggestions from several others about talking about
device hints.

Approved by: re

21 years agoMFS: Spelling: s/transfered/transferred/
trhodes [Thu, 12 Dec 2002 15:38:07 +0000 (15:38 +0000)]
MFS: Spelling: s/transfered/transferred/

PR: 46104
Pointed out by: Rich Morin <rdm@cfcl.com>
Approved by: re (rwatson)

21 years agomdoc(7) police: markup fixes.
ru [Thu, 12 Dec 2002 15:27:26 +0000 (15:27 +0000)]
mdoc(7) police: markup fixes.

Approved by: re

21 years agomdoc(7) police: overhaul.
ru [Thu, 12 Dec 2002 15:25:56 +0000 (15:25 +0000)]
mdoc(7) police: overhaul.

Approved by: re

21 years agomdoc(7) police: markup overhaul.
ru [Thu, 12 Dec 2002 14:36:08 +0000 (14:36 +0000)]
mdoc(7) police: markup overhaul.

Approved by: re

21 years agomdoc(7) police: markup overhaul.
ru [Thu, 12 Dec 2002 14:25:52 +0000 (14:25 +0000)]
mdoc(7) police: markup overhaul.

Approved by: re

21 years agomdoc(7) police: markup overhaul.
ru [Thu, 12 Dec 2002 14:17:24 +0000 (14:17 +0000)]
mdoc(7) police: markup overhaul.

Approved by: re

21 years agomdoc(7) police: markup overhaul.
ru [Thu, 12 Dec 2002 14:09:25 +0000 (14:09 +0000)]
mdoc(7) police: markup overhaul.

Approved by: re

21 years agomdoc(7) police: tiny markup nits.
ru [Thu, 12 Dec 2002 13:58:27 +0000 (13:58 +0000)]
mdoc(7) police: tiny markup nits.

Approved by: re

21 years agomdoc(7) police: overhaul.
ru [Thu, 12 Dec 2002 13:40:31 +0000 (13:40 +0000)]
mdoc(7) police: overhaul.

21 years agomdoc(7) police: markup fixes.
ru [Thu, 12 Dec 2002 13:26:32 +0000 (13:26 +0000)]
mdoc(7) police: markup fixes.

Approved by: re

21 years agoo redirect the grep to /dev/null
imp [Thu, 12 Dec 2002 09:31:10 +0000 (09:31 +0000)]
o redirect the grep to /dev/null
o use ifn rather than interface in rc.network
o merge into rc.d/network1

Approved by: (re blanket)

21 years agomdoc(7) police: markup overhaul.
ru [Thu, 12 Dec 2002 08:53:20 +0000 (08:53 +0000)]
mdoc(7) police: markup overhaul.

Approved by: re

21 years agoBring the NOTICE section into the DESCRIPTION section and wrap it in
ru [Thu, 12 Dec 2002 08:32:22 +0000 (08:32 +0000)]
Bring the NOTICE section into the DESCRIPTION section and wrap it in
.Bf -symbolic ... .Ef

Approved by: re
Obtained from: gbde(8)

21 years agomdoc(7) police: .Dt is ALL UPPERCASE.
ru [Thu, 12 Dec 2002 08:19:47 +0000 (08:19 +0000)]
mdoc(7) police: .Dt is ALL UPPERCASE.

Approved by: re

21 years agomdoc(7) police: overhaul.
ru [Thu, 12 Dec 2002 08:18:53 +0000 (08:18 +0000)]
mdoc(7) police: overhaul.

Approved by: re

21 years agomount_udf(8) is currently not in 4.X, so obviously it did not first appear
trhodes [Thu, 12 Dec 2002 05:56:36 +0000 (05:56 +0000)]
mount_udf(8) is currently not in 4.X, so obviously it did not first appear
in 4.6

PR: 46117
Submitted by: Ryuichiro Imura <imura@ryu16.org>
Approved by: re (bmah)

21 years agoAdd Remote AppleEvents/PPC Toolbox.
eric [Thu, 12 Dec 2002 03:05:56 +0000 (03:05 +0000)]
Add Remote AppleEvents/PPC Toolbox.

Approved by: rwatson
Obtained from: IANA
Sponsored by: Apple

21 years agovinum_info: Correct the print formats to allow for 64 bit pointers.
grog [Thu, 12 Dec 2002 02:25:30 +0000 (02:25 +0000)]
vinum_info:  Correct the print formats to allow for 64 bit pointers.

Approved by: re (jhb).

21 years agorevive_block: If we have an I/O error, don't forget to drop the stripe lock.
grog [Thu, 12 Dec 2002 01:03:45 +0000 (01:03 +0000)]
revive_block: If we have an I/O error, don't forget to drop the stripe lock.

Approved by: re (jhb)

21 years agoRemove the comment about dump(8) not working properly with snapshots.
trhodes [Thu, 12 Dec 2002 00:31:45 +0000 (00:31 +0000)]
Remove the comment about dump(8) not working properly with snapshots.

Discussed with: mckusick
Approved by: re (rwatson)

21 years agoo Don't do anything if the interface is already up.
imp [Wed, 11 Dec 2002 23:30:34 +0000 (23:30 +0000)]
o Don't do anything if the interface is already up.
o Only delay in pccard_ether when we're doing dhcp and starting the interface.

Approved: (re blanket for devd)

21 years agoUpdate to reflect devd.
imp [Wed, 11 Dec 2002 23:15:10 +0000 (23:15 +0000)]
Update to reflect devd.

Approved by: re (blanket)

21 years agoAdd a rudimentary man page for /dev/devctl.
imp [Wed, 11 Dec 2002 23:08:19 +0000 (23:08 +0000)]
Add a rudimentary man page for /dev/devctl.

Approved by: re (blanket devd)

21 years agoNote that UFS1 superblock changes may cause compatability problems
bmah [Wed, 11 Dec 2002 23:08:06 +0000 (23:08 +0000)]
Note that UFS1 superblock changes may cause compatability problems
with older 4.X (for example, the case of a dual-booting machine).

While here, spell "Soft Updates" consistently (and hopefully
correctly).

Approved by: re (implicitly)

21 years ago(1) Problem: PANIC when loading/unloading driver
emoore [Wed, 11 Dec 2002 20:59:46 +0000 (20:59 +0000)]
(1) Problem: PANIC when loading/unloading driver
as module. This also fix's issue kern/45713.
Fix - polling was implemented incorrectly for
adapter enquiry and adapter flush.
(2) Problem: PANIC when unloading driver
as module.
Fix - device nodes are not destroyed for amr0,
and amrd* when driver is unloaded
(3) Problem: PANIC from loading driver when
3ware adapter present, error message "Warning
"amrd is usurping twed's bmaj"
Fix - put #idef freebsd version < 500000 for
bmaj -1 -> amrd_cdevsw
(4) Problem: warnings in driver when compiling
with DAMR_DEBUG param enabled in Makefile
Fix - fix the warnings so driver can compile
when -Werror is present in Makefile.

Approved by: jhb
MFC: 7 days

21 years agoConnect ubsa.4 man page to the build.
kan [Wed, 11 Dec 2002 19:34:14 +0000 (19:34 +0000)]
Connect ubsa.4 man page to the build.

Approved by: re (rwatson)

21 years agoAdd sysctl knob to stop disabling acpi on shutdown.
takawata [Wed, 11 Dec 2002 18:48:50 +0000 (18:48 +0000)]
Add sysctl knob to stop disabling acpi on shutdown.

Approved by: re(jhb)

21 years agoWhen things get bigger than 99GB our fields run over.
phk [Wed, 11 Dec 2002 17:36:34 +0000 (17:36 +0000)]
When things get bigger than 99GB our fields run over.
Use GB from 100GB and upwards.

Approved by: re

21 years agomdoc(7) police: overhaul.
ru [Wed, 11 Dec 2002 17:26:53 +0000 (17:26 +0000)]
mdoc(7) police: overhaul.

Approved by: re

21 years agomdoc(7) police: overhaul.
ru [Wed, 11 Dec 2002 17:13:09 +0000 (17:13 +0000)]
mdoc(7) police: overhaul.

Approved by: re

21 years agomdoc(7) police: Fixed the declaration of the -column list.
ru [Wed, 11 Dec 2002 16:59:01 +0000 (16:59 +0000)]
mdoc(7) police: Fixed the declaration of the -column list.

Approved by: re

21 years agomdoc(7) police: Use the default .Os version.
ru [Wed, 11 Dec 2002 15:57:40 +0000 (15:57 +0000)]
mdoc(7) police: Use the default .Os version.

Approved by: re

21 years agomdoc(7) police: Added the missing .Os call; it's not strictly
ru [Wed, 11 Dec 2002 15:55:29 +0000 (15:55 +0000)]
mdoc(7) police: Added the missing .Os call; it's not strictly
necessary nowadays, but is documented as "required", and may
become so again in the future.

Approved by: re

21 years agomdoc(7) police: fixed the document date (the current date was used, as
ru [Wed, 11 Dec 2002 15:37:55 +0000 (15:37 +0000)]
mdoc(7) police: fixed the document date (the current date was used, as
documented in mdoc(7)).

Approved by: re

21 years agoFixed the parameter's name.
ru [Wed, 11 Dec 2002 14:04:37 +0000 (14:04 +0000)]
Fixed the parameter's name.

PR: docs/46183
Submitted by: Dirk Gouders <gouders@et.bocholt.fh-ge.de>
Approved by: re

21 years agoUn-break world.
chris [Wed, 11 Dec 2002 03:25:35 +0000 (03:25 +0000)]
Un-break world.

Reported by: Ray Kohler <ataraxia@cox.net>
Approved by: re (blanket)

21 years agoBackout unapproved WARNS level change occasionally slipped into previous
sobomax [Wed, 11 Dec 2002 01:21:57 +0000 (01:21 +0000)]
Backout unapproved WARNS level change occasionally slipped into previous
commit.

Big pointy hat to: sobomax

21 years ago- Allow comments to be placed at the end of configuration line.
sobomax [Wed, 11 Dec 2002 01:19:56 +0000 (01:19 +0000)]
- Allow comments to be placed at the end of configuration line.

Sponsored by:   Porta Software Ltd
Approved by:    re
MFC after:      2 weeks

21 years agoFix an mdoc error (call .Bd with -literal)
chris [Wed, 11 Dec 2002 01:10:20 +0000 (01:10 +0000)]
Fix an mdoc error (call .Bd with -literal)

Sponsored by: DARPA, Network Associates Labs
Approved by: re (blanket)

21 years agoDocument the following MAC policies:
chris [Wed, 11 Dec 2002 01:02:26 +0000 (01:02 +0000)]
Document the following MAC policies:
o ifoff: Interface silencing policy
o partition: Process partitioning policy

Add associated Makefile entries and man page cross-references.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Labs
Approved by: re (blanket)

21 years agoPass the HCDP table address to the kernel. If no such table exists,
marcel [Tue, 10 Dec 2002 20:11:20 +0000 (20:11 +0000)]
Pass the HCDP table address to the kernel. If no such table exists,
NULL is passed. The address of the HCDP table can be found by
iterating over the configuration tables in the EFI system table.
To avoid more duplication, a function can be called with the GUID
of interest. The function will do the scanning. Use the function
in all places where we iterate over the configuration tables in
an attempt to find a specific one.

Bump the loader version number as the result of this.

Approved by: re (blanket)

21 years agoAdd ${BUILDNAME} and ${TARGET} to the filenames of ISO images
bmah [Tue, 10 Dec 2002 16:35:44 +0000 (16:35 +0000)]
Add ${BUILDNAME} and ${TARGET} to the filenames of ISO images
generated during release builds.

For the most part, re@ was doing this manually before putting ISO images
on ftp-master, but not always.  This should make naming more consistent
and descriptive.

Requested by: jason andrade <jason@dstc.edu.au>, hubs@
Approved by: re (rwatson)
MFC after: 1 month

21 years agoDefault policies to on: if you load them or compile them into your
rwatson [Tue, 10 Dec 2002 16:20:34 +0000 (16:20 +0000)]
Default policies to on: if you load them or compile them into your
kernel, you should expect them to do something, so now they do.  This
doesn't affect users who don't load or explicitly compile in the
policies.

Approved by: re (jhb)
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoPlay nice with GEOM and use the appropriate ioctls for getting the
scottl [Tue, 10 Dec 2002 15:52:56 +0000 (15:52 +0000)]
Play nice with GEOM and use the appropriate ioctls for getting the
partition size and sector size.  The old way of groveling through the
disklabel doesn't work anymore.

Noticed by: anholt
Approved by: re

21 years agomdoc(7) police: overhaul.
ru [Tue, 10 Dec 2002 14:21:55 +0000 (14:21 +0000)]
mdoc(7) police: overhaul.

Approved by: re

21 years agomdoc(7) police: nit.
ru [Tue, 10 Dec 2002 14:20:38 +0000 (14:20 +0000)]
mdoc(7) police: nit.

Approved by: re

21 years agomdoc(7) police: overhaul (including adoptation to FreeBSD).
ru [Tue, 10 Dec 2002 14:20:02 +0000 (14:20 +0000)]
mdoc(7) police: overhaul (including adoptation to FreeBSD).

Approved by: re

21 years agoCheck if rpcbind is already running and print a warning.
mbr [Tue, 10 Dec 2002 08:47:18 +0000 (08:47 +0000)]
Check if rpcbind is already running and print a warning.
Fixes segfault if rpcbind is started up a second time.

Solution has been taken from mountd(8).

Reviewed by: phk
Approved by: re (rwatson)

21 years agoThe exit() function has been moved to libefi.c to better deal with
marcel [Tue, 10 Dec 2002 06:27:32 +0000 (06:27 +0000)]
The exit() function has been moved to libefi.c to better deal with
cleaning up after ourselves.

Approved by: re (blankoscheck)
German corrections: Alexander (both :-)

21 years agoChange the startup code to fix a memory leak and to allow us to
marcel [Tue, 10 Dec 2002 06:22:25 +0000 (06:22 +0000)]
Change the startup code to fix a memory leak and to allow us to
accept load options (=command line options).

The call graph changes from *entry*->efi_main->efi_init, where
efi_main is the EFI equivalent of main to *entry*->efi_main->main,
where main is what you'd expect. efi_main now is what efi_init was.
The prototype of main follows that of C. The first argument is argc
and the second is argv. There is no third argument.
Allocation of heap pages is now handled by the EFI library and it
now deallocates the pages when main() returns or when exit() is
called. This allows us to safely return to the boot manager (or
EFI shell) without leaks. EFI applications are responsible to free
all memory themselves.

Handling of the load options is a bit tricky. There are either no
load options, load options in ASCII or load options in Unicode.
The EFI library will translate the ASCII options to Unicode options
as to simplify user code. Since the load options are passed as a
single string (if present) and main() accepts argc and argv, the
startup code also has to split the string into words and build the
argv vector. Here the trickiness starts. When the loader is started
from the EFI shell, argv[0] will automaticly load the program name.
In all other cases (ie through the boot manager), this is not the
case. Unfortunately, there's no trivial way to check. Hence, a
set of conditions is checked to determine if we need to fill in
argv[0] ourselves or not. This checking is not perfect. There are
known cases where it fails to do the right thing. The logic works
for most expected cases, though. This includes the case where no
options are given.

Approved by: re (blanket)