The NetBSD Project

CVS log for src/sys/dev/dksubr.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.114.6.1: download - view: text, markup, annotated - select for diffs
Sat Aug 2 05:56:30 2025 UTC (15 months, 2 weeks ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +7 -6 lines
Sync with HEAD

Revision 1.109.2.3: download - view: text, markup, annotated - select for diffs
Thu Feb 20 19:44:33 2025 UTC (20 months, 3 weeks ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-5-RELEASE
Diff to: previous 1.109.2.2: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.2.2: +3 -2 lines
Pull up following revision(s) (requested by jakllsch in ticket #1936):

	sys/dev/dksubr.c: revision 1.115

Prevent leakage of 4 bytes of stack data via return of uninitialized b_error.

Revision 1.113.16.2: download - view: text, markup, annotated - select for diffs
Thu Feb 20 19:41:54 2025 UTC (20 months, 3 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-2-RELEASE
Diff to: previous 1.113.16.1: preferred, colored; branchpoint 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113.16.1: +3 -2 lines
Pull up following revision(s) (requested by jakllsch in ticket #1051):

	sys/dev/dksubr.c: revision 1.115

Prevent leakage of 4 bytes of stack data via return of uninitialized b_error.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Tue Feb 18 17:09:34 2025 UTC (20 months, 3 weeks ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, HEAD
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +3 -3 lines
Allowing dump to a RAID partition (i.e. a raid(4) component).
Fixes PR 59024

Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu Feb 6 20:11:46 2025 UTC (21 months, 1 week ago) by jakllsch
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +4 -4 lines
fix debug printf in dk_discard()

Revision 1.116: download - view: text, markup, annotated - select for diffs
Thu Feb 6 20:10:25 2025 UTC (21 months, 1 week ago) by jakllsch
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +3 -3 lines
off_t is closer to long than it is to unsigned int; so use lmin()
rather than uimin()

Avoids incorrectling telling dk_translate() we're trying to do nothing.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Thu Feb 6 20:07:19 2025 UTC (21 months, 1 week ago) by jakllsch
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -2 lines
Prevent leakage of 4 bytes of stack data via return of uninitialized b_error.
eVS: ----------------------------------------------------------------------

Revision 1.113.16.1: download - view: text, markup, annotated - select for diffs
Fri Sep 20 11:02:23 2024 UTC (2 years, 1 month ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +9 -16 lines
Pull up following revision(s) (requested by rin in ticket #888):

	sys/dev/dksubr.c: revision 1.114

Move the rnd_add_uint32 outside the lock and get rid of dk_done1() suggested
by riastradh@

Revision 1.114: download - view: text, markup, annotated - select for diffs
Tue Jul 11 23:26:41 2023 UTC (3 years, 4 months ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base
Branch point for: perseant-exfatfs
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +9 -16 lines
Move the rnd_add_uint32 outside the lock and get rid of dk_done1() suggested
by riastradh@

Revision 1.112.8.1: download - view: text, markup, annotated - select for diffs
Sat Apr 17 17:26:18 2021 UTC (5 years, 7 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112: +6 -3 lines
Sync with HEAD.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Apr 15 00:32:50 2021 UTC (5 years, 7 months ago) by rin
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +6 -3 lines
dk_start(): retry device-dependent start() routine later, also when it
returns ENOMEM in addition to EAGAIN.

Device-dependent start() routine may allocate buffer directly, or via
bus_dma(9) API (some implementations for bus_dma(9) like alpha allocate
memory internally).

If these attempts fail with ENOMEM, this is not a disk error, therefore
we must retry later, as already done for EAGAIN.

Revision 1.102.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:18 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.102.2.2: preferred, colored; branchpoint 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102.2.2: +7 -0 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.102.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:02 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.102.2.1: preferred, colored; branchpoint 1.102: preferred, colored
Changes since revision 1.102.2.1: +7 -65 lines
Merge changes from current as of 20200406

Revision 1.109.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 21 16:00:39 2020 UTC (6 years, 7 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.109.2.1: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.1: +13 -3 lines
Apply patch, requested by riastradh in ticket #795, to keep ABI compatibility.

Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 21 15:52:09 2020 UTC (6 years, 7 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +7 -5 lines
Pull up following revision(s) (requested by riastradh in ticket #795):

	sys/dev/dksubr.c: revision 1.112
	sys/arch/xen/xen/xbd_xenbus.c: revision 1.95
	sys/dev/scsipi/sd.c: revision 1.328
	sys/dev/dkvar.h: revision 1.32
	sys/dev/ld.c: revision 1.109
	sys/dev/cgd.c: revision 1.120
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.380
	sys/dev/ata/wd.c: revision 1.458

Add a flag to dk_dump for virtual disk devices.

If a disk is backed by a physical medium other than itself, such as
cgd(4), then it passes DK_DUMP_RECURSIVE to disable the recursion
detection for dk_dump.

If, however, a device represents a physical medium on its own, such
as wd(4), then it passes 0 instead.

With this, I can now dump to dk on cgd on dk on wd.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Sun Mar 1 03:21:54 2020 UTC (6 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Branch point for: thorpej-cfargs
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +7 -5 lines
Add a flag to dk_dump for virtual disk devices.

If a disk is backed by a physical medium other than itself, such as
cgd(4), then it passes DK_DUMP_RECURSIVE to disable the recursion
detection for dk_dump.

If, however, a device represents a physical medium on its own, such
as wd(4), then it passes 0 instead.

With this, I can now dump to dk on cgd on dk on wd.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Sun Dec 8 12:15:24 2019 UTC (6 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +0 -60 lines
Drop now unused dk_lookup function.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Sat Oct 5 05:28:44 2019 UTC (7 years, 1 month ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +8 -2 lines
Bail when dkdriver hasn't been initialized. This can happen when
attachment failed or when it hasn't finished yet.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Fri Jun 28 14:56:46 2019 UTC (7 years, 4 months ago) by jmcneill
Branches: MAIN
CVS tags: netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -2 lines
Store a reference to the CPU that submitted the I/O request with the
request itself.

Revision 1.102.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:04 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +33 -20 lines
Sync with HEAD

Revision 1.108: download - view: text, markup, annotated - select for diffs
Sun Apr 21 11:45:08 2019 UTC (7 years, 6 months ago) by maya
Branches: MAIN
CVS tags: phil-wifi-20190609
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -3 lines
wether -> whether

Revision 1.97.2.3: download - view: text, markup, annotated - select for diffs
Fri Apr 5 08:40:19 2019 UTC (7 years, 7 months ago) by msaitoh
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.97.2.2: preferred, colored; branchpoint 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97.2.2: +3 -2 lines
Pull up following revision(s) (requested by martin in ticket #1223):
	sys/sys/dkio.h: revision 1.25
	sys/kern/subr_disk.c: revision 1.123
	sys/dev/dksubr.c: revision 1.107
	sys/dev/ccd.c: revision 1.179
	sys/dev/ofw/ofdisk.c: revision 1.53
Add a disk ioctl DIOCRMWEDGES to remove all wedges of a given disk
(if not busy).

Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Mar 27 19:13:34 2019 UTC (7 years, 7 months ago) by martin
Branches: MAIN
CVS tags: isaki-audio2-base, isaki-audio2
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +3 -2 lines
Add a disk ioctl DIOCRMWEDGES to remove all wedges of a given disk
(if not busy).

Revision 1.101.2.4: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:25 2019 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.101.2.3: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.2.3: +27 -15 lines
Synch with HEAD

Revision 1.106: download - view: text, markup, annotated - select for diffs
Mon Jan 7 22:35:55 2019 UTC (7 years, 10 months ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3 lines
fix the disklabel sanity check coversion for case when both disklabel
and disk geometry are > DEV_BSIZE, such as fictitious cd(4) disklabel

still part of PR kern/53833

Revision 1.105: download - view: text, markup, annotated - select for diffs
Mon Jan 7 21:04:35 2019 UTC (7 years, 10 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +27 -15 lines
convert the sector counts for label sanity checks to use same unit (DEV_BSIZE),
so that the check is meaningful if disklabel sector size and disk geometry
sector size differ - for example 512 disklabel vs 2048 for sparc cd(4)

conversion assumes that the sector sizes are multiples of DEV_BSIZE (512)

fixes kern/53833 by Andreas Gustafsson

Note: the checks are executed #ifdef DIAGNOSTIC, that's why nothing
is printed by 8.0 kernel, or anything built from release branches

Revision 1.97.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 17:13:07 2018 UTC (7 years, 11 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.97.2.1: preferred, colored; branchpoint 1.97: preferred, colored
Changes since revision 1.97.2.1: +4 -4 lines
Pull up following revision(s) (requested by bouyer in ticket #1105):
	sys/dev/dksubr.c: revision 1.104
rnd_add_uint32() doens't support concurent calls for the same rnd_source,
call it with dksc->sc_iolock held.

Revision 1.101.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:30 2018 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.101.2.2: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.2: +4 -4 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sat Nov 24 18:09:13 2018 UTC (7 years, 11 months ago) by bouyer
Branches: MAIN
CVS tags: pgoyette-compat-1226, pgoyette-compat-1126
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +4 -4 lines
rnd_add_uint32() doens't support concurent calls for the same rnd_source,
call it with dksc->sc_iolock held.

Revision 1.101.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:55:48 2018 UTC (8 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.101.2.1: preferred, colored; branchpoint 1.101: preferred, colored
Changes since revision 1.101.2.1: +4 -4 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:30 2018 UTC (8 years, 2 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -4 lines
Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.101.2.1: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:04 2018 UTC (8 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +40 -18 lines
Sync with HEAD

Revision 1.102: download - view: text, markup, annotated - select for diffs
Sat May 12 10:33:06 2018 UTC (8 years, 6 months ago) by mlelstv
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +40 -18 lines
Support dump on wedges.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Dec 4 22:15:52 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -2 lines
add KASSERT() just before setting sc_deferred, to ensure this does
not trigger problem in PR kern/52769

Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:58 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.45.2.2: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.2: +530 -179 lines
update from HEAD

Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Oct 29 09:44:17 2017 UTC (9 years ago) by mlelstv
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +18 -4 lines
Use driver specific label code as fallback. This fixes the UDF label for CDs.

Revision 1.97.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 1 09:59:10 2017 UTC (9 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +28 -15 lines
Pull up following revision(s) (requested by mlelstv in ticket #261):
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.32
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.33
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.34
	sys/dev/sdmmc/sdmmc_mem.c: revision 1.62
	sys/dev/i2o/ld_iop.c: revision 1.39
	sys/dev/ld.c: revision 1.102
	sys/dev/ld.c: revision 1.103
	sys/dev/dksubr.c: revision 1.98
	sys/dev/dksubr.c: revision 1.99
	sys/dev/sdmmc/sdmmcvar.h: revision 1.29
	sys/dev/ic/ld_nvme.c: revision 1.17
	sys/dev/ldvar.h: revision 1.31
	sys/dev/ldvar.h: revision 1.32
	sys/dev/ic/ld_cac.c: revision 1.31
	sys/dev/pci/ld_virtio.c: revision 1.16
While ld(4) is MP safe, many backends are not.
Add a flag for backends that are MP safe. Take KERNEL_LOCK when calling
into a backend that doesn't have the flag set. Do the same for the
discard routine.
Fixes PR 52462.
Defer sdmmc discard operations to the sdmmc task queue. Fixes a panic
introduced by ld.c r1.102.
validate length for discard operation and split operation when byte length
doesn't fit into 'int'.
make the sc_discard interface for the ld backend asynchronous and
signal completion through new callback lddiscardend. Use a standard
struct buf to pass disk address and range instead of two off_t values.
make lddiscard synchronous again. This is a requirement of the current
ffs discard code.
Initialize error also in the case where len=0, which just succeeds.
while here, assert that the len is indeed non-negative. this is already
confirmed by sys_fdiscard, but let's be sure.
reported by: GCC, but with different compile flags

Revision 1.54.2.10: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:00 2017 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.9: preferred, colored; branchpoint 1.54: preferred, colored; next MAIN 1.55: preferred, colored
Changes since revision 1.54.2.9: +50 -25 lines
Sync with HEAD

Revision 1.99: download - view: text, markup, annotated - select for diffs
Thu Aug 24 11:26:32 2017 UTC (9 years, 2 months ago) by maya
Branches: MAIN
CVS tags: nick-nhusb-base-20170825
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +6 -3 lines
Initialize error also in the case where len=0, which just succeeds.
while here, assert that the len is indeed non-negative. this is already
confirmed by sys_fdiscard, but let's be sure.

reported by: GCC, but with different compile flags

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sun Aug 13 22:23:16 2017 UTC (9 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +25 -15 lines
validate length for discard operation and split operation when byte length
doesn't fit into 'int'.

Revision 1.96.4.1: download - view: text, markup, annotated - select for diffs
Tue May 2 03:19:18 2017 UTC (9 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.96: preferred, colored; next MAIN 1.97: preferred, colored
Changes since revision 1.96: +13 -8 lines
Sync with HEAD - tag prg-localcount2-base1

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Apr 27 17:07:22 2017 UTC (9 years, 6 months ago) by jdolecek
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +13 -8 lines
do not attach nvme ld as randomness source - device is too fast, it overwhelms
the rndq handling code, and causes system crashes; gathering rnd there is
also bad idea from performance perspective

Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:44 2017 UTC (9 years, 6 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94: +13 -6 lines
Sync with HEAD

Revision 1.88.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:27 2017 UTC (9 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.88.2.2: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.2.2: +13 -6 lines
Sync with HEAD

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Mar 5 23:07:12 2017 UTC (9 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -1 lines
Enhance disk metrics by calculating a weighted sum that is incremented
by the number of concurrent I/O requests. Also introduce a new disk_wait()
function to measure requests waiting in a bufq.
iostat -y now reports data about waiting and active requests.

So far only drivers using dksubr and dk, ccd, wd and xbd collect data about
waiting requests.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Feb 25 15:19:00 2017 UTC (9 years, 8 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +6 -3 lines
pacify disklabel validation message

Revision 1.54.2.9: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:26 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.8: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.8: +41 -26 lines
Sync with HEAD

Revision 1.88.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:31 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.88.2.1: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.1: +51 -26 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Dec 22 13:42:14 2016 UTC (9 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +35 -25 lines
Fix race condition in dksubr, where a dk_start from another thread
or interrupt was ignored while the queue was processed.

Bump kernel revision for changed dk_softc.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Dec 8 12:22:56 2016 UTC (9 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +8 -3 lines
invoke optional d_label callback to give the driver the possibility
to adjust the label with driver specific data.

Revision 1.54.2.8: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:01 2016 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.7: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.7: +12 -2 lines
Sync with HEAD

Revision 1.92: download - view: text, markup, annotated - select for diffs
Mon Nov 28 08:42:20 2016 UTC (9 years, 11 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20161204
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +12 -2 lines
Extend dkdriver interface with a d_firstopen function. This is called
by dk_open() for the first opener and mirrors the use of the d_lastclose
callback.

Bump kernel version for the interface change.

Revision 1.88.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:08 2016 UTC (10 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3 lines
Sync with HEAD

Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Oct 24 17:14:27 2016 UTC (10 years ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-localcount-20161104
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +14 -15 lines
revert 1.90 of dksubr.c and change sc_deferred back to simple pointer; the
global sc_busy flag guards against race so it's not actually necessary, and
this place is unlikely to need to be parallelized in near future

discussed with mlelstv@

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sat Oct 22 22:32:33 2016 UTC (10 years ago) by jdolecek
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +17 -16 lines
change sc_deferred to TAILQ (reusing bufq b_actq) to avoid possible buf leak
for MPSAFE drivers

Revision 1.54.2.7: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:39 2016 UTC (10 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.6: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.6: +4 -3 lines
Sync with HEAD

Revision 1.89: download - view: text, markup, annotated - select for diffs
Wed Sep 14 23:05:05 2016 UTC (10 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20161004
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3 lines
Set b_resid in error path.

Revision 1.54.2.6: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:01 2016 UTC (10 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.5: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.5: +14 -10 lines
Sync with HEAD

Revision 1.88: download - view: text, markup, annotated - select for diffs
Mon Jun 27 18:27:51 2016 UTC (10 years, 4 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +10 -5 lines
CID 1362902: forward null
CID 136290{3,4}: missing break

Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Jun 26 07:22:15 2016 UTC (10 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +7 -8 lines
Avoid NULL deref in case no bufq has been set.

Revision 1.54.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:08 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.4: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.4: +3 -2 lines
Sync with HEAD

Revision 1.86: download - view: text, markup, annotated - select for diffs
Mon Jan 4 10:02:15 2016 UTC (10 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -2 lines
erase dangling pointer to prevent reuse

Revision 1.54.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:48 2015 UTC (10 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.3: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.3: +108 -29 lines
Sync with HEAD (as of 26th Dec)

Revision 1.85: download - view: text, markup, annotated - select for diffs
Mon Dec 21 12:33:12 2015 UTC (10 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +52 -4 lines
support deferral of diskstart to a separate thread.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Mon Dec 21 12:30:29 2015 UTC (10 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +9 -2 lines
more sanity checks

Revision 1.83: download - view: text, markup, annotated - select for diffs
Tue Dec 8 20:36:14 2015 UTC (10 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3 lines
Replace DIOCGPART -> DIOCGPARTINFO which returns the data needed instead of
pointers.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Nov 28 14:37:49 2015 UTC (10 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +4 -3 lines
bounds check requires consistent units, i.e. DEV_BSIZE.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Fri Oct 23 01:34:22 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +3 -3 lines
remove extra quote

Revision 1.80: download - view: text, markup, annotated - select for diffs
Fri Oct 23 01:06:20 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -4 lines
fix this differently.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Oct 23 00:33:13 2015 UTC (11 years ago) by knakahara
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +3 -3 lines
fix build failure on i386.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Thu Oct 22 19:36:04 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +8 -8 lines
fix constant name

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Oct 21 21:43:46 2015 UTC (11 years ago) by christos
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +46 -23 lines
Fix dumping code (dk_dump):
    - set DKF_TAKEDUMP on attach, otherwise we can never dump
    - add DKF_DUMP debugging
    - use __func__ instead of hard-coding names
    - only allow dumps on swap partitions

Revision 1.54.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:56 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.2: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.2: +197 -62 lines
Sync with HEAD

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Aug 28 17:41:49 2015 UTC (11 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +10 -5 lines
move entropy gathering into dksubr.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Aug 28 05:49:31 2015 UTC (11 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +8 -2 lines
Prevent race condition where two threads can defer a buffer.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Aug 27 05:51:50 2015 UTC (11 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +56 -17 lines
Make dksubr use a spin-mutex again, since some drivers still call dk_done
from hardware interrupt. Instead, release mutex while calling start routine.

The buffer peek/use/get sequence which can no longer be atomic. So consume
the buffer directly and on error privately save and retry the buffer later.
The dk_drain function is used to flush such a deferred buffer together with
the buffer queue.
Adjust drivers to use dk_drain.

Fix an error path where dk_done was called while the lock was already held.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Aug 23 07:47:52 2015 UTC (11 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3 lines
An adaptive mutex is sufficient, the data structures are accessed
by regular threads and by the biodone softint.

This allows diskstart routines to sleep (like cgd).

Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Aug 18 21:26:16 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +13 -9 lines
only touch b_resid on error.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Aug 16 18:00:03 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +124 -46 lines
Two changes to the dksubr interface.

- d_diskstart callback now processes a single buffer only.
  The new wrapper function dk_start processes the queue,
  performs other buffer handling and also provides locking
  for the the data structures.

- add d_discard callback to handle device specific function inside
  the new dk_discard helper function.

Replace splbio with mutex to protect queue and disk structure.
Refactor common code in dk_strategy and dk_discard into dk_translate.

Adjust and simplify ld(4), cgd(4) and xbd(4) drivers accordingly.

ld(4) now becomes MP_SAFE.

Bump kernel version.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Aug 16 17:28:28 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -2 lines
require write access to delete a wedge

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Aug 16 17:26:16 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -8 lines
move FWRITE checks to a common place

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Aug 2 07:25:40 2015 UTC (11 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +5 -3 lines
fix diskerr message, it needs the driver name, not the device unit name.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Wed Jul 22 10:32:16 2015 UTC (11 years, 3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +6 -6 lines
Trailing whitespace.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Jul 19 08:05:24 2015 UTC (11 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +11 -3 lines
Handle non-DEV_BSIZE sectors.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Jul 12 05:57:06 2015 UTC (11 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -5 lines
remove duplicate variable initializations.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Jul 11 09:45:16 2015 UTC (11 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -5 lines
Mark disklabel only invalid on the last close. Existing openers might see
temporarily invalid data while it is re-read.

Revision 1.54.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:06 2015 UTC (11 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54.2.1: preferred, colored; branchpoint 1.54: preferred, colored
Changes since revision 1.54.2.1: +150 -51 lines
Sync with HEAD

Revision 1.51.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 1 19:19:44 2015 UTC (11 years, 5 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.51.2.2: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.2.2: +2 -17 lines
Pull up following revision(s) (requested by jnemeth in ticket #775):
	share/man/man9/disk.9: revision 1.37
	sys/kern/subr_disk.c: revisions 1.104, 1.105
	sys/dev/dksubr.c: revision 1.56
	sys/sys/dkio.h: revision 1.21
Implement DIOCGMEDIASIZE and DIOCGSECTORSIZE from FreeBSD.
--
clear error for new ioctls.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat May 9 13:07:20 2015 UTC (11 years, 6 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +6 -7 lines
CID 1297229: use strlcpy

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat May 9 11:53:34 2015 UTC (11 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines
CID 1297229: Memory - illegal accesses  (BUFFER_SIZE_WARNING)

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue May 5 21:52:10 2015 UTC (11 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +6 -3 lines
warn about labels only when built with DIAGNOSTIC

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat May 2 08:00:08 2015 UTC (11 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +139 -42 lines
Merge dk_intf and dkdriver interfaces.
Merge common disk driver functionality in ld.c with dksubr.c.
Adjust the two previous users of dk_intf (cgd and xbd) to
the changes.

bump kernel version to 7.99.14

Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri May 1 12:30:28 2015 UTC (11 years, 6 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
correctly return -1 on error in dk_size

Revision 1.54.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:08 2015 UTC (11 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +43 -92 lines
Sync with HEAD

Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Dec 31 19:52:05 2014 UTC (11 years, 10 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -22 lines
make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Dec 31 17:06:48 2014 UTC (11 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +10 -45 lines
Centralize wedge ioctls in disk_ioctl.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Dec 29 18:41:20 2014 UTC (11 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +0 -15 lines
Implement DIOCGMEDIASIZE and DIOCGSECTORSIZE from FreeBSD.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Dec 29 12:03:39 2014 UTC (11 years, 10 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +35 -15 lines
align dk_strategy with checks from ld.c

Revision 1.51.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 11 10:42:22 2014 UTC (12 years ago) by martin
Branches: netbsd-7
Diff to: previous 1.51.2.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.1: +17 -10 lines
Pull up following revision(s) (requested by mlelstv in ticket #202):
	sys/dev/ccd.c: revision 1.153
	sys/dev/ccd.c: revision 1.154
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.313
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.314
	sys/dev/ld.c: revision 1.77
	sys/dev/vnd.c: revision 1.233
	sys/dev/dksubr.c: revision 1.52
	sys/dev/dksubr.c: revision 1.53
clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.
No longer warn about differences bewteen disk size and total sector count
in disklabel when the latter is just clamped to the maximum.

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 11 10:36:41 2014 UTC (12 years ago) by martin
Branches: netbsd-7
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +12 -2 lines
Pull up following revision(s) (requested by mlelstv in ticket #201):
	sbin/dkctl/dkctl.8: revision 1.24
	sbin/dkctl/dkctl.8: revision 1.25
	sys/dev/scsipi/sd.c: revision 1.310
	sys/dev/ata/wd.c: revision 1.415
	sbin/dkctl/dkctl.c: revision 1.21
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.315
	sys/dev/ld.c: revision 1.78
	sys/dev/vnd.c: revision 1.234
	sys/dev/dksubr.c: revision 1.54
	sys/sys/dkio.h: revision 1.20
	sys/dev/dkwedge/dk.c: revision 1.74
Add ioctl to autodiscover wedges.
Implement DIOCMWEDGES ioctl that triggers wedge autodiscovery.
Also fix a reference counting bug and clean up some code.
support DIOCMWEDGES ioctl.
Add 'makewedges' option to autodiscover wedges from a changed label.
New sentence, new line. Bump date for previous.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Nov 4 07:51:54 2014 UTC (12 years ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +12 -2 lines
support DIOCMWEDGES ioctl.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Oct 11 12:36:25 2014 UTC (12 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +12 -8 lines
No longer warn about differences bewteen disk size and total sector count
in disklabel when the latter is just clamped to the maximum.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Oct 11 12:01:27 2014 UTC (12 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -4 lines
clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.

Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:35 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.1: +37 -37 lines
Rebase to HEAD as of a few days ago.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:50 2014 UTC (12 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +20 -39 lines
Rebase.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Jun 14 07:39:00 2014 UTC (12 years, 5 months ago) by hannken
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +19 -12 lines
Change dk_lookup() to return an anonymous vnode not associated with
any file system.  Change all consumers of dk_lookup() to get the
device from "v_rdev" instead of VOP_GETATTR() as specfs does not
support VOP_GETATTR().  Devices obtained with dk_lookup() will no
longer disappear on forced unmounts.

Fix for PR kern/48849 (root mirror raid fails on shutdown)

Welcome to 6.99.44

Revision 1.42.14.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 09:17:52 2014 UTC (12 years, 5 months ago) by sborrill
Branches: netbsd-6
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +9 -29 lines
Pull up the following revisions(s) (requested by bouyer in ticket #1075):
	sys/arch/xen/xen/xbd_xenbus.c:	revision 1.63 via patch
	sys/dev/cgd.c:			revision 1.87 via patch
	sys/dev/dksubr.c:		revision 1.50 via patch
	sys/dev/dkvar.h:		revision 1.19 via patch

Avoid xbd(4) reordering requests, which, depending on the underlying
hardware, can badly affect write performances. This can give up to a 5x
performance gain in sequencial writes.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun May 25 19:23:49 2014 UTC (12 years, 5 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -29 lines
As proposed in
https://mail-index.netbsd.org/tech-kern/2014/05/21/msg017098.html
remove dk_start() and dk_iodone() from dksubr.c and move the related code
to the underlying driver.
This increase complexity only marginally: the underlying drivers have
to do the while() loop themselves, but this can now be done properly with
bufq_peek()/bufq_get(), removing the buffer from the queue at the right time.
This handle both the recursion and reordering issues (the reordering
issue is described here:
https://mail-index.netbsd.org/tech-kern/2014/05/19/msg017089.html
the recursion isssue is PR #25240).

Difference with the patch posted to tech-kern@: KASSERT() that the
buffer we remove with bufq_get() is the same as the one we bufq_peek()'d
just before.
Hopefully this will allow more disk drivers to use dksubr.c

Revision 1.42.8.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:19 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.42.8.1: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.8.1: +38 -58 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:35 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +21 -2 lines
sync with head

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Dec 28 19:25:07 2013 UTC (12 years, 10 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +21 -2 lines
Make dksubr.c into a module, and make the cgd and dm modules depend on
it.

Now that cgd is completely modularized, descend into modules/cgd to
actually create the module.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:16 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +19 -58 lines
resync from head

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed May 29 23:37:10 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +10 -9 lines
eliminate sc_size and fix printf formats

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed May 29 23:25:55 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +11 -28 lines
eliminate dk_geom

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed May 29 00:47:48 2013 UTC (13 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +11 -34 lines
phase 1 of disk geometry cleanup:
	- centralize the geometry -> plist code so that we don't have
	  n useless copies of it.

Revision 1.42.8.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:49 2012 UTC (14 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +64 -4 lines
sync with head

Revision 1.42.12.1: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:16 2012 UTC (14 years, 5 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +64 -4 lines
sync to latest -current.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue May 29 10:20:33 2012 UTC (14 years, 5 months ago) by elric
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, khorben-n900, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -5 lines
Fix 32/64 bit int truncation issue.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri May 25 14:25:39 2012 UTC (14 years, 5 months ago) by elric
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -5 lines
Revert a few lines of accidental commit.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri May 25 10:53:46 2012 UTC (14 years, 5 months ago) by elric
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +69 -5 lines
Modify dksubr.c to add a function that sets the disk properties in
the drvctl framework.  And call this new functionality from cgd(4),
the consumer of dksubr.c.  We do this to allow gpt(8) to be able
to label cgd(4) disks.  We also add in some DIOCGSECTORSIZE logic
and we ensure that the WEDGE ioctls are not called on either
uninitialised disks or disks which have not been opened for write
access.

Revision 1.40.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:52:59 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.40.6.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.6.1: +4 -5 lines
sync with head

Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Nov 19 06:44:39 2010 UTC (16 years ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, 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, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -5 lines
Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:57 2010 UTC (16 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +4 -4 lines
Sync with HEAD.

Revision 1.36.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:14 2010 UTC (16 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.36.4.2: preferred, colored; branchpoint 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36.4.2: +4 -4 lines
sync with head.

Revision 1.40.6.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:33 2010 UTC (16 years, 4 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4 lines
sync with head

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Jun 24 13:03:08 2010 UTC (16 years, 4 months ago) by hannken
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -4 lines
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.36.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:32 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.36.4.1: preferred, colored; branchpoint 1.36: preferred, colored
Changes since revision 1.36.4.1: +8 -8 lines
sync with head.

Revision 1.37.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:51 2009 UTC (17 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +8 -8 lines
Sync with HEAD.

Revision 1.34.6.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:52 2009 UTC (17 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.34.6.2: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.6.2: +6 -6 lines
Sync with HEAD.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Jan 13 13:35:52 2009 UTC (17 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base1, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -5 lines
g/c BUFQ_FOO() macros and use bufq_foo() directly.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Jan 11 09:54:41 2009 UTC (17 years, 10 months ago) by cegger
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -5 lines
make this compile

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:50 2009 UTC (17 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -5 lines
merge christos-time_t

Revision 1.35.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 1 21:22:26 2008 UTC (18 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.35.2.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.1: +3 -10 lines
Sync with head.

Revision 1.34.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:11 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.34.6.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.6.1: +1 -8 lines
Sync with HEAD.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:30 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +2 -9 lines
sync with head.

Revision 1.36.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:48 2008 UTC (18 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -9 lines
sync with head.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:46 2008 UTC (18 years, 6 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Apr 5 00:02:55 2008 UTC (18 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
Allow to pass device_xname() to dk_sc_init() without build error
OK joerg

Revision 1.34.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:36 2008 UTC (18 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
Sync with HEAD.

Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:00 2008 UTC (18 years, 7 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +5 -5 lines
Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.15.2.7: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:38:46 2008 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.6: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.6: +3 -3 lines
sync with head.

Revision 1.31.6.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:35 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.31.6.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.6.1: +3 -9 lines
sync with HEAD

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Mar 21 21:54:59 2008 UTC (18 years, 8 months ago) by ad
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: christos-time_t
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.31.12.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:31 2008 UTC (18 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.31.12.2: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.12.2: +3 -9 lines
Sync with HEAD.

Revision 1.15.2.6: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:23:18 2008 UTC (18 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.5: preferred, colored
Changes since revision 1.15.2.5: +3 -9 lines
sync with head.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jan 30 15:30:12 2008 UTC (18 years, 9 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: mjf-devfs2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -9 lines
Remove code to prevent multiple open of block devices; it's no longer
needed.

Revision 1.15.2.5: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:42:25 2008 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.4: preferred, colored
Changes since revision 1.15.2.4: +3 -3 lines
sync with head

Revision 1.31.6.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:52:12 2008 UTC (18 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -4 lines
sync with HEAD

Revision 1.31.12.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:44:45 2007 UTC (18 years, 10 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.31.12.1: preferred, colored; branchpoint 1.31: preferred, colored
Changes since revision 1.31.12.1: +3 -3 lines
Sync with HEAD.

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:45:57 2007 UTC (18 years, 10 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -3 lines
Sync with head.

Revision 1.31.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:40 2007 UTC (18 years, 11 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.31.4.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.4.1: +3 -3 lines
Sync with HEAD.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Dec 8 19:29:41 2007 UTC (18 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.31.12.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:19 2007 UTC (18 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
Sync with HEAD.

Revision 1.15.2.4: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:29:16 2007 UTC (18 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.3: preferred, colored
Changes since revision 1.15.2.3: +3 -3 lines
sync with head

Revision 1.31.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:36:58 2007 UTC (18 years, 11 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Nov 26 19:01:34 2007 UTC (18 years, 11 months ago) by pooka
Branches: MAIN
CVS tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
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.15.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:33:11 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.2: preferred, colored
Changes since revision 1.15.2.2: +13 -21 lines
sync with head.

Revision 1.27.8.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 07:04:19 2007 UTC (19 years, 2 months ago) by wrstuden
Branches: wrstuden-fixsa
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +5 -4 lines
Sync w/ NetBSD-4-RC_1

Revision 1.28.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:36:39 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.28.2.3: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.3: +8 -16 lines
Sync with HEAD.

Revision 1.28.2.3: download - view: text, markup, annotated - select for diffs
Sun Aug 19 19:24:20 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.28.2.2: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.2: +8 -5 lines
- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:12 2007 UTC (19 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +8 -17 lines
Sync with HEAD.

Revision 1.31.14.2: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:19 2007 UTC (19 years, 3 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.31.14.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.14.1: +675 -0 lines
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.31.14.1
Sun Jul 29 12:50:18 2007 UTC (19 years, 3 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.31: +0 -675 lines
file dksubr.c was added on branch matt-mips64 on 2007-07-29 12:50:19 +0000

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:18 2007 UTC (19 years, 3 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, matt-mips64-base, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-mips64, matt-armv6, jmcneill-pm
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -3 lines
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.30: download - view: text, markup, annotated - select for diffs
Sat Jul 21 19:51:47 2007 UTC (19 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +8 -16 lines
Replace some uses of lockmgr().

Revision 1.28.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:21:06 2007 UTC (19 years, 4 months ago) by ad
Branches: vmlocking
Diff to: previous 1.28.2.1: preferred, colored; branchpoint 1.28: preferred, colored
Changes since revision 1.28.2.1: +5 -4 lines
Sync with head.

Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:05:00 2007 UTC (19 years, 4 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +5 -4 lines
Sync with head.

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 1 17:09:24 2007 UTC (19 years, 4 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-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, matt-nb4-arm-base, matt-nb4-arm
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +5 -4 lines
Pull up following revision(s) (requested by cube in ticket #748):
	sys/dev/dksubr.c: revision 1.29
	sys/dev/ccd.c: revision 1.120
	sys/dev/raidframe/rf_disks.c: revision 1.66
	sys/dev/raidframe/rf_reconstruct.c: revision 1.96
	sys/dev/cgd.c: revision 1.45
	sys/dev/dkvar.h: revision 1.11
	sys/dev/raidframe/rf_copyback.c: revision 1.38
Change dk_lookup() to accept an additional argument of the type enum uio_seg
that tells whether the given path is in user space or kernel space, so it
can tell NDINIT().
While the raidframe calls were ok, both ccd(4) and cgd(4) were passing
pointers to user space data, which leads to strange error on i386, as
reported by Jukka Salmi on current-users.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Jun 26 15:22:23 2007 UTC (19 years, 4 months ago) by cube
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -4 lines
Change dk_lookup() to accept an additional argument of the type enum uio_seg
that tells whether the given path is in user space or kernel space, so it
can tell NDINIT().

While the raidframe calls were ok, both ccd(4) and cgd(4) were passing
pointers to user space data, which leads to strange error on i386, as
reported by Jukka Salmi on current-users.

The issue has been there since last august, I'm actually a bit surprised
that no one in the meantime has used ccd(4) or cgd(4) on an arch where it
would have simply faulted.

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Sun May 13 17:36:20 2007 UTC (19 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -9 lines
- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.27.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:53:03 2007 UTC (19 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +4 -4 lines
Sync with HEAD.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:01:41 2007 UTC (19 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:47:50 2006 UTC (19 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15.2.1: preferred, colored
Changes since revision 1.15.2.1: +30 -31 lines
sync with head.

Revision 1.25.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:16:53 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.25.4.1: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.4.1: +8 -8 lines
sync with head.

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:03 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +5 -5 lines
Sync with head.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:32:45 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +8 -8 lines
__unused removal on arguments; approved by core.

Revision 1.25.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:05:28 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +8 -8 lines
sync with head

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:30:50 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +8 -8 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.21.8.4: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:31:26 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.21.8.3: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.8.3: +3 -3 lines
sync with head.

Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:49:09 2006 UTC (20 years, 2 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +27 -28 lines
sync with head

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Sep 4 22:51:42 2006 UTC (20 years, 2 months ago) by dan
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
typo in debug printf

Revision 1.21.8.3: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:23:55 2006 UTC (20 years, 2 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.21.8.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.8.2: +25 -24 lines
sync with head.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Aug 27 05:00:00 2006 UTC (20 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base8
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +25 -24 lines
Add horrible hack for wedges. Why is the block device of the wedges in use?

Revision 1.21.8.2: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:43:52 2006 UTC (20 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.21.8.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.8.1: +6 -8 lines
sync with head

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jul 21 16:48:47 2006 UTC (20 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -8 lines
- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:02:11 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +140 -32 lines
sync with head.

Revision 1.21.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:03 2006 UTC (20 years, 5 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +6 -6 lines
Sync with head.

Revision 1.21.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:07 2006 UTC (20 years, 5 months ago) by tron
Branches: peter-altq
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +4 -4 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.21.8.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:57:36 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -6 lines
sync with head.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun May 14 21:42:26 2006 UTC (20 years, 6 months ago) by elad
Branches: 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
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
integrate kauth.

Revision 1.21.10.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:44:48 2006 UTC (20 years, 8 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +6 -6 lines
Adapt to kernel authorization KPI.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Dec 26 10:36:47 2005 UTC (20 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +45 -2 lines
- add ioctls to set/get disk bufq strategy.
- implement them for some drivers.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Dec 11 23:42:33 2005 UTC (20 years, 11 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
More ktrace-lwp merge.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:20:53 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +16 -14 lines
merge ktrace-lwp.

Revision 1.9.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:03:00 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.6: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.6: +84 -21 lines
Sync with HEAD. Here we go again...

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Oct 18 00:14:43 2005 UTC (21 years, 1 month ago) by yamt
Branches: 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
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +13 -2 lines
dksubr: do b_blkno -> b_rawblkno translation earlier so that bufq can uses it.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Oct 15 17:29:11 2005 UTC (21 years, 1 month ago) by yamt
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -5 lines
- 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.16: download - view: text, markup, annotated - select for diffs
Sat Aug 20 12:03:52 2005 UTC (21 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +69 -17 lines
add wedge support to xbd and cgd.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jun 28 20:23:02 2005 UTC (21 years, 4 months ago) by drochner
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
constification fallout

Revision 1.9.2.6: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:51:19 2004 UTC (22 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.5: preferred, colored
Changes since revision 1.9.2.5: +4 -2 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Oct 28 07:07:39 2004 UTC (22 years ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -2 lines
move buffer queue related stuffs from buf.h to their own header, bufq.h.

Revision 1.9.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:26:25 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.4: preferred, colored
Changes since revision 1.9.2.4: +16 -14 lines
Fix the sync with head I botched.

Revision 1.9.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:44:28 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.3: preferred, colored
Changes since revision 1.9.2.3: +14 -16 lines
Sync with HEAD.

Revision 1.9.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 25 06:57:34 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.2: preferred, colored
Changes since revision 1.9.2.2: +4 -4 lines
Sync with HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Aug 23 05:39:46 2004 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4 lines
Sprinkle static in a few places.

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:44:54 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.9.2.1: preferred, colored
Changes since revision 1.9.2.1: +32 -2 lines
Sync with HEAD

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 03:18:41 2004 UTC (22 years, 7 months ago) by jmc
Branches: netbsd-2-0
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +6 -6 lines
Pullup rev 1.12 (requested by elric in ticket #163)

Redo dk_start(). If di->di_diskstart() runs synchronous its biodone() will
call dk_start() via dk_iodone() before the buffer gets removed from queue.
PR#25240

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Apr 19 16:04:07 2004 UTC (22 years, 7 months ago) by hannken
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +6 -6 lines
Redo dk_start(). If di->di_diskstart() runs synchronous its biodone() will
call dk_start() via dk_iodone() before the buffer gets removed from queue.

Approved by: Roland Dowdeswell <elric@netbsd.org>

Fixes PR #25240

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Mar 27 23:23:06 2004 UTC (22 years, 7 months ago) by elric
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +30 -3 lines
Modified the dksubr routines to:

	o  expect the disk's start routine to return an int.  If the
	   int is non-zero, we enqueue the request and try again
	   later.
	o  have a dk_start() routine which runs the request queue.
	o  have a dk_iodone() function which should be called by the
	   driver using the framwork from its iodone.  dk_iodone will
	   retry the queue since presumably further progress may be
	   possible once a request is complete.  It is required that
	   the underlying driver have the resources to keep at least
	   one transaction in flight at any time.

Modified cgd to:

	o  be able to keep one transaction in flight at any time
	   (almost) by keeping a buffer of size MAXPHYS in its softc
	   and use it.

We still need to make the cgd_cbufpool per device rather than global
and provide a low water mark for it.

Addresses PR: kern/24715
(at least according to the submitter.)

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Jul 14 15:47:03 2003 UTC (23 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -1 lines
add missing __KERNEL_RCSID()

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:00 2003 UTC (23 years, 4 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +15 -13 lines
Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:29:58 2003 UTC (23 years, 4 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +12 -14 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:31 2003 UTC (23 years, 4 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +15 -13 lines
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

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon May 12 00:19:00 2003 UTC (23 years, 6 months ago) by atatat
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2 lines
make this compile again.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat May 10 23:12:43 2003 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
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.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri May 2 08:45:26 2003 UTC (23 years, 6 months ago) by dsl
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Change return type of readdisklabel() to const char *
I hope I've found all the correct places!

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Thu Dec 19 00:48:02 2002 UTC (23 years, 11 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.2: +3 -1 lines
Sync with HEAD.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Dec 17 01:55:44 2002 UTC (23 years, 11 months ago) by elric
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -1 lines
Memset disklabel area to zero before beginning when constructing default
labels.  Problem noticed and tested by dan@.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:41:27 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +543 -0 lines
Catch up to -current.

Revision 1.3.2.1
Sat Oct 12 22:43:25 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.3: +0 -543 lines
file dksubr.c was added on branch nathanw_sa on 2002-10-18 02:41:27 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Oct 12 22:43:25 2002 UTC (24 years, 1 month ago) by elric
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Branch point for: nathanw_sa
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
We need to pass the dk_softc, not the osc.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Oct 9 14:04:08 2002 UTC (24 years, 1 month ago) by elric
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
We need to do biodone() if strategy is called on an unconfigured device.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Oct 4 18:02:00 2002 UTC (24 years, 1 month ago) by elric
Branches: MAIN
A slight abstraction for disks.  This is mainly [right now] in
support of the cryptographic disk which I'll be checking in shortly.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>