Commit Graph

92904 Commits

Author SHA1 Message Date
njl
763ea6d84f Note da(4) quirks being deprecated and the procedure for re-enabling them. 2003-07-29 04:40:33 +00:00
njl
30a1bdf8d0 Deprecate USB and Firewire quirks. We should now never send 6 byte commands
to such devices.  If a device fails due to this commit, add:
   options DA_OLD_QUIRKS
to the kernel config and recompile.  Then send the output of "camcontrol
inquiry da0" to scsi@freebsd.org so the quirk can be re-enabled.
2003-07-29 04:32:33 +00:00
jwd
03d7e648bd returned length can exceed the limits of type char
Submitted by:	blc@bsdwins.com
Approved by:	gad
MFC after:	1 week
2003-07-29 00:31:07 +00:00
tjr
f4b299adc0 Fix a problem that occurs when truncating files on NFSv3 mounts: we need
to set np->n_size back to the desired size again after calling
nfs_meta_setsize(), since it could end up in nfs_loadattrcache() getting
called, which would change n_size back to the value it had before the
truncate request was issued. The result of this bug is that the size info
cached in the nfsnode becomes incorrect, lseek(fd, ofs, SEEK_END) seeks
past the end of the file, stat() returns the wrong size, etc.

PR:		41792
MFC after:	2 weeks
2003-07-29 00:17:29 +00:00
simon
e669733309 * Merge index(3) and rindex(3) to index(3) since the two functions are
almost identical.
* Merge strchr(3) and strrchr(3) to strchr(3) since the two functions
  are almost identical.
* Make the wording of index(3) and strchr(3) more similar.
* mdoc(7) cleanup.

Submitted by:	SUZUKI Koichi <metal@gc5.so-net.ne.jp>, keramida, myself
PR:		docs/32054
Reviewed by:	ru
Approved by:	ceri (mentor)
2003-07-28 22:50:42 +00:00
mbr
2d36cfc14d Fix dhclient infinite loop on ro /etc/resolv.conf
Submitted by:	C J Michaels <cjm2@earthling.net>
Reviewed by:	David W. Hankins
PR:		38778
ISC-Bug:	5754
2003-07-28 22:25:20 +00:00
simon
084778ce38 Move the rescue manpage, documenting the new rescue utilities in
/rescue, from section 7 to section 8.  The old rescue.7 file has been
simply subjected to "cvs rm", as there is no history to preserve.

Update the release documentation accordingly.

Requested by:	njl, ru
Most text by:	Tim Kientzle <kientzle@acm.org>
Reviewed by:	ru, doc@
Approved by:	ceri (mentor)
2003-07-28 21:06:38 +00:00
rwatson
d2f7ae9f88 Rename VOP_RMEXTATTR() to VOP_DELETEEXTATTR() for consistency with the
kernel ACL interfaces and system call names.

Break out UFS2 and FFS extattr delete and list vnode operations from
setextattr and getextattr to deleteextattr and listextattr, which
cleans up the implementations, and makes the results more readable,
and makes the APIs more clear.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-07-28 18:53:29 +00:00
ru
c4087aa32d Pacify src/tools/tools/release/chk_dokern.sh_and_drivers.conf. 2003-07-28 18:22:07 +00:00
ru
7b7cc3655c A simple tool to sanity check the contents of release/*/dokern.sh
and release/*/drivers.conf.
2003-07-28 18:18:20 +00:00
njl
1e480ac87f Allow sleep states to be specified as S1, S2, ...
This is used by zzz(8).
2003-07-28 16:22:45 +00:00
rwatson
9bfbf98f8a When exporting file descriptor data for threads invoking the
kern.file sysctl, don't return information about processes that
fail p_cansee(td, p).  This prevents sockstat and related
programs from seeing file descriptors owned by processes not
in the same jail as the thread, as well as having implications
for MAC, etc.

This is a partial solution: it permits an information leak about
the number of descriptors in the sizing calculation (but this is
not new information, you can also get it from kern.openfiles),
and doesn't attempt to mask file descriptors based on the
properties of the descriptor, only the process referencing it.
However, it provides most of what you want under most
circumstances, without complicating the locking.

PR:	54211
Based on a patch submitted by:	Pawel Jakub Dawidek <nick@garage.freebsd.pl>
2003-07-28 16:03:53 +00:00
harti
0f7d88f255 Add support for CBR and VBR PVCs. Enhance the error handling for
the 'add pvc' command.

Submitted by:	Vincent Jardin <vjardin@wanadoo.fr>
MFC after:	2 weeks
2003-07-28 15:27:12 +00:00
mbr
a3f9f68a5c Dhclient can't block anymore during startup. Document
the 'background_dhclient' better.
2003-07-28 13:56:00 +00:00
harti
33549ec7ad Convert the atm{2,3}.sh rc scripts to normal rc.d scripts. Add support
for the harp(4) pseudo driver and for loadable native HARP drivers
(like hfa_pci).

To use harp(4) the rc variable natm_interfaces must be set to the
list of NATM interfaces to be used for HARP. These interfaces
will be brought up with ifconfig and the harp(4) will be loaded.

To use loadable native HARP drivers atm_load must be set to
the list of drivers to load.

Reviewed by:	mtm, gordon (partly)
2003-07-28 13:30:42 +00:00
mbr
df37a5270c Don't wait forever if there is no link, go to background
after 2 x polling time.
2003-07-28 13:25:04 +00:00
mbr
23f4f4ab05 Change the default for background_dhclient back to NO. It can
cause to much troubles with applications.
2003-07-28 13:09:00 +00:00
mbr
69ed05bf45 Define $FreeBSD$ at the right place. 2003-07-28 11:49:07 +00:00
peter
47f161a6d8 Make this compile on 64 bit systems again. You cannot just cast a 32 bit
int to a 64 bit pointer.  This file is already off the vendor branch.
2003-07-28 10:25:26 +00:00
des
9f8ae7ae81 DATE and PATCH are always defined, but may be empty. 2003-07-28 10:02:25 +00:00
des
df74382048 Remove redundant "targets", add NOLIBC_R and NOFORTH to environment 2003-07-28 09:51:52 +00:00
des
e7d0c5c9c6 Install experimental.rc 2003-07-28 09:49:27 +00:00
des
84032368d4 Document --dump 2003-07-28 09:48:13 +00:00
des
314a9f00b5 Revive the powerpc tinderbox that used to run on 9ball. 2003-07-28 09:46:48 +00:00
des
2c7245dc8d stanley uses a different sandbox. 2003-07-28 09:44:54 +00:00
des
f6dda36719 Don't mail out failure reports from stanley. 2003-07-28 09:43:00 +00:00
des
7d45a42749 - add a -d option which dumps the configuration and exits
- initialize single-valued configuration variables to '' rather than undef
- allow empty values in configuration files
- take care to untaint $etcdir
2003-07-28 09:42:42 +00:00
mbr
6416064bd6 Enable dhclient to poll the interface state and send only
requests if the interface has an active link. This is a
great benefit if you often change networks with your laptop
and you do not like to kill/restart dhclient all the time.
Changes are automatically detected and the link is refreshed.

The change allows us to start dhclient in background mode
Enable dhclient to poll the interface state and send only
requests if the interface has an active link. This is a
great benefit if you often change networks with your laptop
and you do not like to kill/restart dhclient all the time.
Changes are automatically detected and the link is refreshed.

The change allows us to start dhclient in background mode
while the network cable is not plugged in.

To control the polling interval, the option -i has been
introduced. It takes seconds as parameter, the minimum is
one second, the default is five seconds.

Polling is done in seconds, not microseconds, because dhclient
does internally work with timeouts in seconds.

This change will be part of the next major ISC-dhcpd release.

Tested by:	bms, imp, and many many others.
Reviewed by:	murray, eivind, dhclient folks
2003-07-28 08:30:11 +00:00
mbr
40b6665d85 Document background_dhclient. 2003-07-28 08:17:08 +00:00
mbr
ca899a0b46 Always start dhclient in the background.
Reviewed by:	mtm
2003-07-28 08:15:52 +00:00
harti
5bb0f030f2 Make atm WARNS=6 clean. The changes are mostly:
- remove some instances of __P()
 - use real prototypes and un-K&R function headers
 - constify where necessary (mostly strings and structures containing
   strings)
 - make functions and variables static that need not to be global
 - tag unused function parameters as __unused

Testing:	a fresh universe
2003-07-28 08:14:27 +00:00
njl
1cd634adc1 Add a PATH_INQ flag, PIM_NO_6_BYTE, which indicates the SIM never wishes to
receive 6 byte commands.  Add a check for this flag to da(4) and cd(4) so
that they honor it.  This is a quick workaround for many devices (especially
USB) that require da(4) quirks to operate.  The more complete approach is
to finish the new transport code which will be aware of the SCSI version a
transport implements.

MFC after:	1 day
2003-07-28 06:15:59 +00:00
alc
79bbf9b702 None of the "alloc" functions used by UMA assume that Giant is held any
longer.  (If they still need it, e.g., contigmalloc(), they acquire it
themselves.)  Therefore, we need not acquire Giant in slab_zalloc().
2003-07-28 02:29:07 +00:00
rwatson
9224d21727 auth.conf seems to be being gradually subsumed by user classes
and PAM configuration.  Remove the line concerning "auth_list"
from the template, since it's referenced only in the tinyware
password command, and only #ifdef KERBEROS, which isn't defined
in tinyware.  Add a comment about auth.conf being on the way
out the door.  The one remaining consumer of auth.conf is
crypt(3).
2003-07-28 02:28:51 +00:00
imp
86059bdf66 The LP_ETH_10_100_CF entry needs to be tagged as a DL100019.
Submitted by: Scott Renfro
2003-07-28 00:07:58 +00:00
marcel
442f943b5f Reset the per-CPU unique value at boot and clear it in the PCB of the
child when forking. This provides a consistent initial state.
Note that cpu_set_upcall() does not clear the per-CPU unique value as
it is followed by a call to set_mcontext(), which sets it accordingly.
2003-07-27 23:45:48 +00:00
alc
77428ed1a0 Make pmap_pvo_allocf() callable without Giant. 2003-07-27 20:57:53 +00:00
mbr
7223dbc585 Add -dynamic to natd if dhcp is used for the natd interface.
Kill natd in stop().

Reviewed by:	mtm
2003-07-27 20:34:30 +00:00
phk
e457974b5d Pass the file descriptor index down to vn_open.
If the method vector was replaced and we got the "special return code"
smile and trust that whatever happened below DTRT.
2003-07-27 20:09:13 +00:00
phk
b80d7fd8a0 Pass the fdidx argument from vn_open{_cred}() onto VOP_OPEN() 2003-07-27 20:05:36 +00:00
alc
fa6dd8ff58 Remove GIANT_REQUIRED from kmem_alloc(). 2003-07-27 18:31:32 +00:00
gioria
74203c0797 Some Typos fix 2003-07-27 18:10:24 +00:00
phk
d4d7ca154a Add fdidx argument to vn_open() and vn_open_cred() and pass -1 throughout. 2003-07-27 17:04:56 +00:00
phk
b40be37a17 Call the new argument "fdidx" that is more precise than "fd". 2003-07-27 17:03:20 +00:00
markm
76ba46a85a Try a lot harder to get dependancies right. This involves some ugly
looking ${.OBJDIR} work that has the up-side of actually working
in upgrade and make -jN cases.

This needs to be revisited further, and it is conceivable that
the ${.OBJDIR} stuff can be simplified, but the sheer number of
edge cases and other causes make this Hard(tm). For now, this works.
2003-07-27 16:49:10 +00:00
ume
21fd4ebaa6 ip6fw does not handle ESP correctly
PR:		kern/54874
Submitted by:	JINMEI Tatuya <jinmei@shuttle.wide.toshiba.co.jp>
MFC after:	1 week
2003-07-27 16:21:10 +00:00
tmm
6b3d530353 Respect BUS_DMA_ZERO in iommu_dvmamem_alloc(). 2003-07-27 15:19:45 +00:00
mux
82ea1f9d7e Use the BUS_DMA_ZERO flag. 2003-07-27 14:38:54 +00:00
dwmalone
41c671f8e6 Now that we can call kmem_malloc without Giant it should be safe
to do mbuf allocation without Giant, so remove the GIANT_REQUIRED
from mb_alloc in the M_TRYWAIT case.
2003-07-27 14:19:23 +00:00
nyan
17f592156d Enable the safe, harp, hatm and patm driver documentations for pc98. 2003-07-27 14:08:54 +00:00