| #
0b441623 |
| 17-Oct-2003 |
lukem <lukem@NetBSD.org> |
Add user flag CCDF_NOLABEL to prevent the on-disk label from being read during CCDIOCSET. Use this when creating a new ccd to ignore any existing disklabel which is probably wrong.
|
| #
aad01611 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
| #
d5aece61 |
| 29-Jun-2003 |
fvdl <fvdl@NetBSD.org> |
Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
| #
960df3c8 |
| 28-Jun-2003 |
darrenr <darrenr@NetBSD.org> |
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various fu
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
show more ...
|
| #
2f25411d |
| 17-May-2003 |
thorpej <thorpej@NetBSD.org> |
Use a buffer queue. Primary advantage here is robustness in the face of temporary resource shortages.
|
| #
4aef0509 |
| 17-May-2003 |
thorpej <thorpej@NetBSD.org> |
Add DIOCKLABEL support. Fixes PR kern/21605 (Luke Mewburn).
|
| #
e43fecb2 |
| 10-May-2003 |
thorpej <thorpej@NetBSD.org> |
Change bounds_check_with_label() to take a pointer to the disk structure, rather than the label itself. This paves the way for some future changes.
|
| #
d91455ce |
| 02-May-2003 |
dsl <dsl@NetBSD.org> |
Change return type of readdisklabel() to const char * I hope I've found all the correct places!
|
| #
bd99e342 |
| 21-Mar-2003 |
dsl <dsl@NetBSD.org> |
Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
|
| #
eb14e866 |
| 25-Feb-2003 |
thorpej <thorpej@NetBSD.org> |
Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and use it. This fixes a few places where either b_dep or b_interlock were not properly initialized.
|
| #
338f31f5 |
| 05-Feb-2003 |
pk <pk@NetBSD.org> |
Make the buffer cache code MP-safe.
|
| #
4e0e5333 |
| 25-Jan-2003 |
kleink <kleink@NetBSD.org> |
Fix further printf format warnings for DEBUG, in the wake of daddr_t having changed.
|
| #
603098b9 |
| 01-Nov-2002 |
mrg <mrg@NetBSD.org> |
implement separate read/write disk statistics: - disk_unbusy() gets a new parameter to tell the IO direction. - struct disk_sysctl gets 4 new members for read/write bytes/transfers. when processin
implement separate read/write disk statistics: - disk_unbusy() gets a new parameter to tell the IO direction. - struct disk_sysctl gets 4 new members for read/write bytes/transfers. when processing hw.diskstats, add the read&write bytes/transfers for the old combined stats to attempt to keep backwards compatibility.
unfortunately, due to multiple bugs, this will cause new kernels and old vmstat/iostat/systat programs to fail. however, the next time this is change it will not fail again.
this is just the kernel portion.
show more ...
|
| #
e0cc03a0 |
| 23-Oct-2002 |
jdolecek <jdolecek@NetBSD.org> |
merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes
merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
show more ...
|
| #
77a6b82b |
| 06-Sep-2002 |
gehenna <gehenna@NetBSD.org> |
Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant st
Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
show more ...
|
| #
06de4264 |
| 01-Jun-2002 |
lukem <lukem@NetBSD.org> |
SIMPLEQ rototill: - implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n), this mirrors the functionality of SLIST_REMOVE() (the other singly-linked list type) and FreeBSD's STAILQ_
SIMPLEQ rototill: - implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n), this mirrors the functionality of SLIST_REMOVE() (the other singly-linked list type) and FreeBSD's STAILQ_REMOVE() - remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD(). this mirrors the functionality of SLIST_REMOVE_HEAD() (the other singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD() - remove notes about SIMPLEQ not supporting arbitrary element removal - use SIMPLEQ_FOREACH() instead of home-grown for loops - use SIMPLEQ_EMPTY() appropriately - use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly - reorder manual page; be consistent about how the types are listed - other minor cleanups
show more ...
|
| #
a180cee2 |
| 08-Mar-2002 |
thorpej <thorpej@NetBSD.org> |
Pool deals fairly well with physical memory shortage, but it doesn't deal with shortages of the VM maps where the backing pages are mapped (usually kmem_map). Try to deal with this:
* Group all inf
Pool deals fairly well with physical memory shortage, but it doesn't deal with shortages of the VM maps where the backing pages are mapped (usually kmem_map). Try to deal with this:
* Group all information about the backend allocator for a pool in a separate structure. The pool references this structure, rather than the individual fields. * Change the pool_init() API accordingly, and adjust all callers. * Link all pools using the same backend allocator on a list. * The backend allocator is responsible for waiting for physical memory to become available, but will still fail if it cannot callocate KVA space for the pages. If this happens, carefully drain all pools using the same backend allocator, so that some KVA space can be freed. * Change pool_reclaim() to indicate if it actually succeeded in freeing some pages, and use that information to make draining easier and more efficient. * Get rid of PR_URGENT. There was only one use of it, and it could be dealt with by the caller.
From art@openbsd.org.
show more ...
|
| #
cf839323 |
| 13-Jan-2002 |
tsutsui <tsutsui@NetBSD.org> |
Call malloc(9) with M_ZERO flag instead of memset() after malloc().
|
| #
2bbe2de6 |
| 13-Nov-2001 |
lukem <lukem@NetBSD.org> |
add RCSIDs
|
| #
539f3bcc |
| 05-Aug-2001 |
jdolecek <jdolecek@NetBSD.org> |
change ccio_ndisks and sc_nccdisks of struct ccd_ioctl from int to u_int introduce hard limit on number of disks which can be contcatenated togetger, CCD_MAXNDISKS
|
| #
c8b4ac1b |
| 07-Jul-2001 |
thorpej <thorpej@NetBSD.org> |
bcopy -> memcpy bzero -> memset
|
| #
d040bd59 |
| 08-Jan-2001 |
fvdl <fvdl@NetBSD.org> |
Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL when the number of partitions is > OLDMAXPARTITIONS. This is better than silently truncating the label (don't want to silently throw aw
Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL when the number of partitions is > OLDMAXPARTITIONS. This is better than silently truncating the label (don't want to silently throw away partitions when using an old disklabel binary on a label with > 8 partitions). From Enami Tsugutomo.
show more ...
|
| #
e2d1c1f9 |
| 07-Jan-2001 |
fvdl <fvdl@NetBSD.org> |
Adapt all disk devices in MI directories to handle ODIOC* calls for ports that have bumped MAXPARTITIONS (and thus define __HAVE_OLD_DISKLABEL).
|
| #
07702f68 |
| 05-Apr-2000 |
enami <enami@NetBSD.org> |
Introduce new filesystem type FS_CCD so that an operator can mark the ccd component partition. Note that the ccd driver still allows partitions of any types as components since an on-disk BSD diskla
Introduce new filesystem type FS_CCD so that an operator can mark the ccd component partition. Note that the ccd driver still allows partitions of any types as components since an on-disk BSD disklabel isn't available on some port.
show more ...
|
| #
169ac5b3 |
| 30-Mar-2000 |
augustss <augustss@NetBSD.org> |
Remove register declarations.
|