]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoUse vfs_hash instead of home-rolling.
phk [Mon, 14 Mar 2005 12:24:35 +0000 (12:24 +0000)]
Use vfs_hash instead of home-rolling.

19 years agoSort xrefs
maxim [Mon, 14 Mar 2005 12:24:34 +0000 (12:24 +0000)]
Sort xrefs

19 years agoo Replace OpenBSD-specific example by FreeBSD's one.
maxim [Mon, 14 Mar 2005 12:15:43 +0000 (12:15 +0000)]
o Replace OpenBSD-specific example by FreeBSD's one.

Noticed by: Daniel O'Connor

19 years agoMove the creation of a Src structure into its own function.
harti [Mon, 14 Mar 2005 12:04:20 +0000 (12:04 +0000)]
Move the creation of a Src structure into its own function.

19 years agoSplit off two function from VarParseLong to handle modifiers and the
harti [Mon, 14 Mar 2005 12:03:30 +0000 (12:03 +0000)]
Split off two function from VarParseLong to handle modifiers and the
actual variable lookup. Consistently rename lengthPtr to consumed.
Update a number of comments to match the code.

Patch: 7.111-113

Submitted by: Max Okumoto <okumoto@ucsd.edu>

19 years ago - ktrace(1) has nothing to do with schedgraph. Remove that from the
jeff [Mon, 14 Mar 2005 11:52:24 +0000 (11:52 +0000)]
 - ktrace(1) has nothing to do with schedgraph.  Remove that from the
   instructions.

19 years agoCleanup accidentally include #if 0 section.
phk [Mon, 14 Mar 2005 10:25:09 +0000 (10:25 +0000)]
Cleanup accidentally include #if 0 section.

19 years agoRemove ufs_ihash.c here as well.
phk [Mon, 14 Mar 2005 10:23:34 +0000 (10:23 +0000)]
Remove ufs_ihash.c here as well.

19 years agoUse vfs_hash instead of home-rolled.
phk [Mon, 14 Mar 2005 10:21:16 +0000 (10:21 +0000)]
Use vfs_hash instead of home-rolled.

19 years agoCurrently (almost) all filesystems maintain a local inode hash table
phk [Mon, 14 Mar 2005 10:01:29 +0000 (10:01 +0000)]
Currently (almost) all filesystems maintain a local inode hash table
to get from (mount + inode) to vnode.  These tables are mostly
copy&pasted from UFS, sized based on desiredvnodes and therefore
quite large (128K-512K).  Several filesystems are buggy enough that
they allocate the hash table even before they know if they will
ever be used or not.

Add "vfs_hash", a system wide hash table, which will replace all
the per-filesystem hash-tables.

The fields we add to struct vnode will more or less be saved in
the respective filesystems inodes.

Having one central implementation will save code and will allow us
to justify the complexity of code to dynamically (re)size the hash
at a later point.

19 years ago - Increment the holdcnt once for each usecount reference. This allows us
jeff [Mon, 14 Mar 2005 09:25:19 +0000 (09:25 +0000)]
 - Increment the holdcnt once for each usecount reference.  This allows us
   to use only the holdcnt to determine whether a vnode may be recycled,
   simplifying the V* macros as well as vtryrecycle(), etc.

Sponsored by: Isilon Systems, Inc.

19 years ago - Don't directly adjust v_usecount, use vref() instead.
jeff [Mon, 14 Mar 2005 09:03:19 +0000 (09:03 +0000)]
 - Don't directly adjust v_usecount, use vref() instead.

Sponsored by: Isilon Systems, Inc.

19 years agoUse int instead of size_t (%*s needs int).
pjd [Mon, 14 Mar 2005 08:34:02 +0000 (08:34 +0000)]
Use int instead of size_t (%*s needs int).

MFC after: 1 week

19 years ago - We do not have to check the object's ref_count in VSHOULDFREE or
jeff [Mon, 14 Mar 2005 08:30:31 +0000 (08:30 +0000)]
 - We do not have to check the object's ref_count in VSHOULDFREE or
   vtryrecycle().  All obj refs also ref the vnode.
 - Consistently use v_incr_usecount() to increment the usecount.  This will
   be more important later.

Sponsored by: Isilon Systems, Inc.

19 years agoConvert a couple of other uses of Lst_ForEach to LST_FOREACH and
harti [Mon, 14 Mar 2005 08:29:58 +0000 (08:29 +0000)]
Convert a couple of other uses of Lst_ForEach to LST_FOREACH and
simplify code.

19 years ago - Retire OLOCK and OWANT. All callers hold the vnode lock when creating
jeff [Mon, 14 Mar 2005 07:29:40 +0000 (07:29 +0000)]
 - Retire OLOCK and OWANT.  All callers hold the vnode lock when creating
   a vnode object.  There has been an assert to prove this for some time.

Sponsored by: Isilon Systems, Inc.

19 years ago - Slightly rearrange vrele() to move the common case in one indentation
jeff [Mon, 14 Mar 2005 07:16:55 +0000 (07:16 +0000)]
 - Slightly rearrange vrele() to move the common case in one indentation
   level.

Sponsored by: Isilon Systems, Inc.

19 years ago - Rework vget() so we drop the usecount in two failure cases that were
jeff [Mon, 14 Mar 2005 07:11:19 +0000 (07:11 +0000)]
 - Rework vget() so we drop the usecount in two failure cases that were
   missed by my last commit.

Sponsored by: Isilon Systems, Inc.

19 years agoRemove debugging printfs.
phk [Mon, 14 Mar 2005 06:51:29 +0000 (06:51 +0000)]
Remove debugging printfs.

19 years agoprintf(3) expects that %*s having an int parameter, which generates
delphij [Mon, 14 Mar 2005 04:33:13 +0000 (04:33 +0000)]
printf(3) expects that %*s having an int parameter, which generates
warning on 64-bit platforms.  Explicitly cast these values to int
to work around this issue, as these values are tend to be small.

Spotted by: ia64 tinderbox

19 years agoMinor grammar fixes: jail(8) chflags, rescue(8) and bsdtar.
bmah [Mon, 14 Mar 2005 02:13:50 +0000 (02:13 +0000)]
Minor grammar fixes:  jail(8) chflags, rescue(8) and bsdtar.

MFC noted:  pcii.

19 years agoAdd support for the ethernet port in the JVC MP-PRX1 port replicator.
iedowse [Mon, 14 Mar 2005 01:49:00 +0000 (01:49 +0000)]
Add support for the ethernet port in the JVC MP-PRX1 port replicator.

19 years agoSet the split transaction interrupt C-mask correctly. This is the
iedowse [Mon, 14 Mar 2005 01:03:50 +0000 (01:03 +0000)]
Set the split transaction interrupt C-mask correctly. This is the
final piece needed to make split transaction interrupt pipes work,
which I thought I had already committed.

19 years agoA handful of minor portability and style improvements.
kientzle [Mon, 14 Mar 2005 00:30:35 +0000 (00:30 +0000)]
A handful of minor portability and style improvements.

19 years agoStyle correction: one tab after #define.
kientzle [Mon, 14 Mar 2005 00:29:05 +0000 (00:29 +0000)]
Style correction: one tab after #define.

19 years agoRe-unbreak the distfile target.
kientzle [Sun, 13 Mar 2005 23:49:53 +0000 (23:49 +0000)]
Re-unbreak the distfile target.

Also, reduce the WARNS level to 5 since different build environments
end up using different Yacc skeletons.  The BSD one does not
predeclare yyparse, the FSF one does, so it's not really possible to
consistently enforce both -Wmissing-prototypes and -Wredundant-decls.

19 years agoThe EHCI qTD token has a number of error status bits that are not
iedowse [Sun, 13 Mar 2005 23:48:17 +0000 (23:48 +0000)]
The EHCI qTD token has a number of error status bits that are not
cleared if the host controller retries the transfer and is successful,
but we were interpreting these bits as indicating a fatal error.
Ignore these error bits, and instead use the HALTED bit to determine
if the transfer failed. Also update the USBD_STALLED detection to
ignore these bits.

Obtained from: OpenBSD

19 years agoFix a compile warning, fix the build.
kientzle [Sun, 13 Mar 2005 21:36:15 +0000 (21:36 +0000)]
Fix a compile warning, fix the build.

19 years ago"make depend" with .y files is trickier than it looks. <sigh>
kientzle [Sun, 13 Mar 2005 19:55:53 +0000 (19:55 +0000)]
"make depend" with .y files is trickier than it looks.  <sigh>

19 years agoBrain-o. Missing quote.
kientzle [Sun, 13 Mar 2005 19:44:19 +0000 (19:44 +0000)]
Brain-o.  Missing quote.

19 years ago- Document 'status' subcommand.
pjd [Sun, 13 Mar 2005 19:38:12 +0000 (19:38 +0000)]
- Document 'status' subcommand.
- Update copyrights.

MFC after: 1 week

19 years agoAdd 'status' command which prints general information about devices.
pjd [Sun, 13 Mar 2005 19:34:27 +0000 (19:34 +0000)]
Add 'status' command which prints general information about devices.
For example:

# gmirror status
       Name    Status  Components
mirror/root  COMPLETE  ad0s1a
                       ad2s1a
mirror/data  DEGRADED  da0
                       da1 (76%)
                       da2

MFC after: 1 week

19 years agoUpdate copyrights.
pjd [Sun, 13 Mar 2005 19:11:57 +0000 (19:11 +0000)]
Update copyrights.

19 years agoChange function names related to 'list' command from 'show_one_*' to
pjd [Sun, 13 Mar 2005 19:10:13 +0000 (19:10 +0000)]
Change function names related to 'list' command from 'show_one_*' to
'list_one_*'.

MFC after: 1 week

19 years agoAdd --newer-ctime, --newer-mtime, --newer-ctime-than, and --newer-mtime-than
kientzle [Sun, 13 Mar 2005 18:36:24 +0000 (18:36 +0000)]
Add --newer-ctime, --newer-mtime, --newer-ctime-than, and --newer-mtime-than
switches to support selecting files by time of modification.

Special thanks to: Steven M. Bellovin, Rich $alz, and Jim Berets,
authors of the public-domain getdate.y date-parsing code.

19 years agoRemove an unused #define. md5's with and without this commit match.
ceri [Sun, 13 Mar 2005 17:58:31 +0000 (17:58 +0000)]
Remove an unused #define.  md5's with and without this commit match.

Approved by: murray (mentor)

19 years agoThe NVE driver doesn't cleanly compile on PAE.
scottl [Sun, 13 Mar 2005 17:39:19 +0000 (17:39 +0000)]
The NVE driver doesn't cleanly compile on PAE.

19 years agoWhen listing all devices (geoms) from the given class, skip geoms without
pjd [Sun, 13 Mar 2005 16:45:41 +0000 (16:45 +0000)]
When listing all devices (geoms) from the given class, skip geoms without
providers.
This prevents from listing geoms like <name>.sync which can be confusing.
It still allows to show details about it by giving its name when listing.

MFC after: 1 week

19 years agoAdd myself as a maintainer of geom_shsec.
pjd [Sun, 13 Mar 2005 15:30:01 +0000 (15:30 +0000)]
Add myself as a maintainer of geom_shsec.

19 years agoCorrect macro usage.
brueffer [Sun, 13 Mar 2005 13:37:02 +0000 (13:37 +0000)]
Correct macro usage.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
MFC after: 3 days

19 years agoRemove dublicate entries and correct apostrophe abuse.
brueffer [Sun, 13 Mar 2005 13:20:07 +0000 (13:20 +0000)]
Remove dublicate entries and correct apostrophe abuse.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>

19 years ago - VOP_INACTIVE should no longer drop the vnode lock.
jeff [Sun, 13 Mar 2005 12:18:47 +0000 (12:18 +0000)]
 - VOP_INACTIVE should no longer drop the vnode lock.

Sponsored by:   Isilon Systems, Inc.

19 years ago - The VI_DOOMED flag now signals the end of a vnode's relationship with
jeff [Sun, 13 Mar 2005 12:18:25 +0000 (12:18 +0000)]
 - The VI_DOOMED flag now signals the end of a vnode's relationship with
   the filesystem.  Check that rather than VI_XLOCK.
 - VOP_INACTIVE should no longer drop the vnode lock.
 - The vnode lock is required around calls to vrecycle() and vgone().

Sponsored by: Isilon Systems, Inc.

19 years ago - It is no longer necessary to lock and unlock the vnode in nfs4_close()
jeff [Sun, 13 Mar 2005 12:16:45 +0000 (12:16 +0000)]
 - It is no longer necessary to lock and unlock the vnode in nfs4_close()
   as the top level does this for us now.

Sponsored by: Isilon Systems, Inc.

19 years ago - VOP_INACTIVE should no longer drop the vnode lock.
jeff [Sun, 13 Mar 2005 12:15:36 +0000 (12:15 +0000)]
 - VOP_INACTIVE should no longer drop the vnode lock.

Sponsored by: Isilon Systems, Inc.

19 years ago - The VI_DOOMED flag now signals the end of a vnode's relationship with
jeff [Sun, 13 Mar 2005 12:14:56 +0000 (12:14 +0000)]
 - The VI_DOOMED flag now signals the end of a vnode's relationship with
   the filesystem.  Check that rather than VI_XLOCK.

Sponsored by: Isilon Systems, Inc.

19 years ago - Catch up with ufs_inode 1.59, ffs_vfsops.c 1.280, and ufs_vnops.c 1.267.
jeff [Sun, 13 Mar 2005 12:13:55 +0000 (12:13 +0000)]
 - Catch up with ufs_inode 1.59, ffs_vfsops.c 1.280, and ufs_vnops.c 1.267.
   Various changes to support new vgone() locking protocol.

Sponsored by: Isilon Systems, Inc.

19 years ago - It is no longer necessary to lock and unlock the vnode in nfs_close() as
jeff [Sun, 13 Mar 2005 12:11:23 +0000 (12:11 +0000)]
 - It is no longer necessary to lock and unlock the vnode in nfs_close() as
   the top level does this for us now.

Sponsored by: Isilon Systems, Inc.

19 years ago - The c_lock in the coda node does not offer any features over the standard
jeff [Sun, 13 Mar 2005 12:09:34 +0000 (12:09 +0000)]
 - The c_lock in the coda node does not offer any features over the standard
   vnode lock.  Remove the c_lock and use the vn lock in its place.
 - Keep the coda lock functions so that the debugging information is
   preserved, but call directly to the vop_std*lock routines for the real
   functionality.

Sponsored by: Isilon Systems, Inc.

19 years ago - Deadfs may now use the standard vop lock, get rid of dead_lock().
jeff [Sun, 13 Mar 2005 12:06:20 +0000 (12:06 +0000)]
 - Deadfs may now use the standard vop lock, get rid of dead_lock().
 - We no longer have to take the XLOCK state into consideration in any
   routines.

Sponsored by: Isilon Systems, Inc.

19 years ago - Don't acquire the vnode lock in destroy_vobject, assert that it has
jeff [Sun, 13 Mar 2005 12:05:05 +0000 (12:05 +0000)]
 - Don't acquire the vnode lock in destroy_vobject, assert that it has
   already been acquired by the caller.

Sponsored by: Isilon Systems, Inc.

19 years ago - It is not legal to access v_data without the vnode lock or interlock
jeff [Sun, 13 Mar 2005 12:04:12 +0000 (12:04 +0000)]
 - It is not legal to access v_data without the vnode lock or interlock
   held.  Grab the vnode interlock if LK_INTERLOCK has not been passed in
   so that we can inspect v_data in ffs_lock().

Sponsored by: Isilon Systems, Inc.

19 years ago - The VI_DOOMED flag now signals the end of a vnode's relationship with
jeff [Sun, 13 Mar 2005 12:03:14 +0000 (12:03 +0000)]
 - The VI_DOOMED flag now signals the end of a vnode's relationship with
   the filesystem.  Check that rather than VI_XLOCK.
 - Shorten ffs_reload by one step.  The old check for an inactive vnode
   was slightly racey, and the code which deals with still active vnodes
   is not much more expensive.

Sponsored by: Isilon Systems, Inc.

19 years ago - The VI_DOOMED flag now signals the end of a vnode's relationship with
jeff [Sun, 13 Mar 2005 12:01:50 +0000 (12:01 +0000)]
 - The VI_DOOMED flag now signals the end of a vnode's relationship with
   the filesystem.  Check that rather than VI_XLOCK.

Sponsored by: Isilon Systems, Inc.

19 years ago - Fix an assert now that the XLOCK no longer exists.
jeff [Sun, 13 Mar 2005 12:00:41 +0000 (12:00 +0000)]
 - Fix an assert now that the XLOCK no longer exists.

Sponsored by: Isilon Systems, Inc.

19 years ago - In ufs_mknod(), hold the lock across the call to vgone() as that is now
jeff [Sun, 13 Mar 2005 11:59:14 +0000 (11:59 +0000)]
 - In ufs_mknod(), hold the lock across the call to vgone() as that is now
   required.
 - In ufs_close(), don't do the EAGAIN vrele hack, the top layer now calls
   vn_start_write before the lock is acquired as it should.

Sponsored by: Isilon Systems, Inc.

19 years ago - Don't drop the lock in ufs_inactive().
jeff [Sun, 13 Mar 2005 11:57:39 +0000 (11:57 +0000)]
 - Don't drop the lock in ufs_inactive().
 - Also in ufs_inactive, don't acquire the vnode interlock where it isn't
   strictly needed.  Also owning the vnode interlock while calling vprint()
   will cause locking assertions to trip.

Sponsored by: Isilon Systems, Inc.

19 years ago - Do a vn_start_write in vn_close, we may write if this is the last ref
jeff [Sun, 13 Mar 2005 11:56:28 +0000 (11:56 +0000)]
 - Do a vn_start_write in vn_close, we may write if this is the last ref
   on an unlinked file.  We can't know if this is the case until after we
   have the lock.
 - Lock the vnode in vn_close, many filesystems had code which was unsafe
   without the lock held, and holding it greatly simplifies vgone().
 - Adjust vn_lock() to check for the VI_DOOMED flag where appropriate.

Sponsored by: Isilon Systems, Inc.

19 years ago - Remove vx_lock, vx_unlock, vx_wait, etc.
jeff [Sun, 13 Mar 2005 11:54:28 +0000 (11:54 +0000)]
 - Remove vx_lock, vx_unlock, vx_wait, etc.
 - Add a vn_start_write/vn_finished_write around vlrureclaim so we don't do
   writing ops without suspending.  This could suspend the vlruproc which
   should not be a problem under normal circumstances.
 - Manually implement VMIGHTFREE in vlrureclaim as this was the only instance
   where it was used.
 - Acquire a lock before calling vgone() as it now requires it.
 - Move the acquisition of the vnode interlock from vtryrecycle() to
   getnewvnode() so that if it fails we don't drop and reacquire the
   vnode_free_list_mtx.
 - Check for a usecount or holdcount at the end of vtryrecycle() in case
   someone grabbed a ref while we were recycling.  Abort the recycle, and
   on the final ref drop this vnode will be placed on the head of the free
   list.
 - Move the redundant VOP_INACTIVE protection code into the local
   vinactive() routine to avoid code bloat.
 - Keep the vnode lock held across calls to vgone() in several places.
 - vgonel() no longer uses XLOCK, instead callers must hold an exclusive
   vnode lock.  The VI_DOOMED flag is set to allow other threads to detect
   a vnode which is no longer valid.  This flag is set until the last
   reference is gone, and there are no chances for a new ref.  vgonel()
   holds this lock across the entire function, which greatly simplifies
   logic.
 _ Only vfree() in one place in vgone() not three.
 - Adjust vget() to check the VI_DOOMED flag prior to waiting on the lock
   in the LK_NOWAIT case.  In other cases, check after we have slept and
   acquired an exlusive lock.  This will simulate the old vx_wait()
   behavior.

Sponsored by: Isilon Systems, Inc.

19 years ago - A lock is required before calling VOP_REVOKE. Our reference protects us
jeff [Sun, 13 Mar 2005 11:47:04 +0000 (11:47 +0000)]
 - A lock is required before calling VOP_REVOKE.  Our reference protects us
   from accessing another vnode so a naked VOP_LOCK is sufficient.

Sponsored by: Isilon Systems, Inc.

19 years ago - Don't VOP_UNLOCK prior to VOP_REVOKE. The lock is required now.
jeff [Sun, 13 Mar 2005 11:45:51 +0000 (11:45 +0000)]
 - Don't VOP_UNLOCK prior to VOP_REVOKE.  The lock is required now.

Sponsored by: Isilon Systems, Inc.

19 years ago - Don't drop the lock in the default inactive handler anymore, VOP_NULL
jeff [Sun, 13 Mar 2005 11:45:01 +0000 (11:45 +0000)]
 - Don't drop the lock in the default inactive handler anymore, VOP_NULL
   will do for vop_stdinactive now.

Sponsored by: Isilon Systems, Inc.

19 years ago - Get rid of VXLOCK, VXWANT, and vx_*. The vnode lock now protects us
jeff [Sun, 13 Mar 2005 11:44:02 +0000 (11:44 +0000)]
 - Get rid of VXLOCK, VXWANT, and vx_*.  The vnode lock now protects us
   against recycling.
 - Modify VSHOULDFREE, VCANRECYCLE, etc. now that certain flags are no
   longer important.  Remove VMIGHTFREE as it is only used in one place.

Sponsored by: Isilon Systems, Inc.

19 years ago - CLOSE, REVOKE, INACTIVE, and RECLAIM are not L L L, that's a locked vnode
jeff [Sun, 13 Mar 2005 11:42:16 +0000 (11:42 +0000)]
 - CLOSE, REVOKE, INACTIVE, and RECLAIM are not L L L, that's a locked vnode
   on enter, exit, error.  This allows for the removal of the XLOCK.

Sponsored by: Isilon Systems, Inc.

19 years agoEmbrace with #ifdef DEV_CARP carp-related code.
glebius [Sun, 13 Mar 2005 11:23:22 +0000 (11:23 +0000)]
Embrace with #ifdef DEV_CARP carp-related code.

19 years agoUnhook the recently departed lomac file from the build.
dougb [Sun, 13 Mar 2005 08:07:11 +0000 (08:07 +0000)]
Unhook the recently departed lomac file from the build.

Forgotten by: trhodes (the real one)

19 years agoFix a null pointer de-ref when passthrough ioctls are issued. This
scottl [Sun, 13 Mar 2005 06:25:53 +0000 (06:25 +0000)]
Fix a null pointer de-ref when passthrough ioctls are issued.  This
involves some code shuffle to avoid locking problems.

MFC After: 3 days

19 years agoMove configuration file note from kernel to userland, no content
bmah [Sun, 13 Mar 2005 04:24:51 +0000 (04:24 +0000)]
Move configuration file note from kernel to userland, no content
changes.

Minor markup/grammar fixes:  jail(8) security.jail.chflags_allowed,
cpufreq(4), ng_ipfw(4), ips(4) crash dumps, resolver query order,
manpage rewrites.

19 years agoAdd --strip-components option, per bin/77666.
kientzle [Sun, 13 Mar 2005 04:12:30 +0000 (04:12 +0000)]
Add --strip-components option, per bin/77666.

Thanks to: Sangwoo Shim

19 years agoFix the arrangement of periodic QH tree to give the correct interval
iedowse [Sun, 13 Mar 2005 04:07:40 +0000 (04:07 +0000)]
Fix the arrangement of periodic QH tree to give the correct interval
between passes over a QH. Previously the accesses to a QH were
bunched together in time, so the interval was often much longer
than intended. This now appears to match the diagrams in the EHCI
spec, so remove the XXX comment.

19 years agoSupport extracting entries with pathnames longer than PATH_MAX. In
kientzle [Sun, 13 Mar 2005 02:53:42 +0000 (02:53 +0000)]
Support extracting entries with pathnames longer than PATH_MAX.  In
testing, I've archived and restored dir trees with ~1MB pathnames.
Most formats, of course, have much smaller limits.

19 years agoMFC noted: libgpib.
bmah [Sun, 13 Mar 2005 02:43:01 +0000 (02:43 +0000)]
MFC noted:  libgpib.

Updated release note:  GNOME 2.10

Added trademark notices.

19 years agoWhen rejecting rediculously large pax attributes (such as pathnames
kientzle [Sun, 13 Mar 2005 02:35:52 +0000 (02:35 +0000)]
When rejecting rediculously large pax attributes (such as pathnames
over 1MB), issue a warning instead of forcing an internal assertion
failure.

19 years agoUnbreak build with POLLING. I should really listen and test with NOTES
mlaier [Sun, 13 Mar 2005 01:54:41 +0000 (01:54 +0000)]
Unbreak build with POLLING.  I should really listen and test with NOTES
instead of the module build.

19 years agoCorrectly pass low-level I/O errors back up to the caller when
kientzle [Sun, 13 Mar 2005 01:52:35 +0000 (01:52 +0000)]
Correctly pass low-level I/O errors back up to the caller when
reading cpio format.

19 years agoBetter error messages on read and file-open errors.
kientzle [Sun, 13 Mar 2005 01:51:16 +0000 (01:51 +0000)]
Better error messages on read and file-open errors.

19 years agoInclude detailed error message from zlib after a decompression error.
kientzle [Sun, 13 Mar 2005 01:48:33 +0000 (01:48 +0000)]
Include detailed error message from zlib after a decompression error.

19 years agoIf the output is not a regular file, it's okay to add it to the archive.
kientzle [Sun, 13 Mar 2005 01:47:31 +0000 (01:47 +0000)]
If the output is not a regular file, it's okay to add it to the archive.
In particular, /dev/st0 can be added to an archive being written to /dev/st0.

Thanks to: Jaakko Heinonen

19 years agoAllow kernels loaded by pxeboot, which was compiled with LOADER_TFTP_SUPPORT,
kan [Sat, 12 Mar 2005 21:26:53 +0000 (21:26 +0000)]
Allow kernels loaded by pxeboot, which was  compiled with LOADER_TFTP_SUPPORT,
to stll be able to mount NFS root as prescribed by DCHP configuration. Since
pxeboot is using TFTP to get to the files, pxeboot can not rely on NFS to
provide it a root directory hande as a side effect. pxeboot has to  make RPC
mount call itself.

19 years agoRemove mention of mac_lomac(4) policy from here too.
trhodes [Sat, 12 Mar 2005 21:10:42 +0000 (21:10 +0000)]
Remove mention of mac_lomac(4) policy from here too.

19 years agoRemove mac_lomac(4) functionality. The proper way is to use loader.conf
trhodes [Sat, 12 Mar 2005 21:09:15 +0000 (21:09 +0000)]
Remove mac_lomac(4) functionality.  The proper way is to use loader.conf
or build the policy into a kernel.

Approved by: rwatson

19 years agoAdd NO_GPIB
phk [Sat, 12 Mar 2005 20:42:18 +0000 (20:42 +0000)]
Add NO_GPIB

19 years agoDTRT with /var so that any packages installed are correctly recorded.
phk [Sat, 12 Mar 2005 20:41:26 +0000 (20:41 +0000)]
DTRT with /var so that any packages installed are correctly recorded.

19 years agoEnable packet mode in boot0, this makes it unimportant if the
phk [Sat, 12 Mar 2005 20:40:33 +0000 (20:40 +0000)]
Enable packet mode in boot0, this makes it unimportant if the
geometry is 100% correct on most hardware.

19 years agoNew release notes:
hrs [Sat, 12 Mar 2005 19:04:03 +0000 (19:04 +0000)]
New release notes:
jail(8) security.jail.chflags_allowed sysctl,
zs driver removed,
ng_ipfw(4) added,
ips(4) crash dump support,
getaddrinfo(3) DNS query order changed,
powerd(8) added, and
RFC derived manual pages replaced.

Update release notes:
acpi_throttle and acpi_perf merged into acpi and
can be disabled via device hints, and
some rewording due to zs driver removal in the entry which
explains uart(4) has been enabled by default on FreeBSD/sparc64.

19 years agoALTQ support for re(4).
mlaier [Sat, 12 Mar 2005 17:35:37 +0000 (17:35 +0000)]
ALTQ support for re(4).

Submitted by: Chris Dionissopoulos, Theo Schlossnagle
PR: kern/78681
MFC after: 2 weeks

19 years agoIn uart_cpu_getdev_console() when determinig whether we should use
marius [Sat, 12 Mar 2005 17:06:03 +0000 (17:06 +0000)]
In uart_cpu_getdev_console() when determinig whether we should use
a serial console anyway because input-device is set to keyboard and
output-device is set to screen but no keyboard is plugged in don't
assume that a device node for the input-device alias exists. While
this is true for RS232 keyboards (the node of the SCC and UART
respectively which controls the keyboard doesn't disappear when no
keyboard is plugged in) this assumption breaks for USB keyboards.
It's most likely also not true for PS/2 keyboards but OFW doesn't
reliably switch to a serial console when the potential keyboard is
a PS/2 one which isn't plugged in so this couldn't be verified
properly.

Reported by: Will Andrews <will@csociety.org>, obrien
MFC after: 1 week

19 years agoFunction jailed() looks into ucred strcture, so be sure ucred is not NULL.
pjd [Sat, 12 Mar 2005 14:31:04 +0000 (14:31 +0000)]
Function jailed() looks into ucred strcture, so be sure ucred is not NULL.

Reviewed by: rwatson
MFC after: 1 week

19 years agoClean up a bit.
pjd [Sat, 12 Mar 2005 14:28:34 +0000 (14:28 +0000)]
Clean up a bit.

Reviewed by: rwatson
MFC after: 1 week

19 years agoExtend the coverage of the accept and socket mutexes in soisconnected()
rwatson [Sat, 12 Mar 2005 13:39:39 +0000 (13:39 +0000)]
Extend the coverage of the accept and socket mutexes in soisconnected()
so that the socket lock is held over the test-and-set removal of the
accept filter option during connect, and the two socket mutex regions
(transition to connected, perform accept filter) are combined.

19 years agoAdd a sysctl net.link.log_link_state_change, which allows to
glebius [Sat, 12 Mar 2005 12:58:03 +0000 (12:58 +0000)]
Add a sysctl net.link.log_link_state_change, which allows to
suppress logging of interface link state changes.

Requested by: sam, kan

19 years agoMove the logic implementing retrieval of the SO_ACCEPTFILTER socket option
rwatson [Sat, 12 Mar 2005 12:57:18 +0000 (12:57 +0000)]
Move the logic implementing retrieval of the SO_ACCEPTFILTER socket option
from uipc_socket.c to uipc_accf.c in do_getopt_accept_filter(), so that it
now matches do_setopt_accept_filter().  Slightly reformulate the logic to
match the optimistic allocation of storage for the argument in advance,
and slightly expand the coverage of the socket lock.

19 years agoFix a terrible braino in last commit. Put kern.debug back to /var/log/messages
glebius [Sat, 12 Mar 2005 12:31:16 +0000 (12:31 +0000)]
Fix a terrible braino in last commit. Put kern.debug back to /var/log/messages
and do exactly what last commit message described.

19 years agoPart two of post-SMPng cleanup of accept filter registration: perform all
rwatson [Sat, 12 Mar 2005 12:27:47 +0000 (12:27 +0000)]
Part two of post-SMPng cleanup of accept filter registration: perform all
allocation up front before grabbing the socket mutex and doing the
registration work.  The result is a lot cleaner.

19 years ago- Fix device names for snd_vibes(4) and snd_via82c686(4).
simon [Sat, 12 Mar 2005 10:54:08 +0000 (10:54 +0000)]
- Fix device names for snd_vibes(4) and snd_via82c686(4).
- Bump copyright year.

MFC after: 3 days

19 years agoDon't build the nve on pc98.
nyan [Sat, 12 Mar 2005 10:41:58 +0000 (10:41 +0000)]
Don't build the nve on pc98.

19 years agoMFi386: revision 1.217.
nyan [Sat, 12 Mar 2005 10:30:06 +0000 (10:30 +0000)]
MFi386: revision 1.217.

19 years agoDue to a CVS misfire, I ended up committing the wrong version of this.
obrien [Sat, 12 Mar 2005 08:02:06 +0000 (08:02 +0000)]
Due to a CVS misfire, I ended up committing the wrong version of this.

19 years agoMFCi386: Prevent integer underflow that could result in all memory being
scottl [Sat, 12 Mar 2005 07:05:59 +0000 (07:05 +0000)]
MFCi386: Prevent integer underflow that could result in all memory being
consumed.

19 years agoGuard against an integer underflow that could cause busdma to eat up all
scottl [Sat, 12 Mar 2005 07:01:53 +0000 (07:01 +0000)]
Guard against an integer underflow that could cause busdma to eat up all
available RAM.  This also results in the global bounce page limit being
applied to zones instead of globally.

Submitted by: Petr Lampa (in part)