Commit Graph

138620 Commits

Author SHA1 Message Date
christos
0e7146df89 Improve on the migration bit. Check if files are different, and if not,
remove the source and leave a symlink behind. Otherwise, let the user know.
2005-07-17 21:28:45 +00:00
christos
acf21e59f6 add regression test for c99 array range initializer. 2005-07-17 19:37:14 +00:00
christos
ddee551034 Handle C99 array range initializers:
type a[] = { [lo ... hi] = c }:
2005-07-17 19:35:48 +00:00
macallan
19a7332aff added tslot and dbri manpages 2005-07-17 18:54:10 +00:00
he
d3fc666f98 Make tlp_idle() not be static, so that the newsmips version of the
driver can access that function again.

Approved by thorpej
2005-07-17 18:11:36 +00:00
christos
2d45339e97 Remove a const. 2005-07-17 17:08:25 +00:00
christos
a2663103c5 Copy and link files to allow a chrooted named to start-up automatically. 2005-07-17 16:30:57 +00:00
christos
e99183b649 Add comments at the end of #endif's; Requested by Havard Eidnes. 2005-07-17 16:07:36 +00:00
yamt
01f4919e33 genfs_putpages: don't bother to clean the vnode unless VONWORKLST. 2005-07-17 16:07:19 +00:00
he
a052596ae7 Make misc.h depend on makeerrnos.sh, to ease UPDATE builds after the
latest change to support WARNS=3.
2005-07-17 15:48:28 +00:00
augustss
57ffd27623 Remove obsolete comment about ehci. 2005-07-17 14:53:56 +00:00
he
2243c46578 After christos relaxed the tty handling code, we no longer need to
set a tty as a controlling tty in order to use F_SETOWN on it, so
comment out USE_FSETOWNCTTY.
2005-07-17 12:46:51 +00:00
yamt
8af42d8d3c ensure that vnodes with dirty pages are always on syncer's queue.
- genfs_putpages: wait for i/o completion of PG_RELEASED/PG_PAGEOUT pages by
  setting "wasclean" false when encountering them.
  suggested by Stephan Uphoff in PR/24596 (1).

- genfs_putpages: write protect pages when cleaning out, if
  we're going to take the vnode off the syncer's queue.
  uvm_fault: don't write-map pages unless its vnode is already on
  the syncer's queue.

  fix PR/24596 (3) but in the different way from the suggested fix.
  (to keep our current behaviour, ie. not to require explicit msync.
  discussed on tech-kern@.)

- genfs_putpages: don't mistakenly take a vnode off the queue
  by introducing a generation number in genfs_node.
  genfs_getpages: increment the generation number.
  suggested by Stephan Uphoff in PR/24596 (2).

- add some assertions.
2005-07-17 12:27:47 +00:00
he
d36a483f83 Make this build with WARNS=3, and enable it.
Renames local variable syscall to syscall_ent to placate -Wshadow,
and adds const to struct field initialized to string literals.
2005-07-17 09:45:50 +00:00
he
92e13de495 Only define HAVE_STDBOOL_H if we are using __GNUC__ >= 3.
Fixes build problem for vax.
2005-07-17 09:22:03 +00:00
yamt
2a6dc9d02d - introduce PGO_NOBLOCKALLOC and use it for ubc mapping
to prevent unnecessary block allocations in the case that
  page size > block size.

- ufs_balloc_range: use VM_PROT_WRITE+PGO_NOBLOCKALLOC rather than
  VM_PROT_READ.
2005-07-17 09:13:35 +00:00
he
7b9dcb30de Follow up the constification of ioctlname() in ktrace.h. 2005-07-17 08:44:08 +00:00
tls
0ac3367f2a Improvements to xbdback (the domain 0 driver that provides "xbd" virtual
disks to other domains) from Jed Davis, <jld@panix.com>:

	* Issue multiple requests when necessary rather than
	  assuming that arbitrary requests can be mapped into single
	  contiguous virtual address ranges.

	* Don't assume that all data for a request is consecutive
	  in memory.  With some client OSes, it's not.

	The above two changes fix data corruption issues with Linux
	clients with certain filesystem block sizes.

	* Gracefully handle memory or pool allocation failures after
	  beginning to handle a request from the ring.

	* Merge contiguous requests to avoid the "64K turns into 44K + 20K
	  and doubles the transactions per second at the disk" problem
	  caused by the 11-page limit caused by the structure of Xen
	  ring entries.  This causes a very slight performance decrease
	  for sequential 64K I/O if the disk is not already saturated with
	  requests (about 1%) but halves the transactions per second we
	  hit the disk with -- or better.  It even compensates for bizarre
	  Linux behaviour like breaking long requests up into 5.5K pieces.

	* Probably some stuff I forgot to mention.

Disk throughput (though not latency) is now much, much closer to the
"raw hardware" case than it was before.
2005-07-17 08:23:43 +00:00
christos
553881914b WARNS=3, knf, ansi prototypes 2005-07-17 07:36:26 +00:00
skrll
16044f3d38 Support immediate binding on x86_64.
Closes PR 30570. Thanks to TAMURA Kent for testing.
2005-07-17 05:57:21 +00:00
christos
210844e5e7 Increase the default datasize limit to 2GB. 2005-07-17 05:29:54 +00:00
christos
9213de1869 catch up with verified exec defopt changes. 2005-07-17 05:22:34 +00:00
isaki
e70e55fa02 Correct a typo. 2005-07-17 05:06:57 +00:00
macallan
440d58aac9 added tslot.4 and dbri.4 2005-07-17 01:27:15 +00:00
macallan
1039a142ea add manpages for tslot and dbri, update tctrl 2005-07-17 01:00:31 +00:00
rpaulo
ca2db1fe2b If the DEC board name is not known, remove the leading whitespace in
sc_name.
This closes PR#30458.

ok'ed Jason Thorpe.
2005-07-17 00:44:13 +00:00
hubertf
673730506c Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
2005-07-17 00:08:27 +00:00
wiz
beb8063c6a Remove duplicate IPSEC_NAT_T line introduced in previous. 2005-07-16 23:20:00 +00:00
nathanw
0774992407 Add cancellation protection to pthread_once() as per the standard; if
the once routine is cancelled, the effect on once_control is as if
pthread_once() was never called.

Bug report and fix from PR lib/30734.
2005-07-16 23:14:53 +00:00
nathanw
5baf7dff84 Oops, don't include an extra bonus deadlock. 2005-07-16 23:12:02 +00:00
nathanw
ae6f5e4bba Add once3 test. 2005-07-16 23:02:24 +00:00
nathanw
5f424e4d7c Add a test for pthread_once() calling a function which is cancelled,
as described in PR lib/30734.
2005-07-16 23:02:11 +00:00
christos
15d0a3d10e Say what sbp is. 2005-07-16 22:54:34 +00:00
christos
b5890013d6 Defopt VERIFIED_EXEC* 2005-07-16 22:50:15 +00:00
christos
1510fe1543 defopt verified_exec. 2005-07-16 22:47:18 +00:00
christos
da48256d5a Don't depend on #ifdef VERIFIED_EXEC 2005-07-16 22:44:59 +00:00
christos
7fc92b0291 Explain why table is not const. 2005-07-16 22:32:36 +00:00
christos
58fc70c4d6 WARNS=3 2005-07-16 22:00:01 +00:00
christos
ba9d68d01a Add __UNCONST. 2005-07-16 21:59:12 +00:00
christos
fd2a8295bb - make input errors print the lint source line number they are called from.
- simplify a conditional.
2005-07-16 19:54:00 +00:00
christos
41d3ce981c Fix more lint problems. 2005-07-16 19:50:32 +00:00
christos
ed7ae36357 Fix linted comments and use __UNCONST. 2005-07-16 19:48:09 +00:00
christos
aeec445c81 Use CPPFLAGS for -D flags otherwise lint does not get it. 2005-07-16 19:36:25 +00:00
macallan
4adcd89999 added dbri audio driver 2005-07-16 19:02:45 +00:00
macallan
3f858509a1 add dbri audio driver 2005-07-16 19:00:39 +00:00
macallan
71b0921a17 driver for the audio part of SUNW,DBRI ISDN/audio controllers 2005-07-16 18:58:49 +00:00
christos
c13c780daf Ignore indirect references when linting.
XXX: All this is done backwards, and is a mess. Really the _foo.c files should
include the _foo function definition, not the foo.c files, like everywhere
else.
2005-07-16 18:01:38 +00:00
christos
47bfe475f7 Add missing _. 2005-07-16 18:00:40 +00:00
christos
ec94556f97 Revert previous; this needs to be fixed differently. 2005-07-16 17:53:36 +00:00
christos
94087acf22 Don't leak kernel external variables to userland. This file is included
from <sys/sysctl.h>.
2005-07-16 17:50:26 +00:00