summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Make ftruncate a 'struct file' operation rather than a vnode operation.jhb2008-01-0714-91/+215
| | | | | | | | | | | | | | This makes it possible to support ftruncate() on non-vnode file types in the future. - 'struct fileops' grows a 'fo_truncate' method to handle an ftruncate() on a given file descriptor. - ftruncate() moves to kern/sys_generic.c and now just fetches a file object and invokes fo_truncate(). - The vnode-specific portions of ftruncate() move to vn_truncate() in vfs_vnops.c which implements fo_truncate() for vnode file types. - Non-vnode file types return EINVAL in their fo_truncate() method. Submitted by: rwatson
* Only use sockoptname() to parse socket option names for SOL_SOCKETjhb2008-01-071-4/+6
| | | | | | | requests. MFC after: 3 days Reported by: Michiel Boland michiel boland.org
* g_vfs_close() wants the sx topology lock held while executing, so justattilio2008-01-071-0/+8
| | | | | | | | | add correct locking to the operation of unmounting. This will prevent debugging kernels from panicking if mounting a non-hpfs partition (I'm not sure if this can be a problem with a successful mounting operation though). MFC: 3 days
* Fix typos and date format.brueffer2008-01-071-2/+2
|
* Forced commit to note that the previous commit log should have been:gabor2008-01-070-0/+0
| | | | - ipmi(4) appeared in FreeBSD 6.2, not in 6.3
* - ipmi(4) appeared in FreeBSD 6.2, not in 5.3gabor2008-01-071-1/+1
| | | | | | Submitted by: brix, Michael Fuckner <michael@fuckner.net> MFC after: 0 days
* Fix incorrect dependencies of zyd(4).weongyo2008-01-071-3/+3
| | | | Approved by: thompsa (mentor)
* Typo; s/relied/repliedschweikh2008-01-071-1/+1
|
* Add support for ICH8M.des2008-01-072-0/+2
| | | | | | PR: kern/119351 Submitted by: Takeharu KATO <takeharu1219@ybb.ne.jp> MFC after: 1 week
* Add the SparkLAN RT2573, found in HP s3200nkevlo2008-01-072-0/+5
| | | | Obtained from: OpenBSD
* Add a forward compatability hook so that current cvs can recognize futurepeter2008-01-071-0/+10
| | | | | | | | | | | CVSROOT/config file options that control keyword expansion. cvs-1.12 has its own $Id$ expansion controls and they're configured in CVSROOT/config rather than CVSROOT/options. The problem is that current cvs-1.11.x doesn't understand the future keywords..... Add trivial forward support for the new keywords for when cvs-1.12 hits the tree down the road. CVSROOT/options won't be going away - cvsup uses it.
* sem_post() requires to return -1 on error.davidxu2008-01-071-2/+2
|
* Fix mvec code to handle the case of the packet zonekmacy2008-01-072-4/+16
| | | | this was missed in the initial import
* Add a missing \n.cognet2008-01-071-1/+1
|
* Shrink the size of struct vm_page on amd64 and i386 by eliminatingalc2008-01-064-16/+0
| | | | | | pv_list_count from struct md_page. Ever since Peter rewrote the pv entry allocator for amd64 and i386 pv_list_count has been correctly maintained but otherwise unused.
* When the ms/req fields exceed 1 second, drop the fractions to fit more digits.phk2008-01-061-3/+12
| | | | | This is unfortunately necessary with some flash based devices which can get hundreds of seconds behind with softupdates enabled.
* mdoc and language fixes for the previous commit, also bump .Dd.brueffer2008-01-051-4/+5
|
* Use our standard section 4 SYNOPSIS, utilize .Tn and fix capitalization.brueffer2008-01-051-3/+11
|
* Clean up after previous commit (typo fixes, removed contractions,brueffer2008-01-051-6/+18
| | | | utilized .Tn and capitalized PCI).
* "redacted" replaced for clarity.grog2008-01-051-1/+1
|
* After applying LCONVPATH() to the path, do use the converted pathkib2008-01-051-9/+13
| | | | | | | | instead of original user-mode string in the linux_stat() and linux_lstat() syscalls. Tested by: Peter Holm MFC after: 3 days
* In sequential_heuristic():bde2008-01-051-13/+20
| | | | | | | | | | | - spell 16384 as 16384 and not as BKVASIZE. 16384 is (not quite) just a magic size that works well in practice. BKVASIZE should be MAXBSIZE (65536), but is 16384 because i386's don't have enough kva for it to be MAXBSIZE; 16384 works (not so well) for it for much the same reasons that it works well in the heuristic. - expand and/or add comments about this and other details. - don't explicitly inline this function. - fix some other style bugs.
* Fall back to the binary-specified interpreter (ld-elf.so.1) if thepeter2008-01-051-4/+10
| | | | | | ABI override binary isn't found. This could probably be smoother, but it is what I did in p4 change #126891 on 2007/09/27. It should solve the "ld-elf32.so.1"-in-chroot problem.
* - Restore timeslicing code for all bit SCHED_FIFO priority classes.jeff2008-01-051-10/+9
| | | | Reported by: Peter Jeremy <peterjeremy@optushome.com.au>
* - This driver will has already appeared in 6.2gabor2008-01-041-1/+1
| | | | MFC after: 0 days
* - This driver will first appear in 6.3, not 7.0gabor2008-01-047-7/+7
| | | | MFC after: 0 days
* Dummy man page for pcib. We should write a real one and I hope thisimp2008-01-042-0/+42
| | | | gets the ball rolling.
* Modernize this man page a little by describing the pci driver ofimp2008-01-041-6/+14
| | | | today, rather than details relevant only to the 3.x pci driver.
* In the vm_map_stack(), check for the specified stack region wraparound.kib2008-01-041-1/+3
| | | | | | Reported and tested by: Peter Holm Reviewed by: alc MFC after: 3 days
* Make a few messages more consistant with the others.obrien2008-01-041-2/+2
|
* more style(9)obrien2008-01-041-69/+70
|
* Enable both sbrk(2)- and mmap(2)-based memory acquisition methods byjasone2008-01-032-19/+20
| | | | | | | | | default. This has the disadvantage of rendering the datasize resource limit irrelevant, but without this change, legitimate uses of more memory than will fit in the data segment are thwarted by default. Fix chunk_alloc_mmap() to work correctly if initial mapping is not chunk-aligned and mapping extension fails.
* - loader(8) is not a part of boot(8) and is not its second stage.danger2008-01-031-5/+5
| | | | | | Reported by: Yoshihiko Sarumaru <mistral at imasy.or.jp> Reviewed by: trhodes MFC-after: 3 days
* Crib {be,le}{16,32,64}{dec,enc} from src/sys/sys/endian.h and use it insteaddes2008-01-032-57/+164
| | | | | | of home-rolled [iu][248] in the ZIP support code. Approved by: kientzle
* Add an internal utility function to simplify the many, many places wheredes2008-01-033-25/+24
| | | | | | | | the number of bytes read is actually not important as long as we have at least what we ask for. Illustrate its benefits by using it throughout the ZIP support code, except for the few cases where it doesn't apply. Approved by: kientzle
* Add missing sb_sndptr* fields to db_print_sockbuf().bz2008-01-031-5/+9
| | | | | | While here change %d to %u for u_ints. Discussed with: rwatson, kmacy
* ffs_balloc_ufsX() routines, in the case of recovering from the failedkib2008-01-031-12/+16
| | | | | | | | | | | | | allocation, free the indirect blocks before clearing the disk pointers, that could lead to the softupdate inconsistencies in the case of the machine or disk crash at the wrong time. Rearrange the recover code to do the ffs_blkfree() after the second ffs_syncvnode(), that clears the pointers chain. Proposed and reviewed by: tegge Tested by: Peter Holm MFC after: 3 weeks
* Add an access type parameter to pmap_enter(). It will be used to implementalc2008-01-0310-20/+22
| | | | | | | superpage promotion. Correct a style error in kmem_malloc(): pmap_enter()'s last parameter is a Boolean.
* Use correct function name in panic messageimp2008-01-032-2/+2
|
* Fix obsolete comment. pmap_remove_all is the function we're in.imp2008-01-031-2/+1
|
* Modernize comment about diagnostic.imp2008-01-031-2/+1
|
* - In sysctl_kern_file skip fdps with negative lastfiles. This canjeff2008-01-031-1/+2
| | | | | | | | happen if there are no files open. Accounting for these can eventually return a negative value for olenp causing sysctl to crash with a bad malloc. Reported by: Pawel Worach <pawel.worach@gmail.com>
* The break() system call takes a pointer argument, not an integer. Thisjasone2008-01-031-1/+1
| | | | change fixes output for break() on LP64 systems.
* style(9)obrien2008-01-0218-256/+251
| | | | | | | + kread is not a boolean, so check it as such + fix $FreeBSD$ Ids + denote copyrights with /*- + misc whitespace changes.
* If the disk reports that it support the Compact Flash Association commandphk2008-01-021-0/+9
| | | | | | | | | | | | set, announce BIO_DELETE capability and issue ATA_CFA_ERASE when we get one. Once we issue more BIO_DELETE, this will improve lifetime, and possibly write speed of Flash based devices which have usable flash adaptation layers. For now, about the only usage is the newfs(1) -E flag. Approved by: sos
* Follow the current fashion of gratuitously stomping into otherphk2008-01-021-36/+14
| | | | | | | | | | | | peoples code with irrelevant changes[1]: Use bus_{read|write_*() instead of bus_space_{read|write}_*() for purely stylistic reasons. Due to compiler optimizations and inlining, this is for all practical purposes without effect in the compiled code. [1] NB: Approved by: sos
* Note what is too {short,long}.obrien2008-01-021-2/+2
|
* A few whitespace fixes.jhb2008-01-021-12/+11
|
* Provide a legitimate pindex to vm_page_alloc() in pmap_growkernel()alc2008-01-022-11/+5
| | | | | | | | instead of writing apologetic comments. As it turns out, I need every kernel page table page to have a legitimate pindex to support superpage promotion on kernel memory. Correct a nearby style error: Pointers should be compared to NULL.
* Defer setting either PG_CACHED or PG_FREE until after the free pagealc2008-01-021-2/+2
| | | | | | | | queues lock is acquired. Otherwise, the state of a reservation's pages' flags and its population count can be inconsistent. That could result in a page being freed twice. Reported by: kris
OpenPOWER on IntegriCloud