Commit Graph

41258 Commits

Author SHA1 Message Date
dillon
6bba38ba1c Fix a bug in the block number calculation for VN disks with a sector
size != 512 that are configured without a label.  The bug should only
    have effected swap-backed VN mounts without a label.

    Add several major features to VN.  In the kernel we add a swap
    pre-reservation capability, which can be used to guarentee seek
    consistency for swap-backed VN nodes.  This also incidently allows
    a swap-backed VN filesystem to be recovered after a crash in some
    cases (if the same swap blocks happen to be reserved).

    We also add a number of new options to vnconfig which do the work
    of pre-zeroing or creating/truncating/extending a file which greatly
    simplifies using VN in a file-backed configuration.

    Add FreeBSD CVS label to sys/sys/vnioctl.h, as well as a new ioctl
    flag for the swap pre-reservation feature.

Reviewed by:	Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
1999-09-17 05:34:00 +00:00
dillon
3073bd1907 The vnode pager (used when you do file-backed mmaps) must use the
underlying physical sector size when aligning I/O transfer sizes.
    It cannot assume 512 bytes.

    We assume the underlying sector size is a power of 2.  If it isn't,
    mmap() will break badly anyway (in the same way mmap broke with NFS
    when NFS tried to cache piecemeal write ranges in buffers, before
    we enforced read-buffer-before-write-piecemeal for NFS).

Reviewed by:	Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
1999-09-17 05:17:59 +00:00
dillon
8f73f83212 Fix a number of spl bugs related to reserving and freeing swap space.
Swap space can be freed from an interrupt and so swap reservation and
    freeing must occur at splvm.

    Add swap_pager_reserve() code to support a new swap pre-reservation
    capability for the VN device.

    Generally cleanup the swap code by simplifying the swp_pager_meta_build()
    static function and consolidating the SWAPBLK_NONE test from a bit test
    to an absolute compare.  The bit test was left over from a rejected
    swap allocation scheme that was not ultimately committed.  A few other
    minor cleanups were also made.

    Reorganize the swap strategy code, again for VN support, to not
    reallocate swap when writing as this messes up pre-reservation and
    can fragment I/O unnecessarily as VN-baesd disk is messed around with.

Reviewed by:	Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
1999-09-17 05:09:24 +00:00
dillon
2d7b5acaa6 Add required BUF_KERNPROC to flushchainbuf() to disassociate the
current process from the exclusive lock prior to initiating I/O.

    This fixes a panic related to swap-backed VN disks

Reviewed by:	Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
1999-09-17 05:03:27 +00:00
dillon
1131fb5e03 Reviewed by: Alan Cox <alc@cs.rice.edu>, David Greenman <dg@root.com>
Replace various VM related page count calculations strewn over the
    VM code with inlines to aid in readability and to reduce fragility
    in the code where modules depend on the same test being performed
    to properly sleep and wakeup.

    Split out a portion of the page deactivation code into an inline
    in vm_page.c to support vm_page_dontneed().

    add vm_page_dontneed(), which handles the madvise MADV_DONTNEED
    feature in a related commit coming up for vm_map.c/vm_object.c.  This
    code prevents degenerate cases where an essentially active page may
    be rotated through a subset of the paging lists, resulting in premature
    disposal.
1999-09-17 04:56:40 +00:00
wpaul
9203c48eba Fix sf_probe() to detect the card type properly. I botched the reading
of the subsystem ID when I converted to newbus. The driver still detects
the chipset and still works but fails to identify the exact card.
1999-09-17 00:47:41 +00:00
green
9537448176 Make count=0 set cpy_cnt to -1, which is slight overloading, but makes
what I was trying to do work much better (ie at all.  I could have sworn
it was working...) Fix a SEEK_SET to be SEEK_CUR, and make Bruce's
lseek() test work correctly.
1999-09-16 19:50:59 +00:00
brian
352bb122b6 Suggest using just finrst in the dial filter, and not syn.
Submitted by:	Ruslan Ermilov <ru@FreeBSD.org>
1999-09-16 18:52:46 +00:00
brian
a40cc1a5a0 Correct the return from FilterCheck for fragments
PR:		13771
Submitted by:	Dean M. Phillips <dphill@inav.net>
1999-09-16 18:47:59 +00:00
jmas
bca007accb Add spanish support, fixing my own PR.
PR:		i386/10595
Submitted by:	Jose M. Alcaide (jose@we.lc.ehu.es)
1999-09-16 10:46:32 +00:00
jkh
8b6423a16d Some minor cosmetics: make mkdir less chatty in the output and stop making /R
magic.
1999-09-16 08:44:22 +00:00
green
71e6301112 Let count=-something fail, while count=0 may succeed, thus making dd(1)
useful as a seeking-tool as well as its many other uses.  Previously,
dd(1) would succeed with count=0, but wouldn't get to the point that
blocks were to be read/written. This is a more useful behavior, and
this specific case doesn't seem to be handled by POSIX.
1999-09-16 05:12:59 +00:00
lile
cc5036cafe Re-arrange the arp code so that fddi arps work properly. 1999-09-16 00:35:39 +00:00
ache
b851164515 Oops, patch applied to wrong place. 1999-09-15 18:58:33 +00:00
ache
a9e3ac28b2 fix LOCALEDIR 1999-09-15 18:55:17 +00:00
ache
424138ff45 add mdoc/locale 1999-09-15 18:52:44 +00:00
phantom
a32f60213a mdoc(7)'fy.
Pointed out by: ru
1999-09-15 18:50:39 +00:00
roberto
1895638709 wlinit() must be called to recalculate the multicast filter.
Submitted by:	Francis Dupont <Francis.Dupont@inria.fr>
1999-09-15 12:49:03 +00:00
obrien
7c6216dc7e Be slightly less verbose. 1999-09-15 11:17:59 +00:00
obrien
4abe24ed4a Sync with am-utils-6.0 => am-utils-6.0.1 changes. 1999-09-15 09:00:54 +00:00
wpaul
7a00e02e15 Dangit: mispelled TORNADO in one place. 1999-09-15 07:20:59 +00:00
wpaul
73c7197208 3Com has produced their own Linux driver for the 3c90x/3c90xB series cards.
It's GPL'ed of course, but looking over it tonight I learned of Yet Another
Fast EtherLink XL Adapter: the 3c980C server adapter. This is basically
an updated version of the 3c980 that uses the Tornado ASIC instead of the
earlier Hurricane ASIC. The only change here is to add the new PCI device
ID (0x9805) and corresponding table entries.
1999-09-15 07:19:34 +00:00
obrien
08fa45bccf Fix conflicts. 1999-09-15 05:45:17 +00:00
peter
d8cb4fd6a8 Add a hook for disabling cvs and collect a few similar options together.
(We do this on freefall as we use a tweaked /usr/bin/cvs wrapper)
1999-09-15 03:52:17 +00:00
jkh
2cd6ec69fb If enlightenment is present, gnome-session starts it automagically. 1999-09-15 02:52:56 +00:00
obrien
8acd2ed12e This commit was generated by cvs2svn to compensate for changes in r51292,
which included commits to RCS files with non-trunk default branches.
1999-09-15 02:50:52 +00:00
obrien
422815db96 Virgin import of AMD (am-utils) v6.0.1 1999-09-15 02:50:52 +00:00
obrien
751058d2da /emulation/binary compatibility/ 1999-09-15 02:25:13 +00:00
obrien
49f84ce42e /Linux emulation/Linux mode binary compatibility/ 1999-09-15 02:08:45 +00:00
peter
27eff20bc0 Fix warning: return type of main' is not int' 1999-09-15 01:58:44 +00:00
hoek
81dbec517f Don't disallow null search patterns --- they are interpreted as being
identical to the previous pattern.

Noticed-by:	Jeroen Ruigrok/Asmodai
1999-09-14 21:20:58 +00:00
jkh
5c70f9812a Don't need to add bpf anymore. 1999-09-14 18:43:35 +00:00
des
a2531970f6 Reorder. 1999-09-14 16:40:28 +00:00
des
64fe1eaad6 Fix some more disordering, as well as the description string for the
net.inet.tcp.drop_synfin sysctl, which for some mysterious reason said
"Drop TCP packets with FIN+ACK set" (instead of "...with SYN+FIN set")
1999-09-14 16:14:05 +00:00
phantom
77f7505788 rc.conf -> /etc/motd
PR:		docs/13748
1999-09-14 15:56:58 +00:00
ru
7d2b2c7102 Fix a coredump when commands in ~/.exrc prepended with addresses.
PR:		13000
1999-09-14 14:34:58 +00:00
nyan
27e206cc88 Gdc and pckbd driver don't support pnp mode. 1999-09-14 12:57:40 +00:00
sheldonh
479f480939 Correct some hard sentence breaks. Only those surrounding the previous
commit and those which cause ugly nroff output have been fixed, since
the purpose of the style guideline which they contravene is to reduce
the sizes of deltas.

Reported by:	bde
1999-09-14 11:46:04 +00:00
obrien
a64d762ec0 Foo. Maybe I should get Peter to hook ispell up in commit_prep.pl. 1999-09-14 10:38:45 +00:00
obrien
0ad46806dc Add the NIS domain to the tweakable knobs. 1999-09-14 09:15:35 +00:00
obrien
bac68c0bce The existing libxpg4.so.2.0 didn't support zh_TW.Big5 locale.
PR:		13623
Submitted by:	jtjang@gcn.net.tw
1999-09-14 08:41:09 +00:00
jkh
cf025f2949 Brutally rip more stuff out of the fixit image so that we can start
build 4.0-stapshots again.  It's still overflowing. :(
1999-09-14 04:24:29 +00:00
ru
fe9516b261 Don't call if_up() here, just set IFF_UP.
PR:		12251
Reviewed by:	wollman
1999-09-14 01:17:30 +00:00
ru
51e1ccbcc2 Adjust descriptions for if_up() and if_down().
Reviewed by:	wollman
1999-09-14 01:05:40 +00:00
ru
2262a105b6 Add comments, fix typos.
Reviewed by:	wollman
1999-09-14 00:33:23 +00:00
ru
b7f8a30410 - Describe all available message headers.
- Sync structures/constants with sources.
- Fix multiple typos.

Reviewed by:	wollman
1999-09-14 00:26:11 +00:00
ru
d019f87ad2 Align sockaddrs passed to/from the routing socket as supposed by kernel.
PR:		12847
Spotted by:	Key Teck Sin <ktsin@acm.org>
Reviewed by:	wollman
1999-09-13 23:32:53 +00:00
green
35b43c7556 Even more dd(1) cleanups! Thanks to Bruce for staying on my case until
we're done (not yet!) :)
1999-09-13 21:47:10 +00:00
phantom
852722152f Fix SEE ALSO section:
. add printenv(1)
. correct reference to "CSH introduction"

Reviewed by:	mpp
1999-09-13 19:16:47 +00:00
peter
d3310890ab The sense of probes has inverted. They return an error, rather than
true/false.  Fix ed_probe_HP_pclanp() so that it doesn't "succeed" on
non-existing hardware.

Submitted by:	Mark Hittinger <bugs@freebsd.netcom.com>
1999-09-13 19:14:43 +00:00