]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoRemove MIPS support.
obrien [Wed, 11 Apr 2001 00:12:48 +0000 (00:12 +0000)]
Remove MIPS support.
It has rotted quite badly and no one has provided updates for it.

23 years agoRemoved these old 2.9.x files.
obrien [Tue, 10 Apr 2001 23:53:32 +0000 (23:53 +0000)]
Removed these old 2.9.x files.

23 years agoo The -s limit is ARG_MAX - 4K, not ARG_MAX - 2K.
brian [Tue, 10 Apr 2001 23:16:55 +0000 (23:16 +0000)]
o The -s limit is ARG_MAX - 4K, not ARG_MAX - 2K.
o Mention that the current environment is part of the -s calculation.
o Add a BUGS section that warns against executing a program that increases
  the size of the argument list or the size of the environment.

  I have wondered for a while what the difference is between

    get a big list | xargs sudo command

  which fails and

    get a big list | sudo xargs command

  which succeeds.  The answer is that in the first case, sudo expands
  the environment and pushes the amount of data passed into execve over
  the E2BIG threshold.

23 years agoRemove constants defining the bitmasks of the old giant kernel lock.
jhb [Tue, 10 Apr 2001 22:22:01 +0000 (22:22 +0000)]
Remove constants defining the bitmasks of the old giant kernel lock.

23 years agoRemove the old APIC I/O higher level IPI API in favor of the newer MI
jhb [Tue, 10 Apr 2001 22:18:21 +0000 (22:18 +0000)]
Remove the old APIC I/O higher level IPI API in favor of the newer MI
API for IPI's that isn't tied to the Intel APIC.  MD code can still use
the apic_ipi() function or dink with the apic directly if needed to send
MD IPI's.

23 years agoCatch up to the dirpref changes by copying new fields in the alternate
jhb [Tue, 10 Apr 2001 22:11:01 +0000 (22:11 +0000)]
Catch up to the dirpref changes by copying new fields in the alternate
superblock from the original superblock so that differences in those new
fields are ignored.

23 years agoSplit out all the RPC code into a separate function and address a
iedowse [Tue, 10 Apr 2001 22:05:47 +0000 (22:05 +0000)]
Split out all the RPC code into a separate function and address a
number of issues:

- Fix background mounts; these were broken in revision 1.40.
- Don't give up before trying all addresses returned by getaddrinfo().
- Use protocol-independent routines where possible.
- Improve error reporting for RPC errors.
- In non-background mode, give up after trying all protocols once.
- Use daemon(3) instead of rolling our own version.
- Never go ahead with the mount() syscall until we have received
  a reply from the remote nfsd; this is especially important with
  non-interruptible mounts, as otherwise a mistyped command might
  require a reboot to correct.

Reviewed by: alfred, Martin Blapp <mb@imp.ch>

23 years agoRemove the BETTER_CLOCK #ifdef's. The code is on by default and is here
jhb [Tue, 10 Apr 2001 21:34:13 +0000 (21:34 +0000)]
Remove the BETTER_CLOCK #ifdef's.  The code is on by default and is here
to stay for the foreseeable future.

OK'd by: peter (the idea)

23 years agoAdd an MI API for sending IPI's. I used the same API present on the alpha
jhb [Tue, 10 Apr 2001 21:04:32 +0000 (21:04 +0000)]
Add an MI API for sending IPI's.  I used the same API present on the alpha
because:
 - it used a better namespace (smp_ipi_* rather than *_ipi),
 - it used better constant names for the IPI's (IPI_* rather than
   X*_OFFSET), and
 - this API also somewhat exists for both alpha and ia64 already.

23 years agoNOBLOCKRANDOM doesn't exist anymore as a kernel option.
jhb [Tue, 10 Apr 2001 19:01:30 +0000 (19:01 +0000)]
NOBLOCKRANDOM doesn't exist anymore as a kernel option.

23 years agoNew release notes: FFS dirpref speedup, GNATS 3.113, BSDPAN.
bmah [Tue, 10 Apr 2001 17:06:50 +0000 (17:06 +0000)]
New release notes:  FFS dirpref speedup, GNATS 3.113, BSDPAN.

23 years agopsroff(1) has never been a part of Groff.
ru [Tue, 10 Apr 2001 17:04:31 +0000 (17:04 +0000)]
psroff(1) has never been a part of Groff.

23 years agovnconfig(8) -> mdconfig(8).
ru [Tue, 10 Apr 2001 16:29:41 +0000 (16:29 +0000)]
vnconfig(8) -> mdconfig(8).

23 years agovnconfig(8) -> mdconfig(8).
ru [Tue, 10 Apr 2001 16:15:01 +0000 (16:15 +0000)]
vnconfig(8) -> mdconfig(8).

Reviewed by: phk

23 years agoAdd another card to the list of Neomagic 256AV's which don't have AC97
greid [Tue, 10 Apr 2001 14:28:21 +0000 (14:28 +0000)]
Add another card to the list of Neomagic 256AV's which don't have AC97
codecs. Also, add some additional code to check for future cards without
this feature - attempting to initialise them as AC97 cards will hang the
machine.

PR: 26427
Reviewed by: cg

23 years agolock the mutex, not the softc pointer.
cg [Tue, 10 Apr 2001 13:52:26 +0000 (13:52 +0000)]
lock the mutex, not the softc pointer.

23 years agoAdd information about the new options to newfs and tunefs which set the
nik [Tue, 10 Apr 2001 10:36:44 +0000 (10:36 +0000)]
Add information about the new options to newfs and tunefs which set the
expected average file size and number of files per directory.  Could do
with some fleshing out.

23 years agoCorrect some cut-n-paste errors. Also embellish the UP1100 a little.
obrien [Tue, 10 Apr 2001 10:35:29 +0000 (10:35 +0000)]
Correct some cut-n-paste errors.  Also embellish the UP1100 a little.

23 years agoDirectory layout preference improvements from Grigoriy Orlov <gluk@ptci.ru>.
mckusick [Tue, 10 Apr 2001 08:38:59 +0000 (08:38 +0000)]
Directory layout preference improvements from Grigoriy Orlov <gluk@ptci.ru>.
His description of the problem and solution follow. My own tests show
speedups on typical filesystem intensive workloads of 5% to 12% which
is very impressive considering the small amount of code change involved.

------

  One day I noticed that some file operations run much faster on
small file systems then on big ones. I've looked at the ffs
algorithms, thought about them, and redesigned the dirpref algorithm.

  First I want to describe the results of my tests. These results are old
and I have improved the algorithm after these tests were done. Nevertheless
they show how big the perfomance speedup may be. I have done two file/directory
intensive tests on a two OpenBSD systems with old and new dirpref algorithm.
The first test is "tar -xzf ports.tar.gz", the second is "rm -rf ports".
The ports.tar.gz file is the ports collection from the OpenBSD 2.8 release.
It contains 6596 directories and 13868 files. The test systems are:

1. Celeron-450, 128Mb, two IDE drives, the system at wd0, file system for
   test is at wd1. Size of test file system is 8 Gb, number of cg=991,
   size of cg is 8m, block size = 8k, fragment size = 1k OpenBSD-current
   from Dec 2000 with BUFCACHEPERCENT=35

2. PIII-600, 128Mb, two IBM DTLA-307045 IDE drives at i815e, the system
   at wd0, file system for test is at wd1. Size of test file system is 40 Gb,
   number of cg=5324, size of cg is 8m, block size = 8k, fragment size = 1k
   OpenBSD-current from Dec 2000 with BUFCACHEPERCENT=50

You can get more info about the test systems and methods at:
http://www.ptci.ru/gluk/dirpref/old/dirpref.html

                              Test Results

             tar -xzf ports.tar.gz               rm -rf ports
  mode  old dirpref new dirpref speedup old dirprefnew dirpref speedup
                             First system
 normal     667         472      1.41       477        331       1.44
 async      285         144      1.98       130         14       9.29
 sync       768         616      1.25       477        334       1.43
 softdep    413         252      1.64       241         38       6.34
                             Second system
 normal     329         81       4.06       263.5       93.5     2.81
 async      302         25.7    11.75       112          2.26   49.56
 sync       281         57.0     4.93       263         90.5     2.9
 softdep    341         40.6     8.4        284          4.76   59.66

"old dirpref" and "new dirpref" columns give a test time in seconds.
speedup - speed increasement in times, ie. old dirpref / new dirpref.

------

Algorithm description

The old dirpref algorithm is described in comments:

/*
 * Find a cylinder to place a directory.
 *
 * The policy implemented by this algorithm is to select from
 * among those cylinder groups with above the average number of
 * free inodes, the one with the smallest number of directories.
 */

A new directory is allocated in a different cylinder groups than its
parent directory resulting in a directory tree that is spreaded across
all the cylinder groups. This spreading out results in a non-optimal
access to the directories and files. When we have a small filesystem
it is not a problem but when the filesystem is big then perfomance
degradation becomes very apparent.

What I mean by a big file system ?

  1. A big filesystem is a filesystem which occupy 20-30 or more percent
     of total drive space, i.e. first and last cylinder are physically
     located relatively far from each other.
  2. It has a relatively large number of cylinder groups, for example
     more cylinder groups than 50% of the buffers in the buffer cache.

The first results in long access times, while the second results in
many buffers being used by metadata operations. Such operations use
cylinder group blocks and on-disk inode blocks. The cylinder group
block (fs->fs_cblkno) contains struct cg, inode and block bit maps.
It is 2k in size for the default filesystem parameters. If new and
parent directories are located in different cylinder groups then the
system performs more input/output operations and uses more buffers.
On filesystems with many cylinder groups, lots of cache buffers are
used for metadata operations.

My solution for this problem is very simple. I allocate many directories
in one cylinder group. I also do some things, so that the new allocation
method does not cause excessive fragmentation and all directory inodes
will not be located at a location far from its file's inodes and data.
The algorithm is:
/*
 * Find a cylinder group to place a directory.
 *
 * The policy implemented by this algorithm is to allocate a
 * directory inode in the same cylinder group as its parent
 * directory, but also to reserve space for its files inodes
 * and data. Restrict the number of directories which may be
 * allocated one after another in the same cylinder group
 * without intervening allocation of files.
 *
 * If we allocate a first level directory then force allocation
 * in another cylinder group.
 */

  My early versions of dirpref give me a good results for a wide range of
file operations and different filesystem capacities except one case:
those applications that create their entire directory structure first
and only later fill this structure with files.

  My solution for such and similar cases is to limit a number of
directories which may be created one after another in the same cylinder
group without intervening file creations. For this purpose, I allocate
an array of counters at mount time. This array is linked to the superblock
fs->fs_contigdirs[cg]. Each time a directory is created the counter
increases and each time a file is created the counter decreases. A 60Gb
filesystem with 8mb/cg requires 10kb of memory for the counters array.

  The maxcontigdirs is a maximum number of directories which may be created
without an intervening file creation. I found in my tests that the best
performance occurs when I restrict the number of directories in one cylinder
group such that all its files may be located in the same cylinder group.
There may be some deterioration in performance if all the file inodes
are in the same cylinder group as its containing directory, but their
data partially resides in a different cylinder group. The maxcontigdirs
value is calculated to try to prevent this condition. Since there is
no way to know how many files and directories will be allocated later
I added two optimization parameters in superblock/tunefs. They are:

        int32_t  fs_avgfilesize;   /* expected average file size */
        int32_t  fs_avgfpdir;      /* expected # of files per directory */

These parameters have reasonable defaults but may be tweeked for special
uses of a filesystem. They are only necessary in rare cases like better
tuning a filesystem being used to store a squid cache.

I have been using this algorithm for about 3 months. I have done
a lot of testing on filesystems with different capacities, average
filesize, average number of files per directory, and so on. I think
this algorithm has no negative impact on filesystem perfomance. It
works better than the default one in all cases. The new dirpref
will greatly improve untarring/removing/coping of big directories,
decrease load on cvs servers and much more. The new dirpref doesn't
speedup a compilation process, but also doesn't slow it down.

Obtained from: Grigoriy Orlov <gluk@ptci.ru>

23 years agokldload ng_pppoe as necessary
brian [Tue, 10 Apr 2001 08:31:13 +0000 (08:31 +0000)]
kldload ng_pppoe as necessary

23 years agoAdd netsmb and smbfs include directories
bp [Tue, 10 Apr 2001 08:16:06 +0000 (08:16 +0000)]
Add netsmb and smbfs include directories

23 years agoImport kernel part of SMB/CIFS requester.
bp [Tue, 10 Apr 2001 07:59:06 +0000 (07:59 +0000)]
Import kernel part of SMB/CIFS requester.
Add smbfs(CIFS) filesystem.

Userland part will be in the ports tree for a while.

Obtained from: smbfs-1.3.7-dev package.

23 years agoAdd more diagnostic output for failure.
alfred [Tue, 10 Apr 2001 05:29:26 +0000 (05:29 +0000)]
Add more diagnostic output for failure.

s/1518/ETHER_MAX_LEN

Some style changes, add some braces, mostly residual from having
a lot of debug hooks added while working on this driver.

Bring in a plethora of changes from NetBSD:

revision 1.58
date: 2001/03/08 11:07:08;  author: ichiro;  state: Exp;  lines: +17 -1
it wait until busy flag disappears.
it was able to prevent some cards with late initializing faling in wi_reset().

revision 1.41
date: 2000/10/13 19:15:08;  author: jonathan;  state: Exp;  lines: +4 -2
Fix wi_intr() to avoid touching card registers during insert/remove  events,
when sharing an interrupt with other devices:
check sc->sc_enabled,  and drop the interrupt if its' off.

revision 1.30
date: 2000/08/18 04:11:48;  author: jhawk;  state: Exp;  lines: +4 -4
Copy wi_{dst,src}_addr from struct wi_frame into faked-up ether_header
instead of addr1 and addr2. THis means that tcpdump -e will show the
correct MAC address for communications with access points instead of showing
the BSSID.

In the future there should be 802.11 support for bpf/libpcap/tcpdump,
but that is aways down the road.

23 years agoClean up a bit. Use the correct TAILQ link when walking the thread
deischen [Tue, 10 Apr 2001 04:25:49 +0000 (04:25 +0000)]
Clean up a bit.  Use the correct TAILQ link when walking the thread
lists to free thread resources after a fork (in the child).  Also
remember to free the dead thread list.

23 years agoAdded a missing set of braces to a conditional that encompasses more than
deischen [Tue, 10 Apr 2001 04:22:24 +0000 (04:22 +0000)]
Added a missing set of braces to a conditional that encompasses more than
one statement.

23 years agoTo be consistent, use the __weak_reference macro from <sys/cdefs.h>
deischen [Tue, 10 Apr 2001 04:19:21 +0000 (04:19 +0000)]
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions.

Suggested by: bde

23 years agoTo be consistent, use the __weak_reference macro from <sys/cdefs.h>
deischen [Tue, 10 Apr 2001 04:11:50 +0000 (04:11 +0000)]
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions.  This macro is
improperly named, though, since a weak definition is not the same
thing as a weak reference.

Suggested by: bde

23 years agoInclude <unistd.h> so that read(2) and write(2) don't cause warnings.
deischen [Tue, 10 Apr 2001 03:55:19 +0000 (03:55 +0000)]
Include <unistd.h> so that read(2) and write(2) don't cause warnings.

23 years agoFix a comment within a comment warning due to a missing "*/".
deischen [Tue, 10 Apr 2001 03:47:40 +0000 (03:47 +0000)]
Fix a comment within a comment warning due to a missing "*/".

23 years agoMake the list in the DIAGNOSTICS section "-tag" instead of "-diag":
dd [Tue, 10 Apr 2001 01:03:29 +0000 (01:03 +0000)]
Make the list in the DIAGNOSTICS section "-tag" instead of "-diag":
the former makes it more obvious as to there the error message starts
and the explanation begins.

PR: 26431

23 years agoAvoid endless recursion on panic.
bp [Tue, 10 Apr 2001 00:56:19 +0000 (00:56 +0000)]
Avoid endless recursion on panic.

Reviewed by: jhb

23 years agoMaintain a reference count on the witness struct. When the reference
jhb [Mon, 9 Apr 2001 22:34:05 +0000 (22:34 +0000)]
Maintain a reference count on the witness struct.  When the reference
count drops to 0 in witness_destroy, set the w_name and w_file pointers
to point to the string "(dead)" and the w_line field to 0.  This way,
if a mutex of a given name is used only in a module, then as long as
all mutexes in the module are destroyed when the module is unloaded,
witness will not maintain stale references to the mutex's name in the
module's data section causing a panic later on when the w_name or w_file
field's are examined.

23 years agoSeveral things:
mjacob [Mon, 9 Apr 2001 21:54:15 +0000 (21:54 +0000)]
Several things:

1. Pick up MII/PHY support for Livengood copper part (10/100/1000) from
Parag Patel. It was a fairly complete but not quite platform independent
job.

2. Finish silly offset differences that LIVENGOOD vs. WISEMAN registers
have (so the !)$*!)$*!$ fiber LIVENGOOD now works too).

3. Ansify the source.

So- we now suppor tthe PRO1000F and PRO1000T adapters.

23 years agoAdd in MII support for LICENGOOD copper part (10/100/1000). Add in some
mjacob [Mon, 9 Apr 2001 21:48:50 +0000 (21:48 +0000)]
Add in MII support for LICENGOOD copper part (10/100/1000). Add in some
more flags for verbose as well as debug printing.

23 years agoPick up changes from Parag Patel and Kachun Lee, and self:
mjacob [Mon, 9 Apr 2001 21:47:11 +0000 (21:47 +0000)]
Pick up changes from Parag Patel and Kachun Lee, and self:

1. The offsets for some registers change in LIVENGOOD. Gratuitously.

2. Define LIVENGOOD and LIVENGOOD_CU part numbers. Add some more
specific LIVENGOOD defaults.

3. Add definitions for PHY support for the copper LIVENGOOD part
(10/100/1000).

23 years ago- One can now specify the decimal pid of a process to trace as a parameter.
jhb [Mon, 9 Apr 2001 21:43:45 +0000 (21:43 +0000)]
- One can now specify the decimal pid of a process to trace as a parameter.
  Since pid's are not in the kernel address space, this doesn't conflict
  with the funcionality of specifying an arbitrary frame pointer to the
  trace command.
- If the first function of a backtrace maps to fork_trampoline, then this
  is a newly fork'd process that has not been executed yet, so just print
  out the first frame and then return for that case.
- Lower the default count from 65535 to 1024.  ddb doesn't trace into
  userland, and if the stack gets hosed and starts looping it's less
  annoying.

23 years agoWe now depend on miibus_if.h.
mjacob [Mon, 9 Apr 2001 21:34:52 +0000 (21:34 +0000)]
We now depend on miibus_if.h.

23 years agocomment out a boot-time debug message
cg [Mon, 9 Apr 2001 21:33:47 +0000 (21:33 +0000)]
comment out a boot-time debug message

23 years agoAdd Marvell PHY support for 10/100/1000 LIVENGOOD_CU Intel NIC.
mjacob [Mon, 9 Apr 2001 21:29:44 +0000 (21:29 +0000)]
Add Marvell PHY support for 10/100/1000 LIVENGOOD_CU Intel NIC.
Parag Patel did all of the grunt work, so he gets the credit.
Register definitions and actions inferred from a Linux driver,
so Intel also gets some 'credit'.

23 years agoAdd a comment out console line for AlphaServer 8200 and 8400 ("TurboLaser")
obrien [Mon, 9 Apr 2001 19:35:53 +0000 (19:35 +0000)]
Add a comment out console line for AlphaServer 8200 and 8400 ("TurboLaser")

23 years agoRege.
n_hibma [Mon, 9 Apr 2001 18:45:32 +0000 (18:45 +0000)]
Rege.

23 years agoAgain an ID that has been reused. Update description.
n_hibma [Mon, 9 Apr 2001 18:45:02 +0000 (18:45 +0000)]
Again an ID that has been reused. Update description.

23 years agoAdd the Abocom URE 450 ethernet adapter.
n_hibma [Mon, 9 Apr 2001 18:44:11 +0000 (18:44 +0000)]
Add the Abocom URE 450 ethernet adapter.

Submitted by:   dima@bog.msu.su

23 years agoRegen.
n_hibma [Mon, 9 Apr 2001 18:26:18 +0000 (18:26 +0000)]
Regen.

23 years agoUpdate the description for the EPSON PID 0x010a. It seems to be reused in
n_hibma [Mon, 9 Apr 2001 18:22:20 +0000 (18:22 +0000)]
Update the description for the EPSON PID 0x010a. It seems to be reused in
the 8700 series.

23 years agoRegen.
n_hibma [Mon, 9 Apr 2001 18:19:41 +0000 (18:19 +0000)]
Regen.

23 years agoAdd the Omni 56K Plus modem
n_hibma [Mon, 9 Apr 2001 18:19:20 +0000 (18:19 +0000)]
Add the Omni 56K Plus modem

Submitted by: kazarov@izmiran.rssi.ru

23 years agoAllow user to omit font size specification when loading a font. In addition
sobomax [Mon, 9 Apr 2001 17:24:29 +0000 (17:24 +0000)]
Allow user to omit font size specification when loading a font. In addition
the following fixes had been made:

- check the size of the font being loaded and compare it with possible sizes
  to minimise possibility of loading something that is not a fontfile at all
  and turning console screen into garbage;

- prevent buffer overflow (and coredump as a result ) when loading valid
  uuencoded file with size that exceeds allocated buffer;

- correct and improve several error messages.

Approved by: -audit, -hackers (silently)

23 years agoWhitespace only: convert several tabs into spaces to make style consistent.
sobomax [Mon, 9 Apr 2001 16:55:32 +0000 (16:55 +0000)]
Whitespace only: convert several tabs into spaces to make style consistent.

23 years agoClarify that we're talking about KBytes per second vs kBits per second.
jkh [Mon, 9 Apr 2001 16:49:50 +0000 (16:49 +0000)]
Clarify that we're talking about KBytes per second vs kBits per second.

Reminded by: bde

23 years agoWhitespace only: Convert several tabs into spaces, to make style consistent.
sobomax [Mon, 9 Apr 2001 16:36:48 +0000 (16:36 +0000)]
Whitespace only: Convert several tabs into spaces, to make style consistent.

23 years agoDocument clear_error command on sable/lynx.
gallatin [Mon, 9 Apr 2001 14:21:24 +0000 (14:21 +0000)]
Document clear_error command on sable/lynx.

Thanks to Timothy D. First <firsttim@msu.edu> for figuring this one out

23 years agoMerge in latest CSRG revisions:
ru [Mon, 9 Apr 2001 13:02:20 +0000 (13:02 +0000)]
Merge in latest CSRG revisions:

- .Fn and .Fc now print a final semicolon (`;') after a
  function declaration in the SYNOPSIS
- .%I implemented
- .At outputs ``AT&T UNIX'' if called without arguments
- minor cleanup

Obtained from: CSRG archives

23 years ago``|'' should be more binding than ``!'' so that this isn't broken:
brian [Mon, 9 Apr 2001 12:46:19 +0000 (12:46 +0000)]
``|'' should be more binding than ``!'' so that this isn't broken:

if ! echo bla | wc -c ; then
echo broken
fi

Obtained from: NetBSD

23 years agoenable the rate conversion feeder.
cg [Mon, 9 Apr 2001 12:04:44 +0000 (12:04 +0000)]
enable the rate conversion feeder.

the main benefit this gives for now is that via686 audio devices on
motherboards with ac97 codecs that do not support vra will be able to use
sample rates other than 48khz.

23 years agoChange the behaviour of mixer slightly such that not explicitly specifying
greid [Mon, 9 Apr 2001 11:10:34 +0000 (11:10 +0000)]
Change the behaviour of mixer slightly such that not explicitly specifying
a mixer device will set/get the master volume levels

PR: 25156
Submitted by: Tony Finch <dot@dotat.at>
Reviewed by: cg, nik

23 years agoRemove a stale file.
n_hibma [Mon, 9 Apr 2001 10:28:33 +0000 (10:28 +0000)]
Remove a stale file.

23 years agoAdd function prototypes and base module for kernel side iconv library.
bp [Mon, 9 Apr 2001 09:39:29 +0000 (09:39 +0000)]
Add function prototypes and base module for kernel side iconv library.
Add simple "xlat" converter which performs 8to8 table based conversion.
Unicode converter will be added in the near future.

Reviewed by: silence on arch@
Files placement reviewed by: bde
Obtained from: smbfs

23 years agoTwo minor fixes:
imp [Mon, 9 Apr 2001 06:33:36 +0000 (06:33 +0000)]
Two minor fixes:
o Change the number of init tries from 5 to a #define.
o Allow up to 5s rather than 2s for commands to complete.  This
  is still much less than 51 minutes, but makes my intel card init
  with more reliability than before.

23 years agoCorrectly initialize free_ccbq so that if we fail to attach (as is
mjacob [Mon, 9 Apr 2001 05:41:41 +0000 (05:41 +0000)]
Correctly initialize free_ccbq so that if we fail to attach (as is
possible for some systems where the device is there, but the BIOS
hasn't allocated memory resources for it), we don't panic.

Submitted by:  Gerard Roudier

23 years agoAdd FreeBSD IDs to some files and make the others consistent in style.
obrien [Sun, 8 Apr 2001 23:09:21 +0000 (23:09 +0000)]
Add FreeBSD IDs to some files and make the others consistent in style.

23 years agoFix typo in error message.
obrien [Sun, 8 Apr 2001 23:02:12 +0000 (23:02 +0000)]
Fix typo in error message.

23 years agoReinitialise the DSP and mixer after a resume from suspend
greid [Sun, 8 Apr 2001 23:02:06 +0000 (23:02 +0000)]
Reinitialise the DSP and mixer after a resume from suspend

PR: 22372
Submitted by: Hiroyuki Aizu <aizu@jaist.ac.jp>
Reviewed by: cg

23 years agoStyle fix.
obrien [Sun, 8 Apr 2001 21:50:41 +0000 (21:50 +0000)]
Style fix.

23 years agoDon't complain about deprecated environment variables, like MUSIC_CD,
joe [Sun, 8 Apr 2001 21:35:17 +0000 (21:35 +0000)]
Don't complain about deprecated environment variables, like MUSIC_CD,
being present in the environment if the user has CDROM defined, or
has specified a device on the command line.

This avoids users of ports like 'workman' that use these variables
getting gratuitous warnings from cdcontrol.

Suggested by: John Sellens <jsellens@generalconcepts.com>

23 years agoAccording with RFC 2330 ("Framework for IP Performance Metrics", from
jkh [Sun, 8 Apr 2001 20:42:52 +0000 (20:42 +0000)]
According with RFC 2330 ("Framework for IP Performance Metrics", from
Paxson et al, Status: Informational, May 1998), we should use "bits per
second" and "k" as 1000 not 1024 for throughput measures.

Submitted by:   Eduardo Souza Machado da Silva <esms@acm.org>

23 years agoMove the decision whether we want to request authentication from our
joerg [Sun, 8 Apr 2001 20:29:09 +0000 (20:29 +0000)]
Move the decision whether we want to request authentication from our
peer out from sppp_lcp_open() to sppp_lcp_up().  For one, this makes
things look more symmetrical to sppp_lcp_close(), and somehow it also
just occurred to me that an Up event following the open caused the
value of the authentication option to be clobbered.

23 years agoadd a software sample rate conversion feeder. this uses linear
cg [Sun, 8 Apr 2001 20:26:22 +0000 (20:26 +0000)]
add a software sample rate conversion feeder.  this uses linear
interpolation for reasonable quality whilst not using too much cpu time.

23 years agominor tweaks in speed and format setting routines.
cg [Sun, 8 Apr 2001 20:20:52 +0000 (20:20 +0000)]
minor tweaks in speed and format setting routines.

don't stop exploring the feeders if a feeder fails to initialise.

23 years agofix feeder initialisation methods to return correct result codes.
cg [Sun, 8 Apr 2001 20:17:03 +0000 (20:17 +0000)]
fix feeder initialisation methods to return correct result codes.

23 years agoif the feeder chain returned no data, do not try to acquire the data.
cg [Sun, 8 Apr 2001 20:14:14 +0000 (20:14 +0000)]
if the feeder chain returned no data, do not try to acquire the data.

23 years agoFrom the author:
markm [Sun, 8 Apr 2001 20:11:51 +0000 (20:11 +0000)]
From the author:

Fix a bug when the return values from the overridden sub were lost
during the first invocation.

23 years agoThe maximum RPC message size was set at 8k for UDP. This is lower
iedowse [Sun, 8 Apr 2001 19:21:50 +0000 (19:21 +0000)]
The maximum RPC message size was set at 8k for UDP. This is lower
than the default buffer size in the old RPC code (8800 bytes), and
it could not be overriden by the application. This caused problems
with CFS (/usr/port/security/cfs).

Change this default back to UDPMSGSIZE (8800 bytes), but more
importantly, allow applications to use larger message sizes for
all protocols if desired. Choose an arbitrary maximum message size
of 256k instead of using the default as the maximum (which is
silly).

Reported by: ache
Reviewed by: alfred, Martin Blapp <mb@imp.ch>

23 years agoMention that locks are inherited across an exec.
dd [Sun, 8 Apr 2001 19:11:25 +0000 (19:11 +0000)]
Mention that locks are inherited across an exec.

PR: 24802
Submitted by: Kenneth Ingham <ingham@i-pi.com>

23 years agowd0 -> ad0
dd [Sun, 8 Apr 2001 18:41:22 +0000 (18:41 +0000)]
wd0 -> ad0

PR: 26343
Submitted by: Sergey A. Osokin <osa@FreeBSD.org.ru>

23 years agoinsert a magical second memory barrier prior to calling draina() in
gallatin [Sun, 8 Apr 2001 16:43:59 +0000 (16:43 +0000)]
insert a magical second memory barrier prior to calling draina() in
badaddr_read().  This fixes 'machine check in pal mode' halts on
ev5 2100As.

MFC candidate -- after spending 6 hours tracking this down, I checked and
discovered that it has been in NetBSD for over a year, so it should be safe
for MFC into 4.3-RELEASE

23 years agoInstall links to extattr_(get|set|delete)_fd.2 (from extattr_get_file.2).
dd [Sun, 8 Apr 2001 06:58:48 +0000 (06:58 +0000)]
Install links to extattr_(get|set|delete)_fd.2 (from extattr_get_file.2).

23 years agoNew release notes: Fix IPFilter fragment cache, libposix1e integration
bmah [Sun, 8 Apr 2001 04:28:39 +0000 (04:28 +0000)]
New release notes:  Fix IPFilter fragment cache, libposix1e integration
into libc.

Note default root partition for alpha is now 120MB.

23 years agoFix a precedence bug. ! has higher precedence than &.
jake [Sun, 8 Apr 2001 04:15:26 +0000 (04:15 +0000)]
Fix a precedence bug.  ! has higher precedence than &.

23 years agoAdd yet another chip revision of the ES1371 which requires initialisation
greid [Sun, 8 Apr 2001 00:07:53 +0000 (00:07 +0000)]
Add yet another chip revision of the ES1371 which requires initialisation
delays

PR: 26415
Submitted by: Jose M. Alcaide <jose@we.lc.ehu.es>
Reviewed by: cg

23 years agono longer needed now that we are able to build cdboot from sources again
gallatin [Sun, 8 Apr 2001 00:01:54 +0000 (00:01 +0000)]
no longer needed now that we are able to build cdboot from sources again

23 years agobuild cdboot from sources now that the cd9660 fs support works
gallatin [Sat, 7 Apr 2001 23:52:31 +0000 (23:52 +0000)]
build cdboot from sources now that the cd9660 fs support works
MFC candidate

23 years agofix cd9660 to work on files larger than ISO_DEFAULT_BLOCK_SIZE and unbreak
gallatin [Sat, 7 Apr 2001 23:48:46 +0000 (23:48 +0000)]
fix cd9660 to work on files larger than ISO_DEFAULT_BLOCK_SIZE and unbreak
cdboot on alphas (which has been broken since just after 4.0-RELEASE)

submitted by: jlemon

23 years agoUse getopt instead of a home grown one
n_hibma [Sat, 7 Apr 2001 20:51:24 +0000 (20:51 +0000)]
Use getopt instead of a home grown one

Submitted by: DES

23 years agoAdd id for the IO Data ET/T
n_hibma [Sat, 7 Apr 2001 20:47:29 +0000 (20:47 +0000)]
Add id for the IO Data ET/T

PR: 23877
Submitted by: Makoto MATSUSHITA <matusita@jp.freebsd.org>

23 years agoLet pseudofs into the warmth of the FreeBSD CVS repo.
des [Sat, 7 Apr 2001 19:51:12 +0000 (19:51 +0000)]
Let pseudofs into the warmth of the FreeBSD CVS repo.

It's not finished yet (I still have to find a way to implement process-
dependent nodes without consuming too much memory, and the permission
system needs tightening up), but it's becoming hard to work on without
a repo (I've accidentally almost nuked it once already), and it works
(except for the lack of process-dependent nodes, that is).

I was supposed to commit this a week ago, but timed out waiting for jkh
to reply to some questions I had. Pass him a spoonful of bad karma :)

23 years agoIf the server's reply to the SIZE command is unparseable, reset us->size
des [Sat, 7 Apr 2001 15:26:31 +0000 (15:26 +0000)]
If the server's reply to the SIZE command is unparseable, reset us->size
to -1 so the caller will know it's invalid.  This is an MFC candidate.

23 years agoQuieten when re-triggering.
orion [Sat, 7 Apr 2001 14:12:53 +0000 (14:12 +0000)]
Quieten when re-triggering.

23 years agoDon't make fsck go quite _that_ fast:
phk [Sat, 7 Apr 2001 13:24:59 +0000 (13:24 +0000)]
Don't make fsck go quite _that_ fast:
In Preen mode we only checked one partition per disk device.

23 years agoRemove tsess for now.
brian [Sat, 7 Apr 2001 11:22:26 +0000 (11:22 +0000)]
Remove tsess for now.

This (and sess) may come back shortly.

23 years agobeforeinstall -> SCRIPTS.
ru [Sat, 7 Apr 2001 11:21:35 +0000 (11:21 +0000)]
beforeinstall -> SCRIPTS.

23 years agoUpdate documentation in line with what the code does
brian [Sat, 7 Apr 2001 11:16:41 +0000 (11:16 +0000)]
Update documentation in line with what the code does

PR: 25435
Submitted by: dd
Forgotten by: mckusick

23 years agoIntroduce SCRIPTS for bsd.prog.mk. See bsd.README for details.
ru [Sat, 7 Apr 2001 11:13:46 +0000 (11:13 +0000)]
Introduce SCRIPTS for bsd.prog.mk.  See bsd.README for details.
Idea stolen from NetBSD.

Reviewed by: bde

23 years agoTypo ("no not" -> "do not")
billf [Sat, 7 Apr 2001 08:19:20 +0000 (08:19 +0000)]
Typo ("no not" -> "do not")

Submitted by: Dave McKay <monk@sneakerz.org>

23 years agoReorder the Alpha cut-out list to match the order in the GENERIC kernel.
obrien [Sat, 7 Apr 2001 06:12:10 +0000 (06:12 +0000)]
Reorder the Alpha cut-out list to match the order in the GENERIC kernel.

23 years agoThe sess column went away last December with v1.26 of keyword.c
brian [Sat, 7 Apr 2001 02:53:35 +0000 (02:53 +0000)]
The sess column went away last December with v1.26 of keyword.c
Remove it from ``jfmt''.

Forgotten by: mckusick

23 years agoStrip comments from the MFSROOT's /stand/etc files.
obrien [Sat, 7 Apr 2001 01:53:14 +0000 (01:53 +0000)]
Strip comments from the MFSROOT's /stand/etc files.

23 years agoBlow away all the help files on the MFSROOT for the Alpha.
obrien [Sat, 7 Apr 2001 01:48:55 +0000 (01:48 +0000)]
Blow away all the help files on the MFSROOT for the Alpha.
Someone did something that really blew up the size of the crunchgen'ed
sysinstall+friends.

23 years agouse correct contants (from net/ethernet.h)
alfred [Fri, 6 Apr 2001 22:21:57 +0000 (22:21 +0000)]
use correct contants (from net/ethernet.h)

ETHER_TYPE_LEN instead of sizeof(u_int16_t) when looking at an ethernet
  header

ETHERTYPE_IP instead of 0x800

23 years agoreplace hardcoded 1518 with ETHER_MAX_LEN
alfred [Fri, 6 Apr 2001 21:48:19 +0000 (21:48 +0000)]
replace hardcoded 1518 with ETHER_MAX_LEN