Commit Graph

49119 Commits

Author SHA1 Message Date
mjacob
bb3c05baed fix KASSERT usage 2000-06-02 19:06:33 +00:00
jlemon
c7145aec0f When attempting to transmit a packet, if the system fails to allocate
a mbuf, it may return without setting any timers.  If no more data is
scheduled to be transmitted (this was a FIN) the system will sit in
LAST_ACK state forever.

Thus, when mbuf allocation fails, set the retransmit timer if neither
the retransmit or persist timer is already pending.

Problem discovered by:  Mike Silbersack (silby@silby.com)
Pushed for a fix by:    Bosko Milekic <bmilekic@dsuper.net>
Reviewed by:            jayanth
2000-06-02 17:38:45 +00:00
joe
9ad4da2e70 Add colour support to /bin/ls (at a cost of 1056 bytes on my system).
It is not switched on by default and must be enabled with the -G
flag.  When using ls -G the output behaviour is modified with ANSI
colour sequences wrapped around filenames to help distinguish file
types.  (Colours can be redefined in the LSCOLORS environment
variable as described in the manual page.)

Colour support is silently disabled (if switched on) if stdout
isn't a tty.

Based on:	asami's colorls port.
PR:		bin/18900 && ports/18616.
2000-06-02 14:53:42 +00:00
dcs
a92f3a6a0a Add something that was missing from the original 2.04 distribution. 2000-06-02 13:49:09 +00:00
sheldonh
fb69e71986 Document the NewReno sysctl knob.
Submitted by:	jlemon
2000-06-02 13:12:36 +00:00
dcs
165f8735e7 Remove garbage. 2000-06-02 12:49:57 +00:00
bde
7fbccf3ef8 Use "nm | awk ..." instead of genassym(1) to generate symbol value headers.
Symbol values are now represented using array sizes (4 arrays per symbol
so that 16-bit machines can represent 64-bit values) instead of being raw
binary values.

Reviewed by:	marcel
2000-06-02 09:27:48 +00:00
chris
ccec07bebe Update the comment for fdesc_setattr to reflect that we no longer
actually setattr() on underlying vnodes.
2000-06-02 07:08:18 +00:00
chris
571f018249 - Do not allow VOP_SETATTR to modify underlying vnodes at all. This caused
problems when fetch(1) was passed `-o -'.  The rationale of this change
  is that applications attempting to change underlying vnodes for /dev/fd
  nodes are improperly written and the use of this interface should not
  ever have been encouraged.  Proper alternatives are fchmod, fchown and
  others.

  PR:		18952

- Remove stale, unused fdescnode->fd_link structure member.
2000-06-02 07:02:45 +00:00
hoek
7e994844ce Use rm -f if the -f (force) option was given. 2000-06-02 04:32:37 +00:00
grog
9d6c03859b parityrebuild: write the parity block back to the correct subdisk.
HEADS UP: This fixes a serious data corruption bug when using the
userland command 'rebuildparity'.
2000-06-02 04:05:40 +00:00
grog
1c276d6af7 Remove an incorrect comment, adjust white space. 2000-06-02 04:05:05 +00:00
grog
4566b06d22 Add 'dumpconfig' keyword. 2000-06-02 04:04:31 +00:00
grog
017a1733ac Remove a redundant statement. 2000-06-02 04:03:57 +00:00
grog
b490d01092 open_drive: Recognize "wd" device type. This is going away, but it's
not gone yet.

format_config: print correct text when a volume has a preferred plex.
This is still broken, but not quite as badly.

Reported-by: Phil Regnauld <regnauld@ftf.net>

Change a rather silly comment.
2000-06-02 04:03:13 +00:00
grog
25e1326b4b give_sd_to_plex: Initialize sd->plexno correctly. Previously this was
only being done at plex creation time, and an attach would leave the
value uninitialized.
2000-06-02 04:02:15 +00:00
grog
83a3e081eb Add new function declarations. 2000-06-02 03:55:01 +00:00
grog
a5eea96d8a Change the default command history file from /var/tmp/vinum_history to
/var/log/vinum_history.  Also check that any existing history file is
a regular file.

Admonished-by: imp

Allow stopping long-running commands with ^C (well, SIGINTR).
Previously this would stop the program.
2000-06-02 03:54:33 +00:00
grog
5e6b4a395e Add new function dumpconfig: dump the configuration information
directly off the drives.

This command shows a minor problem: it requires that the device nodes
exist, whereas kernel Vinum does not.  Thus dumpconfig may show no
configuration for certain drives which are up and happily running.
This is documented in the man page.
2000-06-02 03:53:33 +00:00
grog
d4d500418a attach command: allow attaching striped or parity plexes if the -f
option is given.  This will break the data in the plex.
2000-06-02 03:52:05 +00:00
jwd
d0646eb952 Remove less from fixit.flp until the space issues are resolved.
Approved by:	jkh
2000-06-01 23:35:15 +00:00
wpaul
cc090af738 Darn it... left if_aue.c out of the last commit. (Fix watchdog timeout
handling, turn of interrupt pipe stuff.)
2000-06-01 23:18:01 +00:00
wpaul
5e4b4dc43d Handle watchdog timeouts better. We can't really call the foo_init()
routines from foo_watchdog() because foo_watchdog() is called at
interrupt context, and that's a no-no due to the way the USB stack
is currently set up.

What we do now is call the TX end of frame handler manually to clear
the completed transmission, then check the send queue and send off
any frames that are pending.

Also turned off the interrupt pipe stuff in if_aue, since it appears
to tickle a bug in the USB stack that I haven't found yet.
2000-06-01 23:16:42 +00:00
phk
cd07a5410e Add -y option which doesn't ask for confimation, but still shows progress
PR:		9259
Submitted by:	Clark Gaylord <cgaylord@vt.edu>
2000-06-01 22:27:30 +00:00
phk
2e5551ad87 Don't panic if ifpromisc() returnes ENXIO, it's probably just an pccard
which have been pulled.
2000-06-01 21:57:13 +00:00
phk
b6c2abe017 ed_ioctl() can be called from ifpromisc() after the card has been removed,
don't panic on a NULL pointer in that case.
2000-06-01 21:55:49 +00:00
dcs
9910944f5b Some David Gerrold limericks, which he gratiously allowed us to
reproduce. I'll add the file to the makefile once I have finished adding
the limericks.
2000-06-01 20:33:14 +00:00
dcs
22ac78c306 Add "int" sized manipulation words. 2000-06-01 18:10:44 +00:00
phk
49cf95cfd9 Duh! get the scaling right. 2000-06-01 08:49:46 +00:00
phk
73b631ae22 Rescale the IOstat bars, modern disks are faster than old disks. 2000-06-01 08:26:13 +00:00
peter
bf702b6764 With this evil hack the DS1 driver works on our Intel desktop
motherboards that use YMF740's.  It has a strange subvendor and subdevice
ID and requires a disturbingly long delay after the ac97 codec init.
Cameron hasn't had this driver tested on another 740 yet, so we don't know
if this is a quirk of all 740's, or if its just something about the codec
that Intel used.
2000-06-01 03:58:27 +00:00
jkh
4e96ce387c Make the ports readmes and foreign docs more optional.
Submitted by:	Ben Smithurst <ben@scientia.demon.co.uk>
2000-06-01 02:43:55 +00:00
cg
ba367be739 if a device has no play or no record channels, set its simplex flag. 2000-06-01 01:32:30 +00:00
archie
b9592ca040 Fix bug where receive statistics for the bundle were not getting updated. 2000-06-01 01:29:49 +00:00
cg
76b331914e if we get bad values for playctrlsize, the firmware may not have initialised
yet so retry.
2000-06-01 01:29:05 +00:00
hoek
1e9a6591b3 Add a NO_LPR option. Useful for people who want to use LPRng.
PR:	bin/18787 (David Gilbert <dgilbert@velocet.ca>)
2000-05-31 21:45:15 +00:00
jkh
a40964c055 Update the australian NTP server entry.
Submitted by:	Peter Matthews <peter@netwise.com.au>
2000-05-31 21:40:50 +00:00
msmith
50016bdc27 Further fixes for multiple-IO-APIC systems from Tor Egge:
Further experimentation showed that some Dell 2450 machines with the
prevention kludge installed still got T_RESERVED traps.  CPU interrupt
vector 0x7A was observed to be triggered.  This might have been the
bitwise OR of two different vectors sent from each of the IOAPICs at
the same time.

	IOAPIC #0: 0x68 --> irq 8: RTC timer interrupt
	IOAPIC #1: 0x32 --> irq 18: scsi host adapter or network interface
		   ----
		   0x7a --> T_RESERVED

Both IOAPICs had ID 0.

Appendix B.3 in the MP spec indicates that the operating system is
responsible for assigning unique IDs to the IOAPICs.

The enclosed patch programs the IOAPIC IDs according to the IOAPIC
entries in the MP table.

Submitted by:	tegge
2000-05-31 21:37:28 +00:00
chris
3a3f64f949 Replace `manual(section)' references with proper .Xr statements. 2000-05-31 21:33:15 +00:00
chris
dbd30701d6 Replace a `manual(section)' reference with a proper .Xr statement. 2000-05-31 21:12:08 +00:00
cg
31a7173f2e add a bit more diagnostic info for the bus_dmamap_load failure case 2000-05-31 19:04:12 +00:00
msmith
cde7d8a67d Bump the default NBUS value to 8. 2000-05-31 19:01:45 +00:00
msmith
a83c534319 Bump the default NBUS value to 8, in lieu of actually sizing it
dynamically.  Too many systems have more than 4 busses now.
2000-05-31 18:55:02 +00:00
bde
d6748db09b Pack the SWI bits to save some time and space. 2000-05-31 16:36:20 +00:00
brian
af615e019d Use mp_CheckAutoloadTimer() rather than mp_StopAutoloadTimer()
when opening or closing an auto link due to the autoload
setting.

Spotted by: David Hedley <david@inty.co.uk>
2000-05-31 15:35:29 +00:00
jwd
fdf622e339 With the removal of more, update the fixit floppy to contain
less (and symlink more to less).

Approved by:	jkh
2000-05-31 15:26:03 +00:00
roberto
c04c8e7957 Finland is also entitled to have an Euro character :)
Submitted by:	Mikko Hyvarinen <morphy@morphy.iki.fi>
2000-05-31 14:53:27 +00:00
bde
2e4d43a8f4 Add SWI_TQ_MASK to all interrupt masks except SWI_CLOCK_MASK. Use a
new macro SWI_LOW_MASK to give the mask for low priority SWIs instead
of hard-coding this mask as SWI_CLOCK_MASK.

Reviewed by:	dfr
2000-05-31 13:32:28 +00:00
luigi
3b7e236de2 Move mfs-related files to a different subtree 2000-05-31 12:27:38 +00:00
luigi
d929968cbc Move mfs-related files to a new location 2000-05-31 12:25:39 +00:00