The NetBSD Project

CVS log for src/sys/dev/dkwedge/dk.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / dkwedge

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.65 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:15 2012 UTC (6 months, 3 weeks ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-nbase, tls-maxphys-base, khorben-n900, agc-symver-base, agc-symver, HEAD
Changes since 1.64: +4 -5 lines
Diff to previous 1.64 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jun 10 17:05:19 2012 UTC (11 months, 1 week ago) by mlelstv
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.63: +32 -97 lines
Diff to previous 1.63 (colored)

Make detection of root on wedges (dk(4)) machine independent. Remove
MD code for x86, xen, sparc64.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Apr 27 18:15:55 2012 UTC (12 months, 3 weeks ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Changes since 1.62: +5 -4 lines
Diff to previous 1.62 (colored)

minor mostly cosmetical fixes: use designated type for device major
numbers, typo in comment, misuse of minor()
(the latter one is not cosmetical, but would only affect systems
with more than 256 disk wedges)

Revision 1.62 / (download) - annotate - [select for diffs], Sat Jul 30 12:08:36 2011 UTC (21 months, 3 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

Add an FSILENT flag and use it to suppress "Medium Not Present" scsipi
spam when trying to access offline drives at boot.

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:52 2011 UTC (23 months, 1 week ago) by rmind
Branch: MAIN
Changes since 1.60: +6 -6 lines
Diff to previous 1.60 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Mar 3 03:39:08 2011 UTC (2 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, bouyer-quota2-nbase
Branch point for: cherry-xenmp
Changes since 1.59: +7 -3 lines
Diff to previous 1.59 (colored)

check rawvp before doing ioctl or strategy.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Feb 28 18:28:20 2011 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.58: +18 -6 lines
Diff to previous 1.58 (colored)

Make error checking consistent, possibly fixes PR/44652.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Dec 23 14:22:03 2010 UTC (2 years, 4 months ago) by mlelstv
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.57: +6 -4 lines
Diff to previous 1.57 (colored)

Make wedges aware of underlying physical block size.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Aug 4 12:34:00 2010 UTC (2 years, 9 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.56: +16 -12 lines
Diff to previous 1.56 (colored)

Make sure to release sc_parent->dk_rawlock before calling
vn_close(sc->sc_parent->dk_rawvp). Avoids a lockdebug panic:
error: mutex_destroy: assertion failed: !MUTEX_OWNED(mtx->mtx_owner) && !MUTEX_HAS_WAITERS(mtx)
when the parent is a raidframe device.
See also:
http://mail-index.netbsd.org/tech-kern/2010/07/27/msg008612.html

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:08 2010 UTC (2 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Feb 7 16:04:31 2010 UTC (3 years, 3 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored)

d_psize routine returns a number of blocks or -1 on error.
d_dump routine returns 0 or an error code.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jan 25 14:51:03 2010 UTC (3 years, 3 months ago) by mlelstv
Branch: MAIN
Changes since 1.53: +8 -4 lines
Diff to previous 1.53 (colored)

GPTs are defined in terms of physical blocks.
- Fix reading of GPT for devices with non-512byte sectors
- Fix bounds check to use DEV_BSIZE units.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Jan 23 18:31:04 2010 UTC (3 years, 3 months ago) by bouyer
Branch: MAIN
Changes since 1.52: +5 -3 lines
Diff to previous 1.52 (colored)

struct buf::b_iodone is not called at splbio() any more.
Make sure non-MPsafe iodone callbacks raise the SPL as appropriate.
Fix buffer corruption issue I noticed in dk(4), and probable similar
issues in vnd(4) and cgd(4).

Revision 1.52 / (download) - annotate - [select for diffs], Sun Dec 27 01:37:17 2009 UTC (3 years, 4 months ago) by jakllsch
Branch: MAIN
Changes since 1.51: +22 -6 lines
Diff to previous 1.51 (colored)

Implement and use a dkminphys() that calls the parent device's minphys
function with b_dev temporarily adjusted to the parent device's dev_t.

Fixes PR/37390.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Sep 8 21:14:33 2009 UTC (3 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.50: +4 -16 lines
Diff to previous 1.50 (colored)

dkwedge_list() is currently called only from ioctl routines where
l == curlwp.  Since there is no perceived case where we'd ever want
to copy the list to non-curlwp, simplify the code a bit.
(the struct lwp * argument could probably be dropped too, but
that's another commit)

Revision 1.50 / (download) - annotate - [select for diffs], Mon Sep 7 13:59:38 2009 UTC (3 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.49: +4 -2 lines
Diff to previous 1.49 (colored)

grow some _KERNEL_POT

Revision 1.49 / (download) - annotate - [select for diffs], Sun Sep 6 16:18:55 2009 UTC (3 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.48: +69 -2 lines
Diff to previous 1.48 (colored)

Remove autoconf dependency on vfs and dk:
opendisk() -> kern/subr_disk_open.c
config_handle_wedges -> dev/dkwedge/dk.c

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 6 16:00:49 2009 UTC (3 years, 9 months ago) by haad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.47: +43 -3 lines
Diff to previous 1.47 (colored)

Add support for DIOCGDISKINFO for wedges. This fixes regression after my
DIOCGDISKINFO commit to fsck/partutil.c.

Tested by me and adegroot@.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Jul 21 19:41:00 2009 UTC (3 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: jymxensuspend-base
Changes since 1.46: +91 -31 lines
Diff to previous 1.46 (colored)

Extract a lot of code from dkwedge_del(), and move it to dkwedge_detach()
to create a comprehensive detachment hook.  Let that hook run at
shutdown.  Now, 'drvctl -d dk0' actually deletes a wedge if it is
not in-use (otherwise fails w/ EBUSY), and wedges are gracefully
detached from their "parent" at shutdown.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jul 2 00:56:48 2009 UTC (3 years, 10 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6
Changes since 1.45: +23 -10 lines
Diff to previous 1.45 (colored)

Extract subroutine dklastclose().  This is a step toward detachable
dk(4).

Revision 1.45 / (download) - annotate - [select for diffs], Tue May 12 14:19:40 2009 UTC (4 years ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.44: +6 -6 lines
Diff to previous 1.44 (colored)

struct device * -> device_t, no functional changes intended.

Revision 1.44 / (download) - annotate - [select for diffs], Tue May 12 12:12:26 2009 UTC (4 years ago) by cegger
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jan 13 13:35:53 2009 UTC (4 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.42: +6 -6 lines
Diff to previous 1.42 (colored)

g/c BUFQ_FOO() macros and use bufq_foo() directly.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Jun 17 14:53:10 2008 UTC (4 years, 11 months ago) by reinoud
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5-0, netbsd-5, matt-nb5-mips64
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (colored)

Mark a buffer `busy` in getnewbuf() when it came from the pool_cache since
its not on a free list.

Also change buf_init() to not automatically mark buffers `busy' since this
only makes sense for bufcache buffers.

Mark all buf_init'd buffers 'busy' on the places where they ought to be
flagged as such to not confuse the buffer cache.

Fixes PR 38923.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Jun 3 12:14:08 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.40: +15 -15 lines
Diff to previous 1.40 (colored)

dkwedge_read: don't place struct buf on the stack.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jun 1 11:38:26 2008 UTC (4 years, 11 months ago) by chris
Branch: MAIN
Changes since 1.39: +6 -3 lines
Diff to previous 1.39 (colored)

Call buf_destroy when finished with an on-stack struct buf.

Spotted by LOCKDEBUG, because the condvars were already initialised.

Revision 1.39 / (download) - annotate - [select for diffs], Sat May 3 08:23:41 2008 UTC (5 years ago) by plunky
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (colored)

after the "struct disk" is finished with, it should be
destroyed with disk_destroy(9) to stave off LOCKDEBUG
panics.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:48 2008 UTC (5 years ago) by martin
Branch: MAIN
Changes since 1.37: +2 -9 lines
Diff to previous 1.37 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.37 / (download) - annotate - [select for diffs], Thu Apr 10 09:31:51 2008 UTC (5 years, 1 month ago) by agc
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

Fix a minor nit in a comment

Revision 1.36 / (download) - annotate - [select for diffs], Sun Apr 6 08:33:31 2008 UTC (5 years, 1 month ago) by cegger
Branch: MAIN
Changes since 1.35: +18 -14 lines
Diff to previous 1.35 (colored)

use aprint_*_dev and device_xname

Revision 1.35 / (download) - annotate - [select for diffs], Fri Mar 21 21:54:59 2008 UTC (5 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Changes since 1.34: +5 -5 lines
Diff to previous 1.34 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Mar 4 13:51:18 2008 UTC (5 years, 2 months ago) by cube
Branch: MAIN
CVS Tags: matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Split device_t/softc.  Well, there's not much to split there, as the
device_t didn't contain the softc anyway.

This driver should be re-structured so it doesn't have to manage its own
set of softcs.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jan 30 15:42:52 2008 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.32: +4 -2 lines
Diff to previous 1.32 (colored)

Hold v_interlock when adjust v_writecount.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:37 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.31: +15 -10 lines
Diff to previous 1.31 (colored)

Merge vmlocking2 to head.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Dec 9 20:27:56 2007 UTC (5 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.30: +5 -3 lines
Diff to previous 1.30 (colored)

Merge jmcneill-pm branch.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:37 2007 UTC (5 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.29 / (download) - annotate - [select for diffs], Mon Oct 8 16:41:11 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 29 12:50:20 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.27: +3 -7 lines
Diff to previous 1.27 (colored)

It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jul 21 19:51:47 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.26: +67 -96 lines
Diff to previous 1.26 (colored)

Replace some uses of lockmgr().

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jul 9 21:00:32 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jun 24 01:43:34 2007 UTC (5 years, 10 months ago) by dyoung
Branch: MAIN
Changes since 1.24: +43 -2 lines
Diff to previous 1.24 (colored)

Extract common code from i386, xen, and sparc64, creating
config_handle_wedges() and read_disk_sectors().  On x86, handle_wedges()
is a thin wrapper for config_handle_wedges().  Share opendisk()
across architectures.

Add kernel code in support of specifying a root partition by wedge
name.  E.g., root specifications "wedge:wd0a", "wedge:David's Root
Volume" are possible.  (Patches for config(1) coming soon.)

In support of moving disks between architectures (esp. i386 <->
evbmips), I've written a routine convertdisklabel() that ensures
that the raw partition is at RAW_DISK by following these steps:

        0 If we have read a disklabel that has a RAW_PART with
          p_offset == 0 and p_size != 0, then use that raw partition.

        1 If we have read a disklabel that has both partitions 'c'
          and 'd', and RAW_PART has p_offset != 0 or p_size == 0,
          but the other partition is suitable for a raw partition
          (p_offset == 0, p_size != 0), then swap the two partitions
          and use the new raw partition.

        2 If the architecture's raw partition is 'd', and if there
          is no partition 'd', but there is a partition 'c' that
          is suitable for a raw partition, then copy partition 'c'
          to partition 'd'.

        3 Determine the drive's last sector, using either the
          d_secperunit the drive reported, or by guessing (0x1fffffff).
          If we cannot read the drive's last sector, then fail.

        4 If we have read a disklabel that has no partition slot
          RAW_PART, then create a partition RAW_PART.  Make it span
          the whole drive.

        5 If there are fewer than MAXPARTITIONS partitions,
          then "slide" the unsuitable raw partition RAW_PART, and
          subsequent partitions, into partition slots RAW_PART+1
          and subsequent slots.  Create a raw partition at RAW_PART.
          Make it span the whole drive.

The convertdisklabel() procedure can probably stand to be simplified,
but it ought to deal with all but an extraordinarily broken disklabel,
now.

i386: compiled and tested, sparc64: compiled, evbmips: compiled.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jun 16 18:11:33 2007 UTC (5 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Unwedge the previous change. Always increment the number of rawopens if the
open is successful.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 9 02:26:27 2007 UTC (5 years, 11 months ago) by dyoung
Branch: MAIN
Changes since 1.22: +43 -7 lines
Diff to previous 1.22 (colored)

Fix two bugs:

1 In dkopen(), do not leave dk_rawopens > 0 if the open ultimately
  failed for some reason.

2 Add a dkdump() implementation by Martin Husemann for writing
  system dumps to wedges.  Tiny modifications by me.  Lightly tested
  on an evbmips box.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:45 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Feb 15 16:04:12 2007 UTC (6 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.20: +4 -6 lines
Diff to previous 1.20 (colored)

dkwedge_discover: open a device as read-only.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 16 01:32:50 2006 UTC (6 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.19: +14 -14 lines
Diff to previous 1.19 (colored)

__unused removal on arguments; approved by core.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 12 01:30:57 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.18: +15 -12 lines
Diff to previous 1.18 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 18 07:47:13 2006 UTC (6 years, 8 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-splraiseipl-base
Branch point for: yamt-splraiseipl
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Typo in comment.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 24 21:57:11 2006 UTC (6 years, 8 months ago) by dbj
Branch: MAIN
CVS Tags: yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: newlock2
Changes since 1.16: +8 -8 lines
Diff to previous 1.16 (colored)

avoid diagnostic panic if both blk and chr wedge are open at the same time

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:48 2006 UTC (6 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.15 / (download) - annotate - [select for diffs], Sun May 14 21:42:27 2006 UTC (7 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

integrate kauth.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 6 17:55:43 2006 UTC (7 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, elad-kernelauth-base
Changes since 1.13: +7 -13 lines
Diff to previous 1.13 (colored)

A couple of fixes from dbj@:
- dkwedge_del(): Don't compute a minor number based on partitions, because
  wedges don't have partitions.  Just provide the unit number to vdevgone().
- dkopen(): Make sure we release all of the locks we've acquired should
  opening the parent device fail.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Apr 6 17:17:45 2006 UTC (7 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.12: +27 -4 lines
Diff to previous 1.12 (colored)

Implement dksize().

Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:13 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.11: +16 -4 lines
Diff to previous 1.11 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jan 4 10:13:05 2006 UTC (7 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.10: +4 -4 lines
Diff to previous 1.10 (colored)

- add simple functions to allocate/free a buffer for i/o.
- make bufpool static.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 11 12:21:20 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.9: +12 -12 lines
Diff to previous 1.9 (colored)

merge ktrace-lwp.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Oct 15 17:29:12 2005 UTC (7 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.8: +12 -12 lines
Diff to previous 1.8 (colored)

- change the way to specify a bufq strategy.  (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)

Revision 1.8 / (download) - annotate - [select for diffs], Wed Sep 28 18:25:19 2005 UTC (7 years, 7 months ago) by nathanw
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Set sc->sc_cfdata.cf_fstate to FSTATE_STAR rather than FSTATE_NOTFOUND
so that config_detach() doesn't panic.

(XXX this points to some disagreement between config_attach_pseudo()
and config_detach() over the correct role of pseudo-device cfdata)

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 29 22:13:33 2005 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

avoid variable shadowing.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Feb 27 00:26:59 2005 UTC (8 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)

nuke trailing whitespace

Revision 1.5 / (download) - annotate - [select for diffs], Thu Oct 28 07:07:40 2004 UTC (8 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, matt-timespec, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (colored)

move buffer queue related stuffs from buf.h to their own header, bufq.h.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 26 22:50:16 2004 UTC (8 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +14 -2 lines
Diff to previous 1.3 (colored)

Implement the DIOCCACHESYNC ioctl; we just pass it along to the parent.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 23 17:16:45 2004 UTC (8 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.2: +72 -16 lines
Diff to previous 1.2 (colored)

- Adjust minor number usage for wedges; minor number directly maps to
  unit now.  Don't pretend wedges have "partitions".
- Fix a buglet related to opening char and block devices of a wedge
  at the same time.
- Add dkwedge_set_bootwedge(), that MD code can call to set booted_device
  and booted_wedge appropriately when MD code knows the parent disk and
  the start/size of the wedge that was booted from.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Oct 15 04:42:09 2004 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.1: +116 -17 lines
Diff to previous 1.1 (colored)

Use config_attach_pseudo() to create device instances in the device
tree for created wedges.  This is necessary for setroot().

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 4 01:07:25 2004 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN

Move wedge code to a subdirectory, as suggested by Christos.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>