History log of /netbsd-src/sys/dev/ccd.c (Results 151 – 175 of 192)
Revision Date Author Comments
# d72a3b2d 26-Jun-1997 kleink <kleink@NetBSD.org>

Leftover from last commit: require us to be initialized when a DIOCGDINFO
ioctl(2) is issued; the uninitialized disklabel pointer might get dereferenced
otherwise.


# 4cea35eb 26-Jun-1997 thorpej <thorpej@NetBSD.org>

In ccdioctl(), consolidate checks for "open for writes" and "initialized".


# e06bb29b 23-Jun-1997 thorpej <thorpej@NetBSD.org>

Two changes to ccdsize():
- If the partition was previously open, don't do the open/close steps.
(Sync with other disk drivers.)
- foosize()'s return value is in DEV_BSIZE units; adjust the size ob

Two changes to ccdsize():
- If the partition was previously open, don't do the open/close steps.
(Sync with other disk drivers.)
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.

show more ...


# 8f8b0d91 12-Mar-1997 mycroft <mycroft@NetBSD.org>

Remove bogus use of splhigh(), and apparently unneeded bzero().


# 9a815ed6 30-Jan-1997 thorpej <thorpej@NetBSD.org>

A performance optimization, inspired by a conversation with Thor Simon:

- Keep a freelist of component buffer headers, defaulting
to 8 headers per component (tunable with the CCDNBUF
kernel c

A performance optimization, inspired by a conversation with Thor Simon:

- Keep a freelist of component buffer headers, defaulting
to 8 headers per component (tunable with the CCDNBUF
kernel compile option).
- When allocating a component buffer, try to pull a header
off the freelist first, falling back on MALLOC() if the
freelist is empty. Use MALLOC() rather than malloc(),
because it will attempt to short-cut the allocation before
actually making a full-blown malloc() call.
- Keep statistics on how many component buffer headers have
been allocated and how many of those allocations have
resulted in freelist misses.

With these changes, I observed measurable decreases in system and
wall clock time on operations on an 8G ccd, as well as a measurable
drop in the time spent in ccdbuffer() (measured with kernel profiling).

show more ...


# bb608224 30-Jan-1997 thorpej <thorpej@NetBSD.org>

Fix OBOB in ccdopen() partition range check.
From Klaus Klein <kleink@layla.inka.de>, PR #3161.


# 7770d7c4 18-Dec-1996 thorpej <thorpej@NetBSD.org>

Compute the componet number properly so that error reporting is somewhat
meaningful. Bug noticed by Marshall Midden <m4@nts.umn.edu>.


# 86373f8c 13-Oct-1996 christos <christos@NetBSD.org>

backout kprintf changes


# 5d85fa81 10-Oct-1996 christos <christos@NetBSD.org>

printf -> kprintf, sprintf -> ksprintf


# 49c5d29e 05-May-1996 thorpej <thorpej@NetBSD.org>

Fix bogus return value in ccdopen(); it failed to indicate an error
condition if:
- ccd was not initialized
- partition did not exist


# cee6ac0c 22-Apr-1996 christos <christos@NetBSD.org>

remove sys/cpu.h


# e1930da2 30-Mar-1996 christos <christos@NetBSD.org>

Remove dependencies to dev_conf.h and the file itself.


# 2c329c90 24-Mar-1996 mrg <mrg@NetBSD.org>

%d -> %ld in a few places...


# d318abdb 07-Mar-1996 christos <christos@NetBSD.org>

prototypes for ccd audio and ncr5380


# ee8a2c00 28-Feb-1996 thorpej <thorpej@NetBSD.org>

Copyright assigned to The NetBSD Foundation.


# 91bd533c 11-Feb-1996 thorpej <thorpej@NetBSD.org>

Avoid deref'ing a bad pointer in ccdopen(). This could happen if
any partition other than RAW_PART is opened before configuring the
ccd. Bug pointed out by Matthew Green.


# fb815819 10-Feb-1996 hpeyerl <hpeyerl@NetBSD.org>

detatch this spelling mistake from this source file.


# b686e830 06-Feb-1996 thorpej <thorpej@NetBSD.org>

Fix typo, from Thorsten Frueauf <frueauf@ira.uka.de>.


# 732dd94a 01-Feb-1996 thorpej <thorpej@NetBSD.org>

Add experimental data mirroring support, derived from code written by
Satoshi Asami and Nisha Talagala. For details on using data mirroring,
see the ccd(4) manual page.


# 5b39541e 07-Jan-1996 thorpej <thorpej@NetBSD.org>

New generic disk framework. Highlights:

- New metrics handling. Metrics are now kept in the new
`struct disk'. Busy time is now stored as a timeval, and
transfer count in bytes.

- Storag

New generic disk framework. Highlights:

- New metrics handling. Metrics are now kept in the new
`struct disk'. Busy time is now stored as a timeval, and
transfer count in bytes.

- Storage for disklabels is now dynamically allocated, so that
the size of the disk structure is not machine-dependent.

- Several new functions for attaching and detaching disks, and
handling metrics calculation.

Old-style instrumentation is still supported in drivers that did it before.
However, old-style instrumentation is being deprecated, and will go away
once the userland utilities are updated for the new framework.

For usage and architectural details, see the forthcoming disk(9) manual
page.

show more ...


# 7268bf55 08-Dec-1995 thorpej <thorpej@NetBSD.org>

When unconfiguring a ccd, only free as many interleave indices as
were allocated, which may not be the same as the number of components
in the ccd. From Don Lewis <gdonl@gv.ssi1.com>. Fixes PR #182

When unconfiguring a ccd, only free as many interleave indices as
were allocated, which may not be the same as the number of components
in the ccd. From Don Lewis <gdonl@gv.ssi1.com>. Fixes PR #1820.

show more ...


# 664cb046 06-Nov-1995 thorpej <thorpej@NetBSD.org>

Fix a race condition where if a process is asleep waiting on an
exclusive lock of a ccd device while another process is unconfiguring
that same device, the first process would never awaken (unless in

Fix a race condition where if a process is asleep waiting on an
exclusive lock of a ccd device while another process is unconfiguring
that same device, the first process would never awaken (unless interrupted).

show more ...


# f85819bc 03-Nov-1995 thorpej <thorpej@NetBSD.org>

In ccdstart(), only translate the block number from partition-relative
to absolute if part != RAW_PART.


# 89d4987e 12-Oct-1995 thorpej <thorpej@NetBSD.org>

Fix bad pointer deref, memory leak, and geometry calculation, pointed
out by Jochen Pohl in PR #1588. Change the interleave index to an
array of ints rather than an array of chars to avoid losing in

Fix bad pointer deref, memory leak, and geometry calculation, pointed
out by Jochen Pohl in PR #1588. Change the interleave index to an
array of ints rather than an array of chars to avoid losing in the event
one has more than 127 components.

show more ...


# a1bc3740 09-Oct-1995 thorpej <thorpej@NetBSD.org>

Batting 1.000: fix a potential panic situation in ccdioctl() that can occur
if ccdinit() fails.


12345678