The NetBSD Project

CVS log for src/sys/dev/raidframe/rf_netbsdkintf.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.410.4.4: download - view: text, markup, annotated - select for diffs
Sun Apr 28 12:09:08 2024 UTC (7 months, 1 week ago) by martin
Branches: netbsd-10
Diff to: previous 1.410.4.3: preferred, colored; branchpoint 1.410: preferred, colored; next MAIN 1.411: preferred, colored
Changes since revision 1.410.4.3: +35 -19 lines
Pull up following revision(s) (requested by oster in ticket #674):

	sys/dev/raidframe/rf_raid.h: revision 1.52
	sbin/raidctl/raidctl.8: revision 1.80
	sys/dev/raidframe/rf_driver.c: revision 1.141
	sys/dev/raidframe/rf_disks.c: revision 1.94
	sys/dev/raidframe/rf_diskqueue.c: revision 1.64
	sys/dev/raidframe/rf_diskqueue.h: revision 1.30
	sys/dev/raidframe/rf_disks.h: revision 1.15
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.414
	sys/dev/raidframe/rf_reconstruct.c: revision 1.129
	sys/dev/raidframe/raidframeio.h: revision 1.12
	sbin/raidctl/raidctl.c: revision 1.79

Implement hot removal of spares and components. From manu@.

Implement a long desired feature of automatically incorporating
a used spare into the array after a reconstruct.

Given the configuration:

Components:
 /dev/wd0e: failed
 /dev/wd1e: optimal
 /dev/wd2e: optimal
Spares:
 /dev/wd3e: spare

Running 'raidctl -F /dev/wd0e raid0' will now result in the
following configuration after a successful rebuild:

Components:
 /dev/wd3e: optimal
 /dev/wd1e: optimal
 /dev/wd2e: optimal
No spares.

Thanks to manu@ for the development of the initial set of changes
which allowed the changes to automatically incorporate a used spare
to come to fruition. Thanks also to manu@ for useful discussions
about and additional testing of these changes.

Revision 1.376.4.6: download - view: text, markup, annotated - select for diffs
Wed Oct 18 12:11:52 2023 UTC (13 months, 3 weeks ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.376.4.5: preferred, colored; branchpoint 1.376: preferred, colored; next MAIN 1.377: preferred, colored
Changes since revision 1.376.4.5: +217 -142 lines
Pull up following revision(s) (requested by manu in ticket #1751):

	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.383
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.385
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.402
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.403
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.59
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.377
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.378
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.379
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.392
	sys/rump/librump/rumpkern/emul.c: revision 1.200
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.60
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.416
	(all via patch)

Get &rsc->sc_dksc only when we know 'rsc' is not NULL. This was actually
harmless because we didn't use the pointer then.

Gcc -Os on landisk is not smart enough to follow the conditional
initialization and warns, unconditionaly initialize dksc at declaration
with a XXX gcc comment.

Improve wording in comments in raid_dumpblock().

in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Nix trailing whitespace.

if raidframe sets booted_device, log a debug message about it.
merge two debug lines in auto-root selection.
convert non-config-handled "DEBUG_ROOT" to aprint_debug().
now it's possible to get boot-time info about raidframe root
device selection with simple "boot -x".

Align the behavior of different boot methods in RAIDframe

We enforce the documented and paritally implemented behavior when
looking for the kernel in RAID 1 sets without a partition name given.

We search for:
- A GPT partition with bootme attribute set
- A FFS or LFS patititon
- The first partition

Fix root search in RAID 1 sets

We use the wedge information given by bootstrap, where the kernel was
found. This requires src/sys/arch/i386/stand/i386/lib/biosdisk.c 1.59
to work in all cases.

Fix build with -DNO_GPT

Revision 1.410.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 18 11:44:22 2023 UTC (13 months, 3 weeks ago) by martin
Branches: netbsd-10
CVS tags: 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
Diff to: previous 1.410.4.2: preferred, colored; branchpoint 1.410: preferred, colored
Changes since revision 1.410.4.2: +153 -39 lines
Pull up following revision(s) (requested by manu in ticket #418):

	sys/arch/i386/stand/lib/biosdisk.c: revision 1.59
	sys/rump/librump/rumpkern/emul.c: revision 1.200
	sys/arch/i386/stand/lib/biosdisk.c: revision 1.60
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.416

Align the behavior of different boot methods in RAIDframe

We enforce the documented and paritally implemented behavior when
looking for the kernel in RAID 1 sets without a partition name given.

We search for:
- A GPT partition with bootme attribute set
- A FFS or LFS patititon
- The first partition

Fix root search in RAID 1 sets

We use the wedge information given by bootstrap, where the kernel was
found. This requires src/sys/arch/i386/stand/i386/lib/biosdisk.c 1.59
to work in all cases.

Fix build with -DNO_GPT

Revision 1.417: download - view: text, markup, annotated - select for diffs
Mon Oct 9 21:55:48 2023 UTC (14 months ago) by oster
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.416: preferred, colored
Changes since revision 1.416: +6 -6 lines


spaces->tabs.  Noted by Edgar Fuß

Revision 1.416: download - view: text, markup, annotated - select for diffs
Thu Sep 28 15:50:23 2023 UTC (14 months, 1 week ago) by manu
Branches: MAIN
Diff to: previous 1.415: preferred, colored
Changes since revision 1.415: +153 -39 lines
Fix root search in RAID 1 sets

We use the wedge information given by bootstrap, where the kernel was
found. This requires src/sys/arch/i386/stand/i386/lib/biosdisk.c 1.59
to work in all cases.

Revision 1.415: download - view: text, markup, annotated - select for diffs
Mon Sep 25 21:59:38 2023 UTC (14 months, 2 weeks ago) by oster
Branches: MAIN
Diff to: previous 1.414: preferred, colored
Changes since revision 1.414: +10 -61 lines


We no longer need the deprecated copyback functionality now that
incorporating a used spare is automatic.

Copyback has always been an issue, as to do a copyback all IO to
the array had to be suspended, and so was very, very unlikely to
have been used in anything resembling a production system.

Revision 1.376.4.5: download - view: text, markup, annotated - select for diffs
Mon Sep 18 19:00:21 2023 UTC (14 months, 3 weeks ago) by martin
Branches: netbsd-9
Diff to: previous 1.376.4.4: preferred, colored; branchpoint 1.376: preferred, colored
Changes since revision 1.376.4.4: +3 -4 lines
Pull up following revision(s) (requested by oster in ticket #1733):

	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.413

A component that is in state rf_ds_reconstructing has failed, and should
not be consulted for DIOCGCACHE.

Fixes an observed panic when rf_get_component_caches() does an IOCTL to
a failed device while reconstruction is in progress.

Revision 1.410.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 18 18:57:33 2023 UTC (14 months, 3 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.410.4.1: preferred, colored; branchpoint 1.410: preferred, colored
Changes since revision 1.410.4.1: +3 -4 lines
Pull up following revision(s) (requested by oster in ticket #376):

	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.413

A component that is in state rf_ds_reconstructing has failed, and should
not be consulted for DIOCGCACHE.

Fixes an observed panic when rf_get_component_caches() does an IOCTL to
a failed device while reconstruction is in progress.

Revision 1.414: download - view: text, markup, annotated - select for diffs
Sun Sep 17 20:07:39 2023 UTC (14 months, 3 weeks ago) by oster
Branches: MAIN
Diff to: previous 1.413: preferred, colored
Changes since revision 1.413: +35 -19 lines


Implement hot removal of spares and components.  From manu@.

Implement a long desired feature of automatically incorporating
a used spare into the array after a reconstruct.

Given the configuration:
Components:
           /dev/wd0e: failed
           /dev/wd1e: optimal
           /dev/wd2e: optimal
Spares:
           /dev/wd3e: spare

Running 'raidctl -F /dev/wd0e raid0' will now result in the
following configuration after a successful rebuild:
Components:
           /dev/wd3e: optimal
           /dev/wd1e: optimal
           /dev/wd2e: optimal
No spares.

Thanks to manu@ for the development of the initial set of changes
which allowed the changes to automatically incorporate a used spare
to come to fruition.  Thanks also to manu@ for useful discussions
about and additional testing of these changes.

Revision 1.413: download - view: text, markup, annotated - select for diffs
Sat Sep 16 23:38:57 2023 UTC (14 months, 3 weeks ago) by oster
Branches: MAIN
Diff to: previous 1.412: preferred, colored
Changes since revision 1.412: +3 -4 lines


A component that is in state rf_ds_reconstructing has failed, and should
not be consulted for DIOCGCACHE.

Fixes an observed panic when rf_get_component_caches() does an IOCTL to
a failed device while reconstruction is in progress.

XXX pullup netbsd-10
XXX pullup netbsd-9

Revision 1.350.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 20:48:06 2023 UTC (17 months, 2 weeks ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.350: preferred, colored; next MAIN 1.351: preferred, colored
Changes since revision 1.350: +5 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #1835):

	sys/dev/pci/if_iwi.c: revision 1.117
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.401
	sys/dev/scsipi/ses.c: revision 1.52
	sys/dev/isa/mcd.c: revision 1.121
	(all via patch)

sys/dev: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure.  If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.

I think the iwi(4), mcd(4), and ses(4) changes actually plug leaks;
the raidframe(4) change probably doesn't (but doesn't hurt).

Revision 1.410.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 16:55:01 2023 UTC (17 months, 2 weeks ago) by martin
Branches: netbsd-10
Diff to: previous 1.410: preferred, colored
Changes since revision 1.410: +3 -7 lines
Pull up following revision(s) (requested by hannken in ticket #197):

	sys/ufs/ffs/ffs_vfsops.c: revision 1.381
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.412

Undo unlock/relock for VOP_IOCTL().
PR kern/57450 (unplugging hung USB disk triggers panic via _vstate_assert)

Revision 1.412: download - view: text, markup, annotated - select for diffs
Thu Jun 15 09:15:54 2023 UTC (17 months, 3 weeks ago) by hannken
Branches: MAIN
Diff to: previous 1.411: preferred, colored
Changes since revision 1.411: +3 -7 lines
Undo unlock/relock for VOP_IOCTL().

PR kern/57450 (unplugging hung USB disk triggers panic via _vstate_assert)

Revision 1.411: download - view: text, markup, annotated - select for diffs
Thu Mar 30 11:02:15 2023 UTC (20 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.410: preferred, colored
Changes since revision 1.410: +7 -9 lines
raidframe: Nix unused parameter to raidwrite_component_area.

All calls use the same value.  Prune dead branches using it.

Revision 1.376.4.4: download - view: text, markup, annotated - select for diffs
Mon Aug 29 16:02:34 2022 UTC (2 years, 3 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.376.4.3: preferred, colored; branchpoint 1.376: preferred, colored
Changes since revision 1.376.4.3: +4 -2 lines
Pull up following revision(s) (requested by oster in ticket #1506):

	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.409

RAIDframe must be initialized for the RAIDFRAME_SET_LAST_UNIT
and RAIDFRAME_SHUTDOWN ioctls.

Revision 1.410: download - view: text, markup, annotated - select for diffs
Sun Aug 28 00:37:41 2022 UTC (2 years, 3 months ago) by oster
Branches: MAIN
CVS tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.409: preferred, colored
Changes since revision 1.409: +11 -45 lines
Simplify the check for what ioctls can be done in raidioctl() without
the device being initialized.

Revision 1.409: download - view: text, markup, annotated - select for diffs
Sun Aug 28 00:26:04 2022 UTC (2 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.408: preferred, colored
Changes since revision 1.408: +4 -2 lines

RAIDframe must be initialized for the RAIDFRAME_SET_LAST_UNIT
and RAIDFRAME_SHUTDOWN ioctls.

XXX Pullup-9

Reported-by: syzbot+1c20fcbe34d72cd7fbda@syzkaller.appspotmail.com

Revision 1.376.4.3: download - view: text, markup, annotated - select for diffs
Fri Aug 12 15:18:13 2022 UTC (2 years, 3 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.376.4.2: preferred, colored; branchpoint 1.376: preferred, colored
Changes since revision 1.376.4.2: +41 -10 lines
Pull up following revision(s) (requested by mrg in ticket #1500):

	sys/dev/raidframe/rf_driver.c: revision 1.140 (patch)
	sys/dev/raidframe/rf_disks.c: revision 1.93 (patch)
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.408 (patch)

raidframe: reject invalid values for numCol and numSpares

numCol and numSpares are "int" so they can be "-1" internally,
which means negative values need to be rejected, as well as
values higher than RF_MAXCOL/RF_MAXSPARES.
explicitly nul-terminate all strings coming from userland.


some minor CSE that avoids signed arith.

this fixes issues in the RAIDFRAME_ADD_HOT_SPARE,
RAIDFRAME_CONFIGURE, RAIDFRAME_DELETE_COMPONENT,
RAIDFRAME_INCORPORATE_HOT_SPARE, and RAIDFRAME_REBUILD_IN_PLACE
ioctl commands.


ok oster@ riastradh@

Revision 1.408: download - view: text, markup, annotated - select for diffs
Wed Aug 10 01:16:38 2022 UTC (2 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.407: preferred, colored
Changes since revision 1.407: +41 -10 lines
raidframe: reject invalid values for numCol and numSpares

numCol and numSpares are "int" so they can be "-1" internally,
which means negative values need to be rejected, as well as
values higher than RF_MAXCOL/RF_MAXSPARES.

explicitly nul-terminate all strings coming from userland.

some minor CSE that avoids signed arith.

this fixes issues in the RAIDFRAME_ADD_HOT_SPARE,
RAIDFRAME_CONFIGURE, RAIDFRAME_DELETE_COMPONENT,
RAIDFRAME_INCORPORATE_HOT_SPARE, and RAIDFRAME_REBUILD_IN_PLACE
ioctl commands.

Reported-by: syzbot+b584943ad1f8ab9d4fe0@syzkaller.appspotmail.com

https://syzkaller.appspot.com/bug?id=61e07e418261f8eec8a37a9226725fe31820edd0
https://syzkaller.appspot.com/bug?id=ca0c997b40de81c0f0b44790217731f142003149
https://syzkaller.appspot.com/bug?id=6fc452d228453494655a85264591dd9054cc0b08
https://syzkaller.appspot.com/bug?id=873f0271682713a27adc9a49dd7109c70b35fda3


XXX: pullup-8, pullup-9.

ok oster@ riastradh@

Revision 1.376.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 3 10:55:45 2022 UTC (2 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE
Diff to: previous 1.376.4.1: preferred, colored; branchpoint 1.376: preferred, colored
Changes since revision 1.376.4.1: +8 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #1485):

	sys/dev/pci/if_iwi.c: revision 1.117
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.401
	sys/dev/scsipi/ses.c: revision 1.52
	sys/dev/isa/mcd.c: revision 1.121

sys/dev: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure.  If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.

I think the iwi(4), mcd(4), and ses(4) changes actually plug leaks;
the raidframe(4) change probably doesn't (but doesn't hurt).

Revision 1.407: download - view: text, markup, annotated - select for diffs
Sat Apr 16 16:40:54 2022 UTC (2 years, 7 months ago) by andvar
Branches: MAIN
Diff to: previous 1.406: preferred, colored
Changes since revision 1.406: +3 -3 lines
Fix mistake in error branch locking caused by previous changes.
vput(vp) also unlocks vp, thus unlocking happens twice in error flow
causing kernel to panic with failed assertion lktype != LK_NONE
in vfs_vnode.c#778. Thanks riastradh with finding the issue.

Revision 1.406: download - view: text, markup, annotated - select for diffs
Sat Apr 16 07:57:33 2022 UTC (2 years, 7 months ago) by hannken
Branches: MAIN
Diff to: previous 1.405: preferred, colored
Changes since revision 1.405: +7 -3 lines
Unlock vnode for VOP_IOCTL().

Revision 1.405: download - view: text, markup, annotated - select for diffs
Mon Mar 28 13:07:14 2022 UTC (2 years, 8 months ago) by wiz
Branches: MAIN
Diff to: previous 1.404: preferred, colored
Changes since revision 1.404: +3 -3 lines
Restore another historic RCS Id.

Revision 1.404: download - view: text, markup, annotated - select for diffs
Mon Mar 28 12:33:21 2022 UTC (2 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.403: preferred, colored
Changes since revision 1.403: +4 -13 lines
driver(9): devsw_detach never fails.  Make it return void.

Prune a whole lotta dead branches as a result of this.  (Some logic
calling this is also wrong for other reasons; devsw_detach is final
-- you should never have any reason to decide to roll it back.  To be
cleaned up in subsequent commits...)

XXX kernel ABI change to devsw_detach signature requires bump

Revision 1.403: download - view: text, markup, annotated - select for diffs
Fri Mar 11 01:59:33 2022 UTC (2 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.402: preferred, colored
Changes since revision 1.402: +9 -15 lines
convert non-config-handled "DEBUG_ROOT" to aprint_debug().

now it's possible to get boot-time info about raidframe root
device selection with simple "boot -x".

Revision 1.402: download - view: text, markup, annotated - select for diffs
Wed Mar 9 10:04:06 2022 UTC (2 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.401: preferred, colored
Changes since revision 1.401: +7 -7 lines
merge two debug lines in auto-root selection.

Revision 1.401: download - view: text, markup, annotated - select for diffs
Thu Sep 9 23:26:37 2021 UTC (3 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.400: preferred, colored
Changes since revision 1.400: +8 -2 lines
sys/dev: Memset zero before copyout.

Just in case of uninitialized padding which would lead to kernel
stack disclosure.  If the compiler can prove the memset redundant
then it can optimize it away; otherwise better safe than sorry.

I think the iwi(4), mcd(4), and ses(4) changes actually plug leaks;
the raidframe(4) change probably doesn't (but doesn't hurt).

Revision 1.400: download - view: text, markup, annotated - select for diffs
Sat Aug 28 16:00:52 2021 UTC (3 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.399: preferred, colored
Changes since revision 1.399: +15 -3 lines
If there is a FS_RAID partition on a disk, then we shouldn't look at
the raw partition.  In particular, we now need to account for the case
where an existing FS_RAID partition is now open because it is in use.
If that is the case, we don't look at the raw partition.

Addresses PR kern/56369.

Revision 1.399: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:15 2021 UTC (3 years, 4 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.398: preferred, colored
Changes since revision 1.398: +2 -2 lines
Merge thorpej-cfargs2.

Revision 1.397.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 5 03:37:41 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.397: preferred, colored; next MAIN 1.398: preferred, colored
Changes since revision 1.397: +75 -3 lines
Sync w/ HEAD.

Revision 1.398: download - view: text, markup, annotated - select for diffs
Mon Aug 2 20:31:14 2021 UTC (3 years, 4 months ago) by oster
Branches: MAIN
CVS tags: thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base
Diff to: previous 1.397: preferred, colored
Changes since revision 1.397: +75 -3 lines

Support on-demand re-scanning all devices to look for
autoconfig RAID sets.  raidctl now supports looking
for autoconfig RAID sets with a new '-L' flag.

Revision 1.391.2.3: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:31 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.391.2.2: preferred, colored; branchpoint 1.391: preferred, colored; next MAIN 1.392: preferred, colored
Changes since revision 1.391.2.2: +45 -33 lines
Sync with HEAD.

Revision 1.397: download - view: text, markup, annotated - select for diffs
Mon Jul 26 22:50:36 2021 UTC (3 years, 4 months ago) by oster
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base
Branch point for: thorpej-cfargs2
Diff to: previous 1.396: preferred, colored
Changes since revision 1.396: +38 -24 lines
Add support for detecting and configuring nested RAID setups at boot.

Revision 1.396: download - view: text, markup, annotated - select for diffs
Fri Jul 23 02:35:14 2021 UTC (3 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.395: preferred, colored
Changes since revision 1.395: +3 -9 lines

All IO is async in the RAIDframe kernel driver, so desc->async_flag
isn't needed.  Cleanup the flag from rf_DoAccess() and its caller as
well.

Revision 1.395: download - view: text, markup, annotated - select for diffs
Fri Jul 23 00:54:45 2021 UTC (3 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.394: preferred, colored
Changes since revision 1.394: +8 -4 lines

Extensive mechanical changes to the pools used in RAIDframe.

Alloclist remains not per-RAID, so initialize that pool
separately/differently than the rest.

The remainder of pools in RF_Pools_s are now per-RAID pools.  Mostly
mechanical changes to functions to allocate/destroy per-RAID pools.
Needed to make raidPtr available in certain cases to be able to find
the per-RAID pools.

Extend rf_pool_init() to now populate a per-RAID wchan value that is
unique to each pool for a given RAID device.

TODO: Complete the analysis of the minimum number of items that are
required for each pool to allow IO to progress (i.e. so that a request
for pool resources can always be satisfied), and dynamically scale
minimum pool sizes based on RAID configuration.

Revision 1.391.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:30 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.391.2.1: preferred, colored; branchpoint 1.391: preferred, colored
Changes since revision 1.391.2.1: +104 -47 lines
Sync w/ HEAD.

Revision 1.392.2.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:19 2021 UTC (3 years, 6 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.392: preferred, colored; next MAIN 1.393: preferred, colored
Changes since revision 1.392: +104 -47 lines
sync with head

Revision 1.394: download - view: text, markup, annotated - select for diffs
Wed May 26 06:11:50 2021 UTC (3 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Diff to: previous 1.393: preferred, colored
Changes since revision 1.393: +62 -8 lines
support different endian raidframe component label.

there are two on-disk formats in use in raidframe:
- the component label
- the parity map

the parity map is a bitmap implemented as bytes, so it has no
endian issue.  the component label is the problem, as most of
the fields are 32 bit.  this change only supports version 2 of
raidframe (active since the year 2000.)

as component labels are read and used before a raidPtr for the
raid set has been created, there is no obvious storage for the
swapped indicator, so the in-core version remains the on-disk
version, while the rest of in-core label is swapped.

in raidread_component_label() and raidwrite_component_label(),
check if the swapped version, and if so, call new rf_swap_label()
and ensure that the in-core label is native-byte order.  for the
write method, an on-stack copy is modified before writing, so
that the in-core version remains valid.  (this stack usage is
below other stack usage in similar functions here.)

adjust the label ioctls RAIDFRAME_GET_COMPONENT_LABEL and
RAIDFRAME_GET_COMPONENT_LABEL80 to return the byte-swapped
version so that eg, raidctl -s reports the right version.

when performing final configuration of a raidset, report if a
label swapped, and also complain if there are differently swapped
versions on the other components.


tested on arm64, sparc64 and amd64
ok @oster

Revision 1.393: download - view: text, markup, annotated - select for diffs
Mon May 24 07:43:15 2021 UTC (3 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.392: preferred, colored
Changes since revision 1.392: +45 -42 lines
make various things static, and minor KNF clean up.
ignore spiflash as a raid device.

Revision 1.391.2.1: download - view: text, markup, annotated - select for diffs
Thu May 13 00:47:32 2021 UTC (3 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.391: preferred, colored
Changes since revision 1.391: +4 -2 lines
Sync with HEAD.

Revision 1.392: download - view: text, markup, annotated - select for diffs
Mon Apr 26 07:27:24 2021 UTC (3 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: cjep_staticlib_x-base
Branch point for: cjep_staticlib_x
Diff to: previous 1.391: preferred, colored
Changes since revision 1.391: +4 -2 lines
if raidframe sets booted_device, log a debug message about it.

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

Revision 1.391: download - view: text, markup, annotated - select for diffs
Sun Apr 11 01:41:12 2021 UTC (3 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: thorpej-cfargs-base
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.390: preferred, colored
Changes since revision 1.390: +3 -3 lines
mark an extremely uncommon, but sometimes seen, log message
with the function name it comes with.

Revision 1.390: download - view: text, markup, annotated - select for diffs
Sun Sep 27 21:39:08 2020 UTC (4 years, 2 months ago) by christos
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex
Branch point for: thorpej-cfargs
Diff to: previous 1.389: preferred, colored
Changes since revision 1.389: +8 -8 lines
DIOCCACHESYNC takes an int argument, pass it through.

Revision 1.389: download - view: text, markup, annotated - select for diffs
Tue Aug 25 13:50:00 2020 UTC (4 years, 3 months ago) by skrll
Branches: MAIN
Diff to: previous 1.388: preferred, colored
Changes since revision 1.388: +20 -20 lines
KNF

Revision 1.388: download - view: text, markup, annotated - select for diffs
Fri Jul 31 20:35:33 2020 UTC (4 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.387: preferred, colored
Changes since revision 1.387: +2 -3 lines
no need for continue

Revision 1.387: download - view: text, markup, annotated - select for diffs
Fri Jul 31 20:34:38 2020 UTC (4 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.386: preferred, colored
Changes since revision 1.386: +5 -5 lines
- don't overwrite existing error.
- return the error not 0 if failing.

Revision 1.386: download - view: text, markup, annotated - select for diffs
Fri Jul 31 19:30:09 2020 UTC (4 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.385: preferred, colored
Changes since revision 1.385: +28 -27 lines
Factor out the component cache flushing code; add retries.

Revision 1.385: download - view: text, markup, annotated - select for diffs
Sat Jun 20 18:36:27 2020 UTC (4 years, 5 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.384: preferred, colored
Changes since revision 1.384: +36 -36 lines
Nix trailing whitespace.

Revision 1.384: download - view: text, markup, annotated - select for diffs
Fri Jun 19 19:29:39 2020 UTC (4 years, 5 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.383: preferred, colored
Changes since revision 1.383: +8 -9 lines
pass down b_flags B_PHYS|B_RAW|B_MEDIA_FLAGS from bio subsystem
to component I/O

fixes the xbd(4) KASSERT() triggered by raidframe, noted in PR kern/55397
by Frank Kardel

Revision 1.383: download - view: text, markup, annotated - select for diffs
Tue Jun 16 14:45:08 2020 UTC (4 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.382: preferred, colored
Changes since revision 1.382: +22 -22 lines
Improve wording in comments in raid_dumpblock().

Revision 1.356.4.4: download - view: text, markup, annotated - select for diffs
Tue Apr 21 18:42:37 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.356.4.3: preferred, colored; branchpoint 1.356: preferred, colored; next MAIN 1.357: preferred, colored
Changes since revision 1.356.4.3: +1 -4 lines
Sync with HEAD

Revision 1.381.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:07 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.381: preferred, colored; next MAIN 1.382: preferred, colored
Changes since revision 1.381: +3 -6 lines
Sync with HEAD

Revision 1.356.4.3: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:47 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.356.4.2: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.4.2: +10 -47 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.382: download - view: text, markup, annotated - select for diffs
Mon Apr 13 00:27:17 2020 UTC (4 years, 7 months ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Diff to: previous 1.381: preferred, colored
Changes since revision 1.381: +3 -6 lines
slightly change and fix the semantics of pool_set*wat(), pool_sethardlimit()
and pool_prime() (and their pool_cache_* counterparts):

 - the pool_set*wat() APIs are supposed to specify thresholds for the count of
   free items in the pool before pool pages are automatically allocated or freed
   during pool_get() / pool_put(), whereas pool_sethardlimit() and pool_prime()
   are supposed to specify minimum and maximum numbers of total items
   in the pool (both free and allocated).  these were somewhat conflated
   in the existing code, so separate them as they were intended.

 - change pool_prime() to take an absolute number of items to preallocate
   rather than an increment over whatever was done before, and wait for
   any memory allocations to succeed.  since pool_prime() can no longer fail
   after this, change its return value to void and adjust all callers.

 - pool_setlowat() is documented as not immediately attempting to allocate
   any memory, but it was changed some time ago to immediately try to allocate
   up to the lowat level, so just fix the manpage to describe the current
   behaviour.

 - add a pool_cache_prime() to complete the API set.

Revision 1.356.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:08:11 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.356.4.1: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.4.1: +3 -3 lines
Merge changes from current as of 20200406

Revision 1.376.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 21 15:52:09 2020 UTC (4 years, 8 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.376: preferred, colored
Changes since revision 1.376: +4 -4 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.381: download - view: text, markup, annotated - select for diffs
Sat Mar 21 06:02:13 2020 UTC (4 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Diff to: previous 1.380: preferred, colored
Changes since revision 1.380: +3 -3 lines
Restore historic $Hdr: ...$ text.

This was presumably eaten by git cvsexportcommit, which is curious
because I thought I had gotten out of the habit of passing -k to it.

Revision 1.380: download - view: text, markup, annotated - select for diffs
Sun Mar 1 03:21:54 2020 UTC (4 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp
Diff to: previous 1.379: preferred, colored
Changes since revision 1.379: +4 -4 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.379: download - view: text, markup, annotated - select for diffs
Sun Nov 10 21:16:37 2019 UTC (5 years, 1 month ago) by chs
Branches: MAIN
CVS tags: phil-wifi-20191119, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.378: preferred, colored
Changes since revision 1.378: +10 -47 lines
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.

Revision 1.378: download - view: text, markup, annotated - select for diffs
Wed Oct 30 16:00:13 2019 UTC (5 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.377: preferred, colored
Changes since revision 1.377: +3 -3 lines
Gcc -Os on landisk is not smart enough to follow the conditional
initialization and warns, unconditionaly initialize dksc at declaration
with a XXX gcc comment.

Revision 1.377: download - view: text, markup, annotated - select for diffs
Wed Oct 30 07:59:44 2019 UTC (5 years, 1 month ago) by maxv
Branches: MAIN
Diff to: previous 1.376: preferred, colored
Changes since revision 1.376: +3 -3 lines
Get &rsc->sc_dksc only when we know 'rsc' is not NULL. This was actually
harmless because we didn't use the pointer then.

Reported-by: syzbot+77097fae0e3aad6de088@syzkaller.appspotmail.com

Revision 1.356.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:31 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.356: preferred, colored
Changes since revision 1.356: +488 -506 lines
Sync with HEAD

Revision 1.376: download - view: text, markup, annotated - select for diffs
Fri Mar 1 11:06:56 2019 UTC (5 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.375: preferred, colored
Changes since revision 1.375: +5 -5 lines
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

NFCI intended.

Ride the earlier kernel bump - it;s getting crowded.

Revision 1.375: download - view: text, markup, annotated - select for diffs
Wed Feb 20 10:04:28 2019 UTC (5 years, 9 months ago) by hannken
Branches: MAIN
Diff to: previous 1.374: preferred, colored
Changes since revision 1.374: +9 -6 lines
Fix vnode locking, must lock for VOP_OPEN() and VOP_UNLOCK() when done.

Revision 1.374: download - view: text, markup, annotated - select for diffs
Sat Feb 9 03:34:00 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.373: preferred, colored
Changes since revision 1.373: +9 -10 lines
- Change the allocation macros to be more like function calls
- Change sizeof(type) -> sizeof(*variable)
- Use macros for the long buffer length allocations
- Remove "bit polishing" memsets() -- do them only once
- Remove unnecessary casts

Thanks to oster@ for finding bugs and testing.

Revision 1.373: download - view: text, markup, annotated - select for diffs
Thu Feb 7 03:03:00 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.372: preferred, colored
Changes since revision 1.372: +3 -3 lines
You need a star :-)

Revision 1.372: download - view: text, markup, annotated - select for diffs
Wed Feb 6 23:00:16 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.371: preferred, colored
Changes since revision 1.371: +12 -3 lines
- Restore indirecting through the data pointer
- Don't try to load compat code if the ioctl is not for us.

Revision 1.371: download - view: text, markup, annotated - select for diffs
Wed Feb 6 03:37:13 2019 UTC (5 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.370: preferred, colored
Changes since revision 1.370: +5 -4 lines
Fix GET_INFO.  Yes, can probably be simplified.

Revision 1.370: download - view: text, markup, annotated - select for diffs
Wed Feb 6 03:01:48 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.369: preferred, colored
Changes since revision 1.369: +4 -4 lines
use 'data' directly.

Revision 1.369: download - view: text, markup, annotated - select for diffs
Wed Feb 6 02:49:50 2019 UTC (5 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.368: preferred, colored
Changes since revision 1.368: +3 -3 lines
Fix logic inversion.  Progress, but still broken.

Revision 1.368: download - view: text, markup, annotated - select for diffs
Wed Feb 6 02:49:09 2019 UTC (5 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.367: preferred, colored
Changes since revision 1.367: +7 -23 lines
Shuffle softc declarations to a different .h file.  Create missing
rf_get_raid().  Things compile, but don't work correctly.

Revision 1.367: download - view: text, markup, annotated - select for diffs
Tue Feb 5 23:28:02 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.366: preferred, colored
Changes since revision 1.366: +349 -391 lines
- Redo all the ioctl compat stuff to use a standard "ioctl" interface,
  and provide methods to the private softc
- Provide a function for constructing a RF_Raid_t from an RF_Config_t
- Factor out the big inline ioctl code into functions

Revision 1.366: download - view: text, markup, annotated - select for diffs
Tue Feb 5 17:13:37 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.365: preferred, colored
Changes since revision 1.365: +169 -143 lines
- Fix the FAIL_DISK handling (it would prolly trash the wrong disk before
  since the request structs are different and the row in the old struct is
  the col in the new one).
- Restructure the way compat modules are loaded so that we only load them
  for the ioctls that need them. Put a comment explaining why...
- Set retcode after loading compat (now that the fail disk passthrough
  hack is gone), so that various ioctls don't always fail.

Revision 1.365: download - view: text, markup, annotated - select for diffs
Tue Feb 5 09:45:38 2019 UTC (5 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.364: preferred, colored
Changes since revision 1.364: +2 -3 lines
remove duplicated line in previously.  noticed by paulg.

Revision 1.364: download - view: text, markup, annotated - select for diffs
Tue Feb 5 09:28:00 2019 UTC (5 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.363: preferred, colored
Changes since revision 1.363: +11 -7 lines
fix the previous:

rf_netbsd32 is only relevant on _LP64 as all the structures are
the same for arm32 oabi/eabi compat.

only do it for _LP64 *and* COMAPT_NETBSD32.

Revision 1.363: download - view: text, markup, annotated - select for diffs
Mon Feb 4 21:57:47 2019 UTC (5 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.362: preferred, colored
Changes since revision 1.362: +11 -13 lines
don't assume _LP64 == supports COMPAT_NETBSD32.

this is not true for alpha, ia64 and arm32 ports, and the first two
were not building because of it, and the latter would be missing
the oabi support (likely not a big deal, but still wrong.)

add a makefile fragment that tells you if it is supported and include
it where needed to define COMPAT_NETBSD32 when building the normal
kernel (ie, modules & rump.)


fixes alpha build, probably fixes ia64 build.


XXX: still leaves some netbsd32 code in rf_netbsdkintf.c, that should
     be moved into some hooks, but first the configuration setup
     needs to be moved into a common function the netbsd32 code can
     call into, vs living in the switch case itself.

Revision 1.362: download - view: text, markup, annotated - select for diffs
Sun Feb 3 11:03:53 2019 UTC (5 years, 10 months ago) by martin
Branches: MAIN
Diff to: previous 1.361: preferred, colored
Changes since revision 1.361: +3 -3 lines
When we force COMPAT_NETBSD32 to be defined, force it to the same value
that opt_compate_netbsd32.h would have, otherwise we get a "redefined"
error from gcc.
XXX this looks fishy, Paul, can you have a look, please?

Revision 1.361: download - view: text, markup, annotated - select for diffs
Sun Feb 3 08:02:24 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.360: preferred, colored
Changes since revision 1.360: +16 -23 lines
Don't include the raidframe compat code in the main raid module, the
compat code lives in their own compat_raid_xx modules, which will now
be autoloaded if needed.

While here, extract the compat_netbsd32_raid code into its own module,
too.

Welcome to 8.99.34

Revision 1.360: download - view: text, markup, annotated - select for diffs
Tue Jan 29 09:28:50 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.359: preferred, colored
Changes since revision 1.359: +4 -4 lines
Normalize all the compat hooks' names to the form

	<subsystem>_<function>_<version>_hook

NFCI

XXX Note that although this introduces a change in the kernel-to-
XXX module interface, we are NOT bumping the kernel version number.
XXX We will bump the version number once the interface stabilizes.

Revision 1.359: download - view: text, markup, annotated - select for diffs
Mon Jan 28 21:14:08 2019 UTC (5 years, 10 months ago) by bad
Branches: MAIN
Diff to: previous 1.358: preferred, colored
Changes since revision 1.358: +22 -10 lines
print additional debug information.  make rf_containsboot() return 0
if bdv == NULL, to aid in the former.

As discussed 1 week ago on tech-kern.

Revision 1.358: download - view: text, markup, annotated - select for diffs
Sun Jan 27 02:08:42 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.357: preferred, colored
Changes since revision 1.357: +42 -48 lines
Merge the [pgoyette-compat] branch

Revision 1.356.2.11: download - view: text, markup, annotated - select for diffs
Tue Jan 22 07:42:40 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.356.2.10: preferred, colored; branchpoint 1.356: preferred, colored; next MAIN 1.357: preferred, colored
Changes since revision 1.356.2.10: +8 -25 lines
Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function.  Almost
all of the hooks are called only once, and although we lose the
ability of doing things like

	if (MODULE_HOOK_CALL(...) == 0) ...

we simplify things quite a bit.  With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.

FWIW, the above if now needs to written as

	int ret;

	MODULE_HOOK_CALL(..., ret);
	if (ret == 0) ...

with appropriate use of braces {}.

Revision 1.356.2.10: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:42 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.9: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.9: +5 -3 lines
Synch with HEAD

Revision 1.356.2.9: download - view: text, markup, annotated - select for diffs
Fri Jan 18 00:01:01 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.8: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.8: +6 -6 lines
Don't restrict hooks to having only int or void types.  Pass the hook's
type to the various macros, as needed.

Allows us to reduce diffs to original in at least one or two places (we
no longer have to provide an additional parameter to the hook routine
for returning a non-int return value).

Revision 1.356.2.8: download - view: text, markup, annotated - select for diffs
Mon Jan 14 13:34:27 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.7: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.7: +6 -6 lines
Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.

Revision 1.356.2.7: download - view: text, markup, annotated - select for diffs
Sun Jan 13 10:49:50 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.6: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.6: +8 -8 lines
Remove the HOOK2 versions of the MODULE_HOOK macros.  There were
only a few uses, and using them led to some lack of clarity in the
code.  Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.

This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.

Revision 1.357: download - view: text, markup, annotated - select for diffs
Tue Jan 8 07:18:18 2019 UTC (5 years, 11 months ago) by mrg
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Diff to: previous 1.356: preferred, colored
Changes since revision 1.356: +5 -3 lines
remove the final tsleep/wakeup pair in raidframe.

Revision 1.356.2.6: download - view: text, markup, annotated - select for diffs
Sat Sep 29 21:36:14 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.5: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.5: +4 -8 lines
In MODULE_HOOK_CALL_DECL we don't need to provide the actual argument
list for calling the hook function, nor do we need to provide the
default value (for when the hook has not been set).

Revision 1.356.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 18 23:03:54 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.4: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.4: +6 -6 lines
The COMPAT_HOOK macros were renamed to MODULE_HOOK, adjust all callers

Revision 1.356.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 18 01:15:57 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.3: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.3: +13 -2 lines
Split the COMPAT_CALL_HOOK to separate the declaration from the
implementation.  Some hooks are called from multiple source files,
and the old method resulted in duplicate implementations.

Implement MP-safe hooks for the usb_subr_30 code.  Pass the helper
functions as arguments to the compat code so it does not have to
determine if the kernel contains usb code.

Revision 1.356.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 17 11:04:30 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.2: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.2: +18 -6 lines
Adapt (most of) the indirect function pointers to the new MP-safe
mechanism.  Still remaining are the compat_netbsd32 stuff, and
some usb subroutines.

Revision 1.356.2.2: download - view: text, markup, annotated - select for diffs
Sun Sep 9 22:12:16 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356.2.1: preferred, colored; branchpoint 1.356: preferred, colored
Changes since revision 1.356.2.1: +5 -4 lines
In the case of no compat modules (ENOSYS returned from the stubs), reset
the retcode to zero so we don't return the wrong value when there is
nothing to do for the particular command.  This was causing spurious
failures for RAIDFRAME_SET_COMPONENT_LABEL which is wrapped in

	#if 0
	...
	#endif

Revision 1.356.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 24 01:59:15 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.356: preferred, colored
Changes since revision 1.356: +40 -49 lines
Separate the compat_50 and compat_80 dispatching code from the main
body of raidframe, and place into the appropriate compat modules.

Enable building of the compat_80 module.

Revision 1.356: download - view: text, markup, annotated - select for diffs
Tue Jan 23 22:42:29 2018 UTC (6 years, 10 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.355: preferred, colored
Changes since revision 1.355: +3 -3 lines
Add "bufq_fcfs" requirement to all those driver modules that explicitly
request it in their calls to bufq_alloc().

Revision 1.355: download - view: text, markup, annotated - select for diffs
Sat Jan 20 01:32:45 2018 UTC (6 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.354: preferred, colored
Changes since revision 1.354: +7 -2 lines
fixes for the previous, noted by nakayama@.

- RAIDFRAME_CONFIGURE needs to be versioned as the rows was removed,
  adding RAIDFRAME_CONFIGURE80, rf_config80() etc.
- RAIDFRAME_CONFIGURE32 changes to match
- rf_get_info80() passed the wrong source to copyout()

some fixes to my original change were independantly made by nakayama@
who confirmed the changes work properly now.

Revision 1.354: download - view: text, markup, annotated - select for diffs
Fri Jan 19 09:04:23 2018 UTC (6 years, 10 months ago) by skrll
Branches: MAIN
Diff to: previous 1.353: preferred, colored
Changes since revision 1.353: +12 -2 lines
Fix some ARM kernel builds.  ARM abuses compat32 for ABI compatibility and
this means some ioctls overlap.

Revision 1.353: download - view: text, markup, annotated - select for diffs
Thu Jan 18 00:32:49 2018 UTC (6 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.352: preferred, colored
Changes since revision 1.352: +195 -132 lines
implement 32-bit compat support for raidframe.

convert several raidframe ioctls to be bitsize idempotent so that
they work the same in 32 and 64 bit worlds, allowing netbsd32 to
configure and query raid properly.  remove useless 'row' in a few
places.  add COMPAT_80 and put the old ioctls there.

raidframeio.h:
  RAIDFRAME_TEST_ACC
  - remove, unused
  RAIDFRAME_GET_COMPONENT_LABEL
  - convert to label not pointer to label
  RAIDFRAME_CHECK_RECON_STATUS_EXT
  RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT
  RAIDFRAME_CHECK_COPYBACK_STATUS_EXT
  - convert to progress info not pointer to info
  RAIDFRAME_GET_INFO
  - version entirely.
raidframevar.h:
  - rf_recon_req{} has row, flags and raidPtr removed (they're
    not a useful part of this interface.)
  - RF_Config_s{} and RF_DeviceConfig_s{} have numRow/rows removed.
  - RF_RaidDisk_s{} is re-ordered slightly to fix alignment
    padding - the actual data was already OK.
  - InstallSpareTable() loses row argument

rf_compat32.c has code for RF_Config_s{} in 32 bit mode, used
by RAIDFRAME_CONFIGURE and RAIDFRAME_GET_INFO32.

rf_compat80.c has code for rf_recon_req{}, RF_RaidDisk_s{} and
RF_DeviceConfig_s{} to handle RAIDFRAME_FAIL_DISK,
RAIDFRAME_GET_COMPONENT_LABEL, RAIDFRAME_CHECK_RECON_STATUS_EXT,
RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT,
RAIDFRAME_CHECK_COPYBACK_STATUS_EXT, RAIDFRAME_GET_INFO.

move several of the per-ioctl code blocks into separate functions.

add rf_recon_req_internal{} to replace old usage of global
rf_recon_req{} that had unused void * in the structure, ruining
it's 32/64 bit ABI.

add missing case for RAIDFRAME_GET_INFO50.

adjust raid tests to use the new .conf format, and add a case to
test the old method as well.

raidctl:
deal with lack of 'row' members in a couple of places.
fail request no longer takes row.
handle "START array" sections with just "numCol numSpare", ie
no "numRow" specified.  for now, generate old-style configuration
but update raidctl.8 to specify the new style (keeping reference
to the old style.)

note that: RF_ComponentLabel_s::{row,num_rows} and
RF_SingleComponent_s::row are obsolete but not removed yet.

Revision 1.298.2.5: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:31 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.298.2.4: preferred, colored; branchpoint 1.298: preferred, colored; next MAIN 1.299: preferred, colored
Changes since revision 1.298.2.4: +816 -875 lines
update from HEAD

Revision 1.352: download - view: text, markup, annotated - select for diffs
Tue Nov 14 14:27:54 2017 UTC (7 years ago) by christos
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.351: preferred, colored
Changes since revision 1.351: +6 -3 lines
check the result of pool_prime.

Revision 1.351: download - view: text, markup, annotated - select for diffs
Thu Nov 9 01:02:56 2017 UTC (7 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.350: preferred, colored
Changes since revision 1.350: +4 -2 lines
add a "booted_method" string to aid in debugging double boot matches.

Revision 1.316.2.8: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:26 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.316.2.7: preferred, colored; branchpoint 1.316: preferred, colored; next MAIN 1.317: preferred, colored
Changes since revision 1.316.2.7: +51 -8 lines
Sync with HEAD

Revision 1.312.2.5: download - view: text, markup, annotated - select for diffs
Fri Jul 14 15:39:32 2017 UTC (7 years, 4 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.312.2.4: preferred, colored; branchpoint 1.312: preferred, colored; next MAIN 1.313: preferred, colored
Changes since revision 1.312.2.4: +21 -4 lines
Pull up following revision(s) (requested by christos in ticket #1457):
	sbin/raidctl/raidctl.c: revision 1.64
	sbin/raidctl/raidctl.8: revision 1.70
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.341
	sys/dev/raidframe/raidframeio.h: revision 1.7
Add a SET_LAST_UNIT ioctl.
Access to the SET_LAST_UNIT ioctl.

Revision 1.350: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:11 2017 UTC (7 years, 6 months ago) by chs
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Diff to: previous 1.349: preferred, colored
Changes since revision 1.349: +2 -8 lines
remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.349.4.3: download - view: text, markup, annotated - select for diffs
Wed May 17 01:44:18 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.349.4.2: preferred, colored; branchpoint 1.349: preferred, colored; next MAIN 1.350: preferred, colored
Changes since revision 1.349.4.2: +3 -2 lines
At suggestion of chuq@, modify config_attach_pseudo() to return with a
reference held on the device.

Adapt callers to expect the reference to exist, and to ensure that the
reference is released.

Revision 1.349.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 29 11:12:14 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.349.4.1: preferred, colored; branchpoint 1.349: preferred, colored
Changes since revision 1.349.4.1: +2 -3 lines
Remove more unnecessary #include for sys/localcount.h

Revision 1.349.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 27 05:36:36 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.349: preferred, colored
Changes since revision 1.349: +12 -9 lines
Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.345.2.8: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:23 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.345.2.7: preferred, colored; branchpoint 1.345: preferred, colored; next MAIN 1.346: preferred, colored
Changes since revision 1.345.2.7: +51 -2 lines
Sync with HEAD

Revision 1.347.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:52 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.347: preferred, colored; next MAIN 1.348: preferred, colored
Changes since revision 1.347: +51 -2 lines
Sync with HEAD

Revision 1.349: download - view: text, markup, annotated - select for diffs
Wed Apr 5 20:30:55 2017 UTC (7 years, 8 months ago) by jdolecek
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: prg-localcount2
Diff to: previous 1.348: preferred, colored
Changes since revision 1.348: +3 -3 lines
rf_get_component_caches(): remove useless condition

Revision 1.348: download - view: text, markup, annotated - select for diffs
Wed Apr 5 19:40:26 2017 UTC (7 years, 8 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.347: preferred, colored
Changes since revision 1.347: +51 -2 lines
add support for DIOCGCACHE; contrary to DIOCCACHESYNC, query any non-dead
disk in the set, even currently reconstring one

Revision 1.345.2.7: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:15 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.345.2.6: preferred, colored; branchpoint 1.345: preferred, colored
Changes since revision 1.345.2.6: +7 -8 lines
Sync with HEAD

Revision 1.316.2.7: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:56 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.316.2.6: preferred, colored; branchpoint 1.316: preferred, colored
Changes since revision 1.316.2.6: +11 -12 lines
Sync with HEAD

Revision 1.347: download - view: text, markup, annotated - select for diffs
Mon Sep 19 23:37:10 2016 UTC (8 years, 2 months ago) by jdolecek
Branches: MAIN
CVS tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.346: preferred, colored
Changes since revision 1.346: +4 -2 lines
fix mistake fallthrough in the ioctl switch introduced in previous commit

Revision 1.346: download - view: text, markup, annotated - select for diffs
Mon Sep 19 23:32:30 2016 UTC (8 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.345: preferred, colored
Changes since revision 1.345: +5 -8 lines
fix DIOCCACHESYNC ioctl on ld(4) and raid(4) to work again; it got broken
when the code was switched over to dk_ioctl() - countrary to disk_ioctl(),
dk_ioctl() returns ENOTTY for ioctls it doesn't support, so must be called
as last resort, not first

bug was introduced in rev 1.83 (2015-05-02) for ld(4), and 1.335 (2016-01-03)
for raid(4)

Revision 1.345.2.6: download - view: text, markup, annotated - select for diffs
Tue Jul 26 05:54:39 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.345.2.5: preferred, colored; branchpoint 1.345: preferred, colored
Changes since revision 1.345.2.5: +4 -4 lines
Rename LOCALCOUNT_INITIALIZER to DEVSW_MODULE_INIT.  This better describes
what we're doing, and why.

Revision 1.345.2.5: download - view: text, markup, annotated - select for diffs
Wed Jul 20 23:47:56 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.345.2.4: preferred, colored; branchpoint 1.345: preferred, colored
Changes since revision 1.345.2.4: +4 -4 lines
Adapt machine-independant code to the new {b,c}devsw reference-counting
(using localcount(9)).  All callers of {b,c}devsw_lookup() now call
{b,c}devsw_lookup_acquire() which retains a reference on the 'struct
{b,c}devsw'.  This reference must be released by the caller once it is
finished with the structure's content (or other data that would disappear
if the 'struct {b,c}devsw' were to disappear).

Revision 1.345.2.4: download - view: text, markup, annotated - select for diffs
Tue Jul 19 06:26:59 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.345.2.3: preferred, colored; branchpoint 1.345: preferred, colored
Changes since revision 1.345.2.3: +4 -12 lines
Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it.  This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@

Revision 1.345.2.3: download - view: text, markup, annotated - select for diffs
Mon Jul 18 11:13:23 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.345.2.2: preferred, colored; branchpoint 1.345: preferred, colored
Changes since revision 1.345.2.2: +3 -3 lines
We created two different 'stuct localcount' for a reason - devsw_attach()
requires them to be different!

So use them both in their respective {b,c}devsw initializations.

Revision 1.345.2.2: download - view: text, markup, annotated - select for diffs
Sun Jul 17 05:05:10 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.345.2.1: preferred, colored; branchpoint 1.345: preferred, colored
Changes since revision 1.345.2.1: +13 -2 lines
Adapt some modular drivers to the localcount(9) world.  We're still
not actually using the localcount stuff, but we need to differentiate
between built-in vs loaded drivers and allocate a "struct localcount"
only for loaded drivers.

Revision 1.345.2.1: download - view: text, markup, annotated - select for diffs
Sun Jul 17 02:44:41 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.345: preferred, colored
Changes since revision 1.345: +7 -7 lines
Don't call devsw_attach() and devsw_detach() for built-in modules.

Revision 1.316.2.6: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:30 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.316.2.5: preferred, colored; branchpoint 1.316: preferred, colored
Changes since revision 1.316.2.5: +31 -3 lines
Sync with HEAD

Revision 1.345: download - view: text, markup, annotated - select for diffs
Wed Apr 27 02:47:39 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.344: preferred, colored
Changes since revision 1.344: +4 -2 lines
provide an empty DPRINTF

Revision 1.344: download - view: text, markup, annotated - select for diffs
Wed Apr 27 02:24:06 2016 UTC (8 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.343: preferred, colored
Changes since revision 1.343: +29 -3 lines
Extend the "a" partition hack to also mean the first partition on the raid,
for non-disklabel based raidframe disks that need root.

Revision 1.316.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:19 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.316.2.4: preferred, colored; branchpoint 1.316: preferred, colored
Changes since revision 1.316.2.4: +486 -790 lines
Sync with HEAD

Revision 1.343: download - view: text, markup, annotated - select for diffs
Thu Jan 7 14:15:26 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319
Diff to: previous 1.342: preferred, colored
Changes since revision 1.342: +8 -10 lines
gc unused flags

Revision 1.342: download - view: text, markup, annotated - select for diffs
Thu Jan 7 08:58:01 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.341: preferred, colored
Changes since revision 1.341: +6 -2 lines
CID 1347189:  Null pointer dereferences

Revision 1.341: download - view: text, markup, annotated - select for diffs
Wed Jan 6 17:40:50 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.340: preferred, colored
Changes since revision 1.340: +28 -11 lines
Add a SET_LAST_UNIT ioctl.

Revision 1.340: download - view: text, markup, annotated - select for diffs
Tue Jan 5 18:44:34 2016 UTC (8 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.339: preferred, colored
Changes since revision 1.339: +4 -8 lines
revert bp->b_error checking; biowait() is a no-op in that case and it is
valid to call biowait() after biodone. (thanks chuq)

Revision 1.339: download - view: text, markup, annotated - select for diffs
Tue Jan 5 17:06:34 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.338: preferred, colored
Changes since revision 1.338: +9 -2 lines
When autoconfiguring RAID sets:

Pseudo devices like vnd and cgd can be opened but may still
need some configuration. Ignore these quietly.

Revision 1.338: download - view: text, markup, annotated - select for diffs
Tue Jan 5 17:03:53 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.337: preferred, colored
Changes since revision 1.337: +8 -4 lines
handle possible errors from bdev_strategy.

Revision 1.337: download - view: text, markup, annotated - select for diffs
Mon Jan 4 13:15:17 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.336: preferred, colored
Changes since revision 1.336: +10 -4 lines
prevent unconfigure/detach while background threads are running.

Revision 1.336: download - view: text, markup, annotated - select for diffs
Mon Jan 4 11:12:40 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.335: preferred, colored
Changes since revision 1.335: +12 -5 lines
Fix dump on raid.
- offset dump by RF_PROTECTED_SECTORS (thanks oster@ for noticing)
- call component dump function with byte count instead of block count
- return -1 instead of errno values in dk_size for error conditions.

There are still issues with dumping.
- the raid device must be open, neither reading the disklabel
  nor flushing the component labels in rfmarkdirty is possible
  when dumping.
- dumping to a wedge component fails because the wedge driver only
  allows dumping to swap partitions, not raid partitions.

Revision 1.335: download - view: text, markup, annotated - select for diffs
Sun Jan 3 08:17:24 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.334: preferred, colored
Changes since revision 1.334: +422 -748 lines
refactor driver to use common code in dksubr.

Revision 1.334: download - view: text, markup, annotated - select for diffs
Sat Jan 2 16:20:50 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.333: preferred, colored
Changes since revision 1.333: +3 -20 lines
No longer detach opened device directly in RAIDFRAME_SHUTDOWN ioctl,
instead just mark the device for shutdown and detach on last close.

Also don't manually print the detached message but leave this to
config_detach(). This avoids a duplicate message when shutting down.

Revision 1.333: download - view: text, markup, annotated - select for diffs
Sat Jan 2 16:10:06 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.332: preferred, colored
Changes since revision 1.332: +9 -6 lines
RAIDF_INITED state also includes disk attachments, don't undo operations
that haven't been committed.

Revision 1.332: download - view: text, markup, annotated - select for diffs
Sat Jan 2 16:06:25 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.331: preferred, colored
Changes since revision 1.331: +13 -5 lines
Unlock and free in raid_detach to handle error paths.

Revision 1.331: download - view: text, markup, annotated - select for diffs
Sat Jan 2 16:00:01 2016 UTC (8 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.330: preferred, colored
Changes since revision 1.330: +4 -13 lines
use bdev_strategy wrapper to properly use KERNEL_LOCK.

Revision 1.316.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:58 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.316.2.3: preferred, colored; branchpoint 1.316: preferred, colored
Changes since revision 1.316.2.3: +235 -56 lines
Sync with HEAD (as of 26th Dec)

Revision 1.330: download - view: text, markup, annotated - select for diffs
Sat Dec 26 21:50:43 2015 UTC (8 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.329: preferred, colored
Changes since revision 1.329: +3 -5 lines
Another use-after-free()

Revision 1.329: download - view: text, markup, annotated - select for diffs
Sat Dec 26 12:59:00 2015 UTC (8 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.328: preferred, colored
Changes since revision 1.328: +3 -2 lines
If the "finalizer" should fail to register for any reason, just report
the situation (as a WARNING) and continue.  Don't return the error code
to the caller.  Failure to register should not really happen - if it
does, all we really lose is auto-configuration of raid-sets.

Revision 1.328: download - view: text, markup, annotated - select for diffs
Sat Dec 26 12:25:26 2015 UTC (8 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.327: preferred, colored
Changes since revision 1.327: +3 -4 lines
Resolve a use-after-free reference to the softc.  From mlelstv@

Revision 1.327: download - view: text, markup, annotated - select for diffs
Sat Dec 26 00:58:45 2015 UTC (8 years, 11 months ago) by pgoyette
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.326: preferred, colored
Changes since revision 1.326: +234 -55 lines
Modularize the raidframe driver, including rework of the unit attach
code to permit detaching (and possible module unloading).  Also,
convert tsleep()/wakeup() locking to use cv_wait_sig()/cv_broadcast().

Tested in non-modular, modular-builtin, and modular-loaded-at-runtime
environments.

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

Revision 1.316.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:00 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.316.2.2: preferred, colored; branchpoint 1.316: preferred, colored
Changes since revision 1.316.2.2: +24 -20 lines
Sync with HEAD

Revision 1.325: download - view: text, markup, annotated - select for diffs
Thu Aug 20 14:40:18 2015 UTC (9 years, 3 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.324: preferred, colored
Changes since revision 1.324: +4 -3 lines
include "ioconf.h" to get the 'void <driver>attach(int count);' prototype.

Revision 1.324: download - view: text, markup, annotated - select for diffs
Fri Jul 10 09:49:56 2015 UTC (9 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.323: preferred, colored
Changes since revision 1.323: +22 -19 lines
mark all the device entry points static.

Revision 1.316.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:12 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.316.2.1: preferred, colored; branchpoint 1.316: preferred, colored
Changes since revision 1.316.2.1: +45 -42 lines
Sync with HEAD

Revision 1.323: download - view: text, markup, annotated - select for diffs
Sun Apr 26 15:15:20 2015 UTC (9 years, 7 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.322: preferred, colored
Changes since revision 1.322: +6 -3 lines
Use C99-style initializers for struct dkdriver.

Revision 1.316.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:13 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.316: preferred, colored
Changes since revision 1.316: +9 -41 lines
Sync with HEAD

Revision 1.322: download - view: text, markup, annotated - select for diffs
Sat Jan 3 11:48:04 2015 UTC (9 years, 11 months ago) by prlw1
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.321: preferred, colored
Changes since revision 1.321: +4 -3 lines
Also print b_error in the IO Error message

Revision 1.321: download - view: text, markup, annotated - select for diffs
Fri Jan 2 19:42:07 2015 UTC (9 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.320: preferred, colored
Changes since revision 1.320: +3 -3 lines
We have three sets of DTYPE_ constants in the kernel:
	altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.

Revision 1.320: download - view: text, markup, annotated - select for diffs
Wed Dec 31 19:52:06 2014 UTC (9 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.319: preferred, colored
Changes since revision 1.319: +3 -21 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.319: download - view: text, markup, annotated - select for diffs
Wed Dec 31 17:06:48 2014 UTC (9 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.318: preferred, colored
Changes since revision 1.318: +2 -17 lines
Centralize wedge ioctls in disk_ioctl.

Revision 1.318: download - view: text, markup, annotated - select for diffs
Wed Dec 31 08:24:50 2014 UTC (9 years, 11 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.317: preferred, colored
Changes since revision 1.317: +4 -5 lines
disk_blocksize and disk_set_info relay the same information
to the disk subsystem.

Make disk_set_info also set blocksize shift values.
Remove every call to disk_blocksize.

Keep disk_blocksize for ABI compatibility, make it also set dg_secsize.

Revision 1.295.6.4: download - view: text, markup, annotated - select for diffs
Mon Dec 22 04:11:38 2014 UTC (9 years, 11 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.295.6.3: preferred, colored; branchpoint 1.295: preferred, colored; next MAIN 1.296: preferred, colored
Changes since revision 1.295.6.3: +3 -2 lines
Pull up following revision(s) (requested by taca in ticket #1216):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.317
Stop useless disklabel warning if there are wedges, using GPT partition.
Fix PR kern/47989.
XXX: Pullup 6 and 7 (maybe 5)

Revision 1.312.2.4: download - view: text, markup, annotated - select for diffs
Mon Dec 22 02:19:32 2014 UTC (9 years, 11 months ago) by msaitoh
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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.312.2.3: preferred, colored; branchpoint 1.312: preferred, colored
Changes since revision 1.312.2.3: +3 -2 lines
Pull up following revision(s) (requested by taca in ticket #348):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.317
Stop useless disklabel warning if there are wedges, using GPT partition.
Fix PR kern/47989.
XXX: Pullup 6 and 7 (maybe 5)

Revision 1.317: download - view: text, markup, annotated - select for diffs
Sun Dec 21 17:04:12 2014 UTC (9 years, 11 months ago) by taca
Branches: MAIN
Diff to: previous 1.316: preferred, colored
Changes since revision 1.316: +3 -2 lines
Stop useless disklabel warning if there are wedges, using GPT partition.
Fix PR kern/47989.

XXX: Pullup 6 and 7 (maybe 5)

Revision 1.295.6.2.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 2 22:08:01 2014 UTC (10 years ago) by snj
Branches: netbsd-6-1
Diff to: previous 1.295.6.2: preferred, colored; next MAIN 1.295.6.3: preferred, colored
Changes since revision 1.295.6.2: +6 -2 lines
Pull up following revision(s) (requested by oster in ticket #1194):
	sys/dev/raidframe/raidframevar.h: revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.316
	sys/dev/raidframe/rf_reconstruct.c: revision 1.121
Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.
The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!
This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.
XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.
XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7
Fixes PR#49244.

Revision 1.295.6.2.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 2 22:06:58 2014 UTC (10 years ago) by snj
Branches: netbsd-6-0
Diff to: previous 1.295.6.2: preferred, colored; next MAIN 1.295.6.3: preferred, colored
Changes since revision 1.295.6.2: +6 -2 lines
Pull up following revision(s) (requested by oster in ticket #1194):
	sys/dev/raidframe/raidframevar.h: revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.316
	sys/dev/raidframe/rf_reconstruct.c: revision 1.121
Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.
The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!
This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.
XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.
XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7
Fixes PR#49244.

Revision 1.295.6.3: download - view: text, markup, annotated - select for diffs
Tue Dec 2 22:05:14 2014 UTC (10 years ago) by snj
Branches: netbsd-6
Diff to: previous 1.295.6.2: preferred, colored; branchpoint 1.295: preferred, colored
Changes since revision 1.295.6.2: +6 -2 lines
Pull up following revision(s) (requested by oster in ticket #1194):
	sys/dev/raidframe/raidframevar.h: revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.316
	sys/dev/raidframe/rf_reconstruct.c: revision 1.121
Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.
The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!
This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.
XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.
XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7
Fixes PR#49244.

Revision 1.250.4.6.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 20 15:52:10 2014 UTC (10 years ago) by sborrill
Branches: netbsd-5-1
Diff to: previous 1.250.4.6: preferred, colored; next MAIN 1.250.4.7: preferred, colored
Changes since revision 1.250.4.6: +6 -2 lines
Pull up the following revisions(s) (requested by oster in ticket #1933):
	sys/dev/raidframe/raidframevar.h:	revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.316
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.121 via patch

Fix a long-standing bug related to rebooting while a reconstruct-to-spare
is underway but not yet complete. Fixes PR kern/49244.

Revision 1.250.4.13.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 20 12:25:10 2014 UTC (10 years ago) by sborrill
Branches: netbsd-5-2
Diff to: previous 1.250.4.13: preferred, colored; next MAIN 1.250.4.14: preferred, colored
Changes since revision 1.250.4.13: +6 -2 lines
Pull up the following revisions(s) (requested by oster in ticket #1933):
	sys/dev/raidframe/raidframevar.h:	revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.316
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.121 via patch

Fix a long-standing bug related to rebooting while a reconstruct-to-spare
is underway but not yet complete. Fixes PR kern/49244.

Revision 1.250.4.14: download - view: text, markup, annotated - select for diffs
Thu Nov 20 09:38:56 2014 UTC (10 years ago) by sborrill
Branches: netbsd-5
Diff to: previous 1.250.4.13: preferred, colored; branchpoint 1.250: preferred, colored; next MAIN 1.251: preferred, colored
Changes since revision 1.250.4.13: +6 -2 lines
Pull up the following revisions(s) (requested by oster in ticket #1933):
	sys/dev/raidframe/raidframevar.h:	revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.316
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.121 via patch

Fix a long-standing bug related to rebooting while a reconstruct-to-spare
is underway but not yet complete. Fixes PR kern/49244.

Revision 1.312.2.3: download - view: text, markup, annotated - select for diffs
Tue Nov 18 18:03:10 2014 UTC (10 years ago) by snj
Branches: netbsd-7
Diff to: previous 1.312.2.2: preferred, colored; branchpoint 1.312: preferred, colored
Changes since revision 1.312.2.2: +6 -2 lines
Pull up following revision(s) (requested by oster in ticket #243):
	sys/dev/raidframe/raidframevar.h: revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.316
	sys/dev/raidframe/rf_reconstruct.c: revision 1.121
Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.
The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!
This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.
XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.
XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7
Fixes PR#49244.

Revision 1.316: download - view: text, markup, annotated - select for diffs
Fri Nov 14 14:29:16 2014 UTC (10 years ago) by oster
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.315: preferred, colored
Changes since revision 1.315: +6 -2 lines


Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.

The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!

This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.

XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.

XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7

Fixes PR#49244.

Revision 1.312.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 11 10:42:22 2014 UTC (10 years, 1 month ago) by martin
Branches: netbsd-7
Diff to: previous 1.312.2.1: preferred, colored; branchpoint 1.312: preferred, colored
Changes since revision 1.312.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.312.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 11 10:36:41 2014 UTC (10 years, 1 month ago) by martin
Branches: netbsd-7
Diff to: previous 1.312: preferred, colored
Changes since revision 1.312: +7 -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.315: download - view: text, markup, annotated - select for diffs
Tue Nov 4 07:51:55 2014 UTC (10 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.314: preferred, colored
Changes since revision 1.314: +7 -2 lines
support DIOCMWEDGES ioctl.

Revision 1.314: download - view: text, markup, annotated - select for diffs
Sat Oct 11 12:36:25 2014 UTC (10 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.313: preferred, colored
Changes since revision 1.313: +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.313: download - view: text, markup, annotated - select for diffs
Sat Oct 11 12:01:27 2014 UTC (10 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.312: preferred, colored
Changes since revision 1.312: +7 -4 lines
clamp total number of sectors to UINT32_MAX instead of providing the
lower 32bit of the 64bit number.

Revision 1.298.2.4: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:49 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.298.2.3: preferred, colored; branchpoint 1.298: preferred, colored
Changes since revision 1.298.2.3: +96 -28 lines
Rebase to HEAD as of a few days ago.

Revision 1.308.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:57 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.308: preferred, colored; next MAIN 1.309: preferred, colored
Changes since revision 1.308: +21 -5 lines
Rebase.

Revision 1.312: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:10:38 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.311: preferred, colored
Changes since revision 1.311: +3 -2 lines
Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.

Revision 1.311: download - view: text, markup, annotated - select for diffs
Fri Jul 25 08:02:20 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
Diff to: previous 1.310: preferred, colored
Changes since revision 1.310: +3 -2 lines
Add d_discard to all struct bdevsw instances I could find.

I've set them all to nodiscard. Some of them (wd, dk, vnd, ld,
raidframe, maybe cgd) should be implemented for real.

Revision 1.294.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:35 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.294.2.3: preferred, colored; branchpoint 1.294: preferred, colored; next MAIN 1.295: preferred, colored
Changes since revision 1.294.2.3: +264 -241 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.304.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:46 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.304: preferred, colored; next MAIN 1.305: preferred, colored
Changes since revision 1.304: +96 -30 lines
sync with head

Revision 1.310: download - view: text, markup, annotated - select for diffs
Mon May 12 15:53:01 2014 UTC (10 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.309: preferred, colored
Changes since revision 1.309: +18 -4 lines
restore defaulting to the 'a' partition for booting with root on raid as
it was before, and explain why we do things this way.

Revision 1.309: download - view: text, markup, annotated - select for diffs
Thu May 8 20:36:15 2014 UTC (10 years, 7 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.308: preferred, colored
Changes since revision 1.308: +3 -3 lines
Revert default strategy change from 1.298 (which has since moved).

Reverting to "fcfs" nearly doubles the speed of sequential reads from
a level-1 RAID (previously using the default of "priocscan").

Needs pullup via patch for netbsd-6.

Revision 1.308: download - view: text, markup, annotated - select for diffs
Thu Apr 3 18:55:26 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
Branch point for: tls-earlyentropy
Diff to: previous 1.307: preferred, colored
Changes since revision 1.307: +24 -14 lines
Add a "soft" root option, leaving the current default as "force root", so
as not to break existing configurations.

Revision 1.307: download - view: text, markup, annotated - select for diffs
Thu Apr 3 15:30:52 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.306: preferred, colored
Changes since revision 1.306: +21 -10 lines
Fix bugs in raidframe + wedge and root interaction:
1. Don't call cpu_rootconf() just to setup booted_device. Calling cpu_rootconf()
   multiple times can have nasty side effects (aside from printing root device
   twice). Instead for those who have it, call cpu_bootconf() which is intended
   just for that.
2. If the raid component devices are wedges, then matching the booted_device
   against the wedges will never work; match instead on the wedges parent.
   XXX: perhaps should keep looking if the parent is a wedge too?

Revision 1.306: download - view: text, markup, annotated - select for diffs
Wed Apr 2 02:17:01 2014 UTC (10 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.305: preferred, colored
Changes since revision 1.305: +31 -14 lines
If we are autoconfiguring root, then only change the booted_device if
we booted from one of the components of the root raid set. This allows
us to boot from other media, without forcing the found raid to always
be root. Allow the old behavior with RAIDFRAME_FORCE_ROOT.
XXX: cpu_rootconf() is called twice now, which prints the booted device
message twice. Perhaps we can remember that cpu_rootconf has been called
and avoid calling it twice to avoid that.

Revision 1.305: download - view: text, markup, annotated - select for diffs
Sun Mar 16 05:20:29 2014 UTC (10 years, 8 months ago) by dholland
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Diff to: previous 1.304: preferred, colored
Changes since revision 1.304: +20 -6 lines
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

Revision 1.298.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:21 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.298.2.2: preferred, colored; branchpoint 1.298: preferred, colored
Changes since revision 1.298.2.2: +174 -217 lines
resync from head

Revision 1.304: download - view: text, markup, annotated - select for diffs
Wed May 29 00:47:49 2013 UTC (11 years, 6 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.303: preferred, colored
Changes since revision 1.303: +15 -30 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.303: download - view: text, markup, annotated - select for diffs
Thu May 23 14:15:52 2013 UTC (11 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.302: preferred, colored
Changes since revision 1.302: +8 -3 lines
PR/47846: Frank Kardel: panic/lockups in raidframe during detach at shutdown
XXX: Fix this properly by using the memory allocated from the autoconf
subsystem and use raidput in all the places needed.

Revision 1.302: download - view: text, markup, annotated - select for diffs
Mon Apr 29 21:21:10 2013 UTC (11 years, 7 months ago) by christos
Branches: MAIN
CVS tags: khorben-n900
Diff to: previous 1.301: preferred, colored
Changes since revision 1.301: +4 -3 lines
Set the raidid and the softc together in both places where we initialize
raidPtr.

Revision 1.301: download - view: text, markup, annotated - select for diffs
Sun Apr 28 03:12:37 2013 UTC (11 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.300: preferred, colored
Changes since revision 1.300: +2 -3 lines
no need for raid.h

Revision 1.300: download - view: text, markup, annotated - select for diffs
Sat Apr 27 21:18:42 2013 UTC (11 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.299: preferred, colored
Changes since revision 1.299: +153 -186 lines
allocate devices dynamically.

Revision 1.298.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:30 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.298.2.1: preferred, colored; branchpoint 1.298: preferred, colored
Changes since revision 1.298.2.1: +6 -6 lines
resync with head

Revision 1.299: download - view: text, markup, annotated - select for diffs
Mon Feb 18 19:42:54 2013 UTC (11 years, 9 months ago) by oster
Branches: MAIN
CVS tags: agc-symver-base, agc-symver
Diff to: previous 1.298: preferred, colored
Changes since revision 1.298: +6 -6 lines
Fix a few spelling issues.  No functional changes.

Revision 1.294.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:59 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.294.2.2: preferred, colored; branchpoint 1.294: preferred, colored
Changes since revision 1.294.2.2: +46 -4 lines
sync with head

Revision 1.250.4.13: download - view: text, markup, annotated - select for diffs
Wed Oct 24 03:03:53 2012 UTC (12 years, 1 month ago) by riz
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE
Branch point for: netbsd-5-2
Diff to: previous 1.250.4.12: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.12: +45 -3 lines

sys/dev/raidframe/rf_netbsdkintf.c		patch

	Implement DIOCGSTRATEGY and DIOCSSTRATEGY for raidframe devices.
	(The default strategy is not changed)
	[buhrow, ticket #1788]

Revision 1.298.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 17 01:36:13 2012 UTC (12 years, 1 month ago) by tls
Branches: tls-maxphys
Diff to: previous 1.298: preferred, colored
Changes since revision 1.298: +28 -5 lines
Add a minphys routine for raidframe.

For now, we will address the problem of someone adding, at runtime with
a filesystem mounted, a drive to an existing RAID set, that drive being
on a different controller or bus such that it has a smaller maximum
transfer size than the smallest such size of any component previously
in the set, by clamping RAIDframe's reported maximum transfer size at
the old MAXPHYS value multiplied by the number of data disks in the
set.

In the future, we could either implement transfer-splitting to
the device specific maxphys in a generic way for all disks (Manuel's
proposal, and probably the best solution) or simply forbid adding
new components to RAID sets while running if those new components
have a smaller maxphys than that of any component already in the set
(my proposal; less flexible but a lot less code to write).

Anyway, now you should be able to see your 5 disk RAID5 set do
256k transfers through the filesystem -- 64k per component
instead of 64K total.  A win!

Revision 1.295.6.2: download - view: text, markup, annotated - select for diffs
Mon Aug 13 19:41:29 2012 UTC (12 years, 3 months ago) by riz
Branches: netbsd-6
CVS tags: 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-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6-1, netbsd-6-0
Diff to: previous 1.295.6.1: preferred, colored; branchpoint 1.295: preferred, colored
Changes since revision 1.295.6.1: +46 -4 lines
Pull up following revision(s) (requested by buhrow in ticket #488):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.298
Implement DIOCGSTRATEGY and DIOCSSTRATEGY to allow raidframe to use
different buffer queue strategies.
Initialize raid sets to use the default buffer queue strategy for the given
architecture, rather than forcing raidframe to use  fcfs in all cases.
This should cause raidframe to use the same buffer queue strategy as the
underlying disks.
On I386, I see performance enhancements of between 14 and 16% with raid5
sets with no other change.
See http://mail-index.NetBSD.org/tech-kern/2012/08/08/msg013758.html
for a discussion of this issue.

Revision 1.298: download - view: text, markup, annotated - select for diffs
Thu Aug 9 23:53:25 2012 UTC (12 years, 4 months ago) by buhrow
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.297: preferred, colored
Changes since revision 1.297: +46 -4 lines


Implement DIOCGSTRATEGY and DIOCSSTRATEGY to allow raidframe to use
different buffer queue strategies.
Initialize raid sets to use the default buffer queue strategy for the given
architecture, rather than forcing raidframe to use  fcfs in all cases.
This should cause raidframe to use the same buffer queue strategy as the
underlying disks.
On I386, I see performance enhancements of between 14 and 16% with raid5
sets with no other change.
See http://mail-index.NetBSD.org/tech-kern/2012/08/08/msg013758.html
for a discussion of this issue.

Revision 1.250.4.12: download - view: text, markup, annotated - select for diffs
Wed Jun 13 14:00:49 2012 UTC (12 years, 5 months ago) by sborrill
Branches: netbsd-5
Diff to: previous 1.250.4.11: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.11: +41 -21 lines
Pull up the following revisions(s) (requested by mrg in ticket #1774):
	sbin/raidctl/raidctl.c:			revision 1.52
	sys/dev/raidframe/raidframevar.h:	revision 1.15
	sys/dev/raidframe/rf_copyback.c:	revision 1.45
	sys/dev/raidframe/rf_disks.c:		revision 1.78
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.282,1.284
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.111

Fix garbage values in partitionSizeHi with RAID array > 2TB. Stops the check against
rf_component_label_partitionsize() failing and stopping auto-configure.

Revision 1.295.4.2: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:59 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.295.4.1: preferred, colored; branchpoint 1.295: preferred, colored; next MAIN 1.296: preferred, colored
Changes since revision 1.295.4.1: +10 -3 lines
sync to latest -current.

Revision 1.294.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:00 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.294.2.1: preferred, colored; branchpoint 1.294: preferred, colored
Changes since revision 1.294.2.1: +42 -4 lines
sync with head

Revision 1.297: download - view: text, markup, annotated - select for diffs
Sat Apr 7 01:39:38 2012 UTC (12 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Diff to: previous 1.296: preferred, colored
Changes since revision 1.296: +10 -3 lines
If our raid is now accessed from wedges, adjust the root to be the wedge
that corresponds to partition a. Is there a better way?

Revision 1.295.6.1: download - view: text, markup, annotated - select for diffs
Wed Mar 21 16:14:57 2012 UTC (12 years, 8 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +34 -3 lines
Pull up following revision(s) (requested by buhrow in ticket #133):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.296
Add the ability to autoconfigure raid components on raw disks.
This change causes components on raw disks, as opposed to components inside
partitions or wedges, to be autoconfigured if the raid set is configured
for autoconfiguration.
Approved by oster@ and mrg@ for submission after the NetBSD-6 tag.  I've
been running these changes in production at my day job for over a year
without a problem.
See http://mail-index.NetBSD.org/tech-kern/2010/11/09/msg009167.html
for the original discussion of this patch and for a version of this patch
that works with NetBSD-5.x systems.

Revision 1.295.4.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:56 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +34 -3 lines
merge to -current.

Revision 1.296: download - view: text, markup, annotated - select for diffs
Thu Feb 16 06:52:03 2012 UTC (12 years, 9 months ago) by buhrow
Branches: MAIN
CVS tags: jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Diff to: previous 1.295: preferred, colored
Changes since revision 1.295: +34 -3 lines


Add the ability to autoconfigure raid components on raw disks.
This change causes components on raw disks, as opposed to components inside
partitions or wedges, to be autoconfigured if the raid set is configured
for autoconfiguration.

Approved by oster@ and mrg@ for submission after the NetBSD-6 tag.  I've
been running these changes in production at my day job for over a year
without a problem.

See http://mail-index.NetBSD.org/tech-kern/2010/11/09/msg009167.html
for the original discussion of this patch and for a version of this patch
that works with NetBSD-5.x systems.

Revision 1.294.2.1: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:31:47 2011 UTC (13 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +18 -14 lines
sync with head

Revision 1.295: download - view: text, markup, annotated - select for diffs
Sat Nov 5 16:40:35 2011 UTC (13 years, 1 month ago) by erh
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: netbsd-6, jmcneill-usbmp
Diff to: previous 1.294: preferred, colored
Changes since revision 1.294: +18 -14 lines
Statically initialize the raidautoconfig variable when RAID_AUTOCONFIG is set,
instead of setting it in code, so it can easily be checked and changed in an
on-disk kernel with gdb.  Use a separate raidautoconfigdone variable to keep
track of whether raid configuration has actually occurred.

Revision 1.294: download - view: text, markup, annotated - select for diffs
Wed Aug 3 14:44:38 2011 UTC (13 years, 4 months ago) by oster
Branches: MAIN
CVS tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Diff to: previous 1.293: preferred, colored
Changes since revision 1.293: +3 -3 lines

Remove unused 'struct lwp *' from rf_getdisksize.  No functional changes.

Revision 1.293: download - view: text, markup, annotated - select for diffs
Sat Jul 30 12:08:36 2011 UTC (13 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.292: preferred, colored
Changes since revision 1.292: +3 -3 lines
Add an FSILENT flag and use it to suppress "Medium Not Present" scsipi
spam when trying to access offline drives at boot.

Revision 1.292: download - view: text, markup, annotated - select for diffs
Fri Jul 29 19:55:50 2011 UTC (13 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.291: preferred, colored
Changes since revision 1.291: +6 -5 lines
In rf_disks.c make sure ser_values and ser_count arrays are
initialized before use.

Validate the component label before considering a component for use,
and make sure we only consider components that are optimal.

Fixes PR#44251.  All atf RAIDframe tests now pass.

Revision 1.280.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:33 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.280: preferred, colored; next MAIN 1.281: preferred, colored
Changes since revision 1.280: +95 -116 lines
Sync with HEAD.

Revision 1.273.2.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:53 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.273.2.2: preferred, colored; branchpoint 1.273: preferred, colored; next MAIN 1.274: preferred, colored
Changes since revision 1.273.2.2: +52 -53 lines
sync with head

Revision 1.250.4.11: download - view: text, markup, annotated - select for diffs
Fri May 20 19:24:54 2011 UTC (13 years, 6 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.250.4.10: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.10: +4 -2 lines
Pull up following revision(s) (requested by buhrow in ticket #1615):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.280 via patch
PR/44340: Brian Buhrow: Raid sets containing wedges cannot be unconfigured
and reconfigured without a reboot.

Revision 1.291: download - view: text, markup, annotated - select for diffs
Wed May 11 18:13:12 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.290: preferred, colored
Changes since revision 1.290: +22 -22 lines
convert the main raidPtr mutex to a kmutex, and add a couple of cv's to
cover the old sleep/wakeup points for adding_hot_spare and waitForReconCond.
convert all remaining simple_lock's to kmutexes (they're not used or compiled
right now... even with all options enabled) and remove the support for them.

this leaves just a pair of tsleep()/wakeup() calls using old scheduling APIs.

Revision 1.290: download - view: text, markup, annotated - select for diffs
Tue May 10 05:08:51 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.289: preferred, colored
Changes since revision 1.289: +4 -2 lines
print "raidN: detached" when unconfiguring a raid device.

Revision 1.289: download - view: text, markup, annotated - select for diffs
Thu May 5 04:20:51 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.288: preferred, colored
Changes since revision 1.288: +8 -8 lines
finish porting mcpair users to kmutex, and fix a couple of declarations
in rf_netbsdkintf.c.  fixes i386/conf/ALL build.

Revision 1.288: download - view: text, markup, annotated - select for diffs
Sun May 1 06:22:54 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.287: preferred, colored
Changes since revision 1.287: +4 -4 lines
convert rf_tracing_mutex to a kmutex.

Revision 1.287: download - view: text, markup, annotated - select for diffs
Sun May 1 05:44:47 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.286: preferred, colored
Changes since revision 1.286: +21 -18 lines
convert the (unused) rf_sparet_wait_mutex to a real mutex/cv.

Revision 1.286: download - view: text, markup, annotated - select for diffs
Wed Apr 27 07:55:15 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.285: preferred, colored
Changes since revision 1.285: +9 -9 lines
prepare to convert more raidframe old lock/sleep APIs to mutex/condvar:

- remove RF_DECLARE_EXTERN_MUTEX and RF_DECLARE_STATIC_MUTEX, the qualifier
  can be provided at the use point with the normal define
- rename the *LGMGR_MUTEX() macros to *mutex2() names, and add some more
  defines for use:
	rf_declare_mutex2()
	rf_declare_cond2()
	rf_lock_mutex2()
	rf_unlock_mutex2()
	rf_init_mutex2()
	rf_destroy_mutex2()
	rf_init_cond2()
	rf_destroy_cond2()
	rf_wait_cond2()
	rf_signal_cond2()
	rf_broadcast_cond2()
- use the new names for the configureMutex(), which previous used some combo
  of direct mutex* calls and macros
- convert the node_queue to use a mutex/cv combo
- in rf_ShutdownEngine() and DAGExecutionThread(), also signal the former from
  the latter when it is done and about to exit
- convert iodone_lock to use the new macros

Revision 1.285: download - view: text, markup, annotated - select for diffs
Sat Apr 23 06:29:05 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.284: preferred, colored
Changes since revision 1.284: +11 -17 lines
convert the iodone_lock to a mutex, and use a condvar for signalling.

this only handles the smallest use of old simple_lock/tsleep/wakeup
APIs inside raidframe, and it points out that cv(9)'s have only one
wait channel per cv, whereas each tsleep() caller can specify a
different wait channel.  this change removes the difference between
normal raidio and waiting for IO during shutdown.

i've tested this one 3 systems, ran atf, and had mlelstv and rmind
review the change.

Revision 1.273.2.2: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:42:01 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.273.2.1: preferred, colored; branchpoint 1.273: preferred, colored
Changes since revision 1.273.2.1: +25 -9 lines
sync with head

Revision 1.284: download - view: text, markup, annotated - select for diffs
Fri Mar 18 23:53:26 2011 UTC (13 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.283: preferred, colored
Changes since revision 1.283: +27 -11 lines
apply the fix_label hack to partitionSizeHi as well.  it's needed there.
to do so, move the call to fix the label inside of rf_reasonable_label()
itself, so we can fix the partition sizes before calling
rf_component_label_partitionsize() itself.

fixes the failure mode where i had garbage not in numBlocksHi but in
partitionSizeHi, and the check against rf_component_label_partitionsize()
would fail and my raid would not auto-configure.

Revision 1.273.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:03 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +164 -120 lines
sync with head

Revision 1.280.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:29 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.280.4.1: preferred, colored; branchpoint 1.280: preferred, colored; next MAIN 1.281: preferred, colored
Changes since revision 1.280.4.1: +16 -14 lines
Sync with HEAD

Revision 1.283: download - view: text, markup, annotated - select for diffs
Fri Mar 4 17:45:17 2011 UTC (13 years, 9 months ago) by oster
Branches: MAIN
CVS tags: bouyer-quota2-nbase
Diff to: previous 1.282: preferred, colored
Changes since revision 1.282: +2 -4 lines
Remove bogus RF_ASSERT that must have crept in by accident.
Thanks to Jan-Hinrich Fessel for reporting the issue.

Revision 1.282: download - view: text, markup, annotated - select for diffs
Sat Feb 19 07:11:09 2011 UTC (13 years, 9 months ago) by enami
Branches: MAIN
Diff to: previous 1.281: preferred, colored
Changes since revision 1.281: +16 -12 lines
Define accessors for number of blocks and partition size in the
component label and use them where appropriate.  Disscussed on tech-kern.

Revision 1.280.4.1: download - view: text, markup, annotated - select for diffs
Thu Feb 17 12:00:15 2011 UTC (13 years, 9 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +4 -42 lines
Sync with HEAD

Revision 1.281: download - view: text, markup, annotated - select for diffs
Tue Feb 8 20:20:27 2011 UTC (13 years, 10 months ago) by rmind
Branches: MAIN
CVS tags: bouyer-quota2-base
Diff to: previous 1.280: preferred, colored
Changes since revision 1.280: +4 -42 lines
Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.

Revision 1.250.4.10: download - view: text, markup, annotated - select for diffs
Fri Jan 7 23:27:51 2011 UTC (13 years, 11 months ago) by riz
Branches: netbsd-5
Diff to: previous 1.250.4.9: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.9: +22 -2 lines
Pull up following revision(s) (requested by mrg in ticket #1511):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.278
add a hack to fix up old labels that do not have zero's in numBlocksHi:
if the total sectors reported (via disklabel or otherwise) is smaller
than 2^32, but numBlocksHi is set, zero it out instead.
tested by myself and christos, should fix reports of weirdness seen.

Revision 1.250.4.9: download - view: text, markup, annotated - select for diffs
Fri Jan 7 23:25:59 2011 UTC (13 years, 11 months ago) by riz
Branches: netbsd-5
Diff to: previous 1.250.4.8: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.8: +105 -42 lines
Pull up following revision(s) (requested by mrg in ticket #1522):
	sys/dev/raidframe/rf_disks.c: revision 1.76
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.276
apply my patch to support non-512K sector disks (at least, upto 16KB
sector disks..)  from my tech-kern post:
the following patch let's me access both 512 byte and 4K
sector disks at the same time, as long as they are in
separate raids.  the existing rf code assumes/enforces
this part, i just made it support other sets concurrently.
the main change is moving the parity bitmap to the sector
after the component label sector(s), instead of being
immediately after the label, which meant it was on the same
sector as the label for >1024 byte devices.
i'm a little annoyed at having to add a 2nd call to
getdisksize() to enable auto-configure to work, but i
don't see another way that wasn't much uglier.

Revision 1.280: download - view: text, markup, annotated - select for diffs
Fri Jan 7 19:52:18 2011 UTC (13 years, 11 months ago) by christos
Branches: MAIN
CVS tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.279: preferred, colored
Changes since revision 1.279: +3 -2 lines
PR/44340: Brian Buhrow: Raid sets containing wedges cannot be unconfigured
and reconfigured without a reboot.

Revision 1.279: download - view: text, markup, annotated - select for diffs
Wed Dec 22 05:51:19 2010 UTC (13 years, 11 months ago) by christos
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.278: preferred, colored
Changes since revision 1.278: +4 -3 lines
print the error code for writing parity.

Revision 1.278: download - view: text, markup, annotated - select for diffs
Sat Dec 11 03:12:10 2010 UTC (14 years ago) by mrg
Branches: MAIN
Diff to: previous 1.277: preferred, colored
Changes since revision 1.277: +22 -2 lines
add a hack to fix up old labels that do not have zero's in numBlocksHi:
if the total sectors reported (via disklabel or otherwise) is smaller
than 2^32, but numBlocksHi is set, zero it out instead.

tested by myself and christos, should fix reports of weirdness seen.

Revision 1.277: download - view: text, markup, annotated - select for diffs
Wed Dec 8 16:18:06 2010 UTC (14 years ago) by christos
Branches: MAIN
Diff to: previous 1.276: preferred, colored
Changes since revision 1.276: +10 -13 lines
PR/44207: Wolfgang.Stukenbrock:
    memory-leak in raid-ioctl(RAIDFRAME_GET_COMPONENT_LAB

Revision 1.276: download - view: text, markup, annotated - select for diffs
Sat Dec 4 10:01:16 2010 UTC (14 years ago) by mrg
Branches: MAIN
Diff to: previous 1.275: preferred, colored
Changes since revision 1.275: +105 -42 lines
apply my patch to support non-512K sector disks (at least, upto 16KB
sector disks..)  from my tech-kern post:


the following patch let's me access both 512 byte and 4K
sector disks at the same time, as long as they are in
separate raids.  the existing rf code assumes/enforces
this part, i just made it support other sets concurrently.

the main change is moving the parity bitmap to the sector
after the component label sector(s), instead of being
immediately after the label, which meant it was on the same
sector as the label for >1024 byte devices.

i'm a little annoyed at having to add a 2nd call to
getdisksize() to enable auto-configure to work, but i
don't see another way that wasn't much uglier.

Revision 1.250.4.8: download - view: text, markup, annotated - select for diffs
Sun Nov 21 22:06:53 2010 UTC (14 years ago) by riz
Branches: netbsd-5
CVS tags: matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.250.4.7: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.7: +19 -8 lines
Pull up following revision(s) (requested by mrg in ticket #1468):
	sys/dev/raidframe/rf_disks.c: revision 1.74
	sys/dev/raidframe/raidframevar.h: revision 1.14
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.275
	sys/dev/raidframe/rf_copyback.c: revision 1.43
	sys/dev/raidframe/rf_reconstruct.c: revision 1.109
add support for >2TB raid devices.
- - add two new members to the component label:
     u_int numBlocksHi
     u_int partitionSizeHi
  and store the top 32 bits of the real number of blocks and
  partition size.  modify rf_print_component_label(),
  rf_does_it_fit(), rf_AutoConfigureDisks() and
  rf_ReconstructFailedDiskBasic().
- - call disk_blocksize() after disk_attach() [ from mlelstv ]
- - shift the block number relative to DEV_BSHIFT in raidstart()
  and InitBP() so that accesses work for non 512-byte devices.
  [ from mlelstv ]
- - update rf_getdisksize() to use the new getdisksize() [ from
  mlelstv.  this part needs a separate change for netbsd-5. ]
reviewed by: oster, christos and darrenr

Revision 1.250.4.7: download - view: text, markup, annotated - select for diffs
Sat Nov 20 17:41:26 2010 UTC (14 years ago) by riz
Branches: netbsd-5
Diff to: previous 1.250.4.6: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.6: +7 -17 lines
Pull up following revision(s) (requested by hubertf in ticket #1386):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.258
	sys/dev/pad/pad.c: revision 1.11
	sys/dev/scsipi/cd.c: revision 1.288
	sys/dev/isa/pcppi.c: revision 1.33
	sys/kern/subr_autoconf.c: revision 1.169
'boot -z' bogons

Revision 1.271.2.3: download - view: text, markup, annotated - select for diffs
Sat Nov 6 08:08:33 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.271.2.2: preferred, colored; branchpoint 1.271: preferred, colored; next MAIN 1.272: preferred, colored
Changes since revision 1.271.2.2: +19 -21 lines
Sync with HEAD.

Revision 1.275: download - view: text, markup, annotated - select for diffs
Mon Nov 1 02:35:25 2010 UTC (14 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: uebayasi-xip-base4
Diff to: previous 1.274: preferred, colored
Changes since revision 1.274: +19 -21 lines
add support for >2TB raid devices.

- add two new members to the component label:
     u_int numBlocksHi
     u_int partitionSizeHi
  and store the top 32 bits of the real number of blocks and
  partition size.  modify rf_print_component_label(),
  rf_does_it_fit(), rf_AutoConfigureDisks() and
  rf_ReconstructFailedDiskBasic().

- call disk_blocksize() after disk_attach() [ from mlelstv ]

- shift the block number relative to DEV_BSHIFT in raidstart()
  and InitBP() so that accesses work for non 512-byte devices.
  [ from mlelstv ]

- update rf_getdisksize() to use the new getdisksize() [ from
  mlelstv.  this part needs a separate change for netbsd-5. ]


reviewed by: oster, christos and darrenr

Revision 1.271.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:36 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.271.2.1: preferred, colored; branchpoint 1.271: preferred, colored
Changes since revision 1.271.2.1: +1 -1 lines
Sync with HEAD.

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

Revision 1.274: download - view: text, markup, annotated - select for diffs
Sun Aug 8 18:25:14 2010 UTC (14 years, 4 months ago) by chs
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.273: preferred, colored
Changes since revision 1.273: +3 -3 lines
only print the boot-time message if we're being verbose.

Revision 1.271.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:47 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +14 -4 lines
Sync with HEAD.

Revision 1.250.4.4.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:51 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.250.4.4: preferred, colored; next MAIN 1.250.4.5: preferred, colored
Changes since revision 1.250.4.4: +233 -150 lines
sync to netbsd-5

Revision 1.273: download - view: text, markup, annotated - select for diffs
Sun Mar 14 21:11:41 2010 UTC (14 years, 9 months ago) by jld
Branches: MAIN
CVS tags: uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.272: preferred, colored
Changes since revision 1.272: +10 -2 lines
For RAID sets which have no parity (i.e., RAID level 0) and therefore can
never have a parity map, make the parity map ioctls fail with EINVAL.

This makes `raidctl -m` print a scary-looking error on such sets, which
is an improvement over the previous behavior of falsely claiming that
the parity map would be enabled on the next configuration.

Revision 1.245.4.6: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:01 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.245.4.5: preferred, colored; branchpoint 1.245: preferred, colored
Changes since revision 1.245.4.5: +246 -162 lines
sync with head

Revision 1.250.4.6: download - view: text, markup, annotated - select for diffs
Sat Mar 6 20:56:15 2010 UTC (14 years, 9 months ago) by sborrill
Branches: netbsd-5
CVS tags: 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
Branch point for: netbsd-5-1
Diff to: previous 1.250.4.5: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.5: +6 -4 lines
Pull up the following revisions(s) (requested by oster in ticket #1324):
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.272

Don't merge a good parity map with random stuff in the event that the
first component is missing.  (Since the merging just OR's the maps,
this isn't that big a deal, as it will just over-estimate the
amount of checking that needs to be done.)

Revision 1.272: download - view: text, markup, annotated - select for diffs
Mon Mar 1 14:51:58 2010 UTC (14 years, 9 months ago) by oster
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Diff to: previous 1.271: preferred, colored
Changes since revision 1.271: +6 -4 lines
Don't merge a good parity map with random stuff in the event that the
first component is missing.  (Since the merging just OR's the maps,
this isn't that big of a deal, as it will just over-estimate the
amount of checking that needs to be done.)

Revision 1.250.4.5: download - view: text, markup, annotated - select for diffs
Thu Dec 10 22:59:17 2009 UTC (15 years ago) by snj
Branches: netbsd-5
Diff to: previous 1.250.4.4: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.4: +231 -150 lines
Pull up following revision(s) (requested by tron in ticket #1187):
	sbin/raidctl/raidctl.8: revisions 1.57-1.59 via patch
	sbin/raidctl/raidctl.c: revision 1.42 via patch
	sys/dev/raidframe/files.raidframe: revision 1.8 via patch
	sys/dev/raidframe/rf_copyback.c: revision 1.42 via patch
	sys/dev/raidframe/rf_disks.c: revision 1.72 via patch
	sys/dev/raidframe/rf_driver.c: revision 1.122 via patch
	sys/dev/raidframe/rf_engine.c: revision 1.40 via patch
	sys/dev/raidframe/rf_kintf.h: revision 1.21 via patch
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.269 via patch
	sys/dev/raidframe/rf_paritymap.c: revisions 1.1-1.3 via patch
	sys/dev/raidframe/rf_paritymap.h: revision 1.1 via patch
	sys/dev/raidframe/rf_parityscan.c: revision 1.33 via patch
	sys/dev/raidframe/rf_parityscan.h: revision 1.8 via patch
	sys/dev/raidframe/rf_raid.h: revision 1.38 via patch
	sys/dev/raidframe/rf_reconstruct.c: revision 1.108 via patch
	sys/dev/raidframe/rf_states.c: revision 1.44 via patch
	sys/dev/raidframe/raidframeio.h: revision 1.6 via patch
	sys/dev/raidframe/raidframevar.h: revision 1.13 via patch
Pull up the RAIDframe parity map Summer Of Code project.
Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Revision 1.271: download - view: text, markup, annotated - select for diffs
Tue Dec 1 01:03:54 2009 UTC (15 years ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip
Diff to: previous 1.270: preferred, colored
Changes since revision 1.270: +8 -8 lines
KNF: whitespace.

Revision 1.270: download - view: text, markup, annotated - select for diffs
Sat Nov 21 21:57:47 2009 UTC (15 years ago) by christos
Branches: MAIN
Diff to: previous 1.269: preferred, colored
Changes since revision 1.269: +4 -4 lines
whitespace police

Revision 1.269: download - view: text, markup, annotated - select for diffs
Tue Nov 17 18:54:26 2009 UTC (15 years ago) by jld
Branches: MAIN
Diff to: previous 1.268: preferred, colored
Changes since revision 1.268: +231 -150 lines
Finally commit the RAIDframe parity map Summer Of Code project.

Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Discussed on tech-kern@ to a general air of approval; exhortations to
commit from mrg@, christos@, and others.

Thanks to Google for their sponsorship, oster@ for mentoring the
project, assorted developers for trying very hard to break it, and
probably more I'm forgetting.

Revision 1.268: download - view: text, markup, annotated - select for diffs
Thu Nov 5 17:52:32 2009 UTC (15 years, 1 month ago) by dyoung
Branches: MAIN
Diff to: previous 1.267: preferred, colored
Changes since revision 1.267: +6 -4 lines
Use deviter(9) instead of accessing alldevs directly.  Compile-tested,
only.

Revision 1.267: download - view: text, markup, annotated - select for diffs
Tue Oct 13 22:46:28 2009 UTC (15 years, 1 month ago) by pooka
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.266: preferred, colored
Changes since revision 1.266: +2 -3 lines
raidframe doesn't need sys/user.h (or at least one would hope so ;)

Revision 1.245.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:47:18 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.245.4.4: preferred, colored; branchpoint 1.245: preferred, colored
Changes since revision 1.245.4.4: +71 -49 lines
sync with head.

Revision 1.255.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:20 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.255.2.1: preferred, colored; next MAIN 1.256: preferred, colored
Changes since revision 1.255.2.1: +9 -2 lines
Sync with HEAD.

Revision 1.266: download - view: text, markup, annotated - select for diffs
Thu Jul 23 21:58:06 2009 UTC (15 years, 4 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Diff to: previous 1.265: preferred, colored
Changes since revision 1.265: +71 -49 lines
Move the RAID shutdown to the raid(4) detachment routine, and use
config_detach(9) to shutdown a RAID.

Detach raid(4) units at shutdown.

Ok by oster@.

Revision 1.245.4.4: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:28 2009 UTC (15 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.245.4.3: preferred, colored; branchpoint 1.245: preferred, colored
Changes since revision 1.245.4.3: +9 -2 lines
sync with head

Revision 1.265: download - view: text, markup, annotated - select for diffs
Wed Jun 10 14:17:13 2009 UTC (15 years, 6 months ago) by pooka
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Diff to: previous 1.264: preferred, colored
Changes since revision 1.264: +5 -2 lines
Attempt bailout if config_attach_pseudo() fails.  Otherwise, a few
moments later, we'll take a fatal plunge because sc_dev is null.

Revision 1.264: download - view: text, markup, annotated - select for diffs
Sat Jun 6 08:10:06 2009 UTC (15 years, 6 months ago) by haad
Branches: MAIN
Diff to: previous 1.263: preferred, colored
Changes since revision 1.263: +3 -3 lines
Fix my previous commit.

Revision 1.263: download - view: text, markup, annotated - select for diffs
Fri Jun 5 21:52:32 2009 UTC (15 years, 6 months ago) by haad
Branches: MAIN
Diff to: previous 1.262: preferred, colored
Changes since revision 1.262: +6 -2 lines
Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@.

Revision 1.245.4.3: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:42 2009 UTC (15 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.245.4.2: preferred, colored; branchpoint 1.245: preferred, colored
Changes since revision 1.245.4.2: +5 -5 lines
sync with head

Revision 1.255.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:16 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +36 -49 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.262: download - view: text, markup, annotated - select for diffs
Tue May 12 13:19:50 2009 UTC (15 years, 7 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, jym-xensuspend-base
Diff to: previous 1.261: preferred, colored
Changes since revision 1.261: +5 -5 lines
struct cfdata * -> cfdata_t, no functional changes intended.

Revision 1.245.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:16 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.245.4.1: preferred, colored; branchpoint 1.245: preferred, colored
Changes since revision 1.245.4.1: +119 -61 lines
sync with head.

Revision 1.261: download - view: text, markup, annotated - select for diffs
Fri May 1 20:43:41 2009 UTC (15 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base3
Diff to: previous 1.260: preferred, colored
Changes since revision 1.260: +13 -15 lines
Use device_t, cfdata_t, device_private().

Revision 1.250.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:27 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.250.2.2: preferred, colored; branchpoint 1.250: preferred, colored; next MAIN 1.251: preferred, colored
Changes since revision 1.250.2.2: +13 -23 lines
Sync with HEAD.

Revision 1.250.4.4: download - view: text, markup, annotated - select for diffs
Sat Apr 4 17:15:14 2009 UTC (15 years, 8 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Diff to: previous 1.250.4.3: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.3: +7 -7 lines
Pull up following revision(s) (requested by sborrill in ticket #652):
	sys/dev/raidframe/rf_disks.c: revision 1.71
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.260
Switch various printfs from %ld and %d to PRIu64, etc. to be more consistent
about types (for instance uint32_t was being printed with %d).

Revision 1.260: download - view: text, markup, annotated - select for diffs
Fri Apr 3 16:23:41 2009 UTC (15 years, 8 months ago) by sborrill
Branches: MAIN
CVS tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.259: preferred, colored
Changes since revision 1.259: +7 -7 lines
Switch various printfs from %ld and %d to PRIu64, etc. to be more consistent
about types (for instance uint32_t was being printed with %d).

Revision 1.259: download - view: text, markup, annotated - select for diffs
Sun Mar 15 17:17:23 2009 UTC (15 years, 8 months ago) by cegger
Branches: MAIN
Diff to: previous 1.258: preferred, colored
Changes since revision 1.258: +3 -3 lines
ansify function definitions

Revision 1.258: download - view: text, markup, annotated - select for diffs
Sat Mar 14 11:08:28 2009 UTC (15 years, 9 months ago) by ad
Branches: MAIN
Diff to: previous 1.257: preferred, colored
Changes since revision 1.257: +7 -17 lines
'boot -z' bogons

Revision 1.250.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:31:51 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.250.2.1: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.2.1: +17 -16 lines
Sync with HEAD.

Revision 1.250.4.3: download - view: text, markup, annotated - select for diffs
Mon Mar 2 20:58:27 2009 UTC (15 years, 9 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC3
Diff to: previous 1.250.4.2: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.2: +11 -3 lines
Pull up following revision(s) (requested by oster in ticket #543):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.256
It seems that some SCSI drivers can block while the spinlock on a given
disk queue is being held.  Work around this by dropping the lock before
bdev_strategy(), and re-grabbing the lock afterwards.  This is a
temporary measure until I get to gutting this queue locking code.
There has been some success with this in addressing PR#39993.
This patch is from Antti Kantee.  Thanks!

Revision 1.257: download - view: text, markup, annotated - select for diffs
Sat Feb 28 23:11:11 2009 UTC (15 years, 9 months ago) by oster
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.256: preferred, colored
Changes since revision 1.256: +2 -11 lines
Nuke a DIAGNOSTIC check that is no longer useful, even for DIAGNOSTIC.

Revision 1.256: download - view: text, markup, annotated - select for diffs
Sat Feb 28 22:02:17 2009 UTC (15 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.255: preferred, colored
Changes since revision 1.255: +11 -3 lines
It seems that some SCSI drivers can block while the spinlock on a given
disk queue is being held.  Work around this by dropping the lock before
bdev_strategy(), and re-grabbing the lock afterwards.  This is a
temporary measure until I get to gutting this queue locking code.

There has been some success with this in addressing PR#39993.
This patch is from Antti Kantee.  Thanks!

Revision 1.250.4.2: download - view: text, markup, annotated - select for diffs
Sun Feb 8 20:02:52 2009 UTC (15 years, 10 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RC2
Diff to: previous 1.250.4.1: preferred, colored; branchpoint 1.250: preferred, colored
Changes since revision 1.250.4.1: +8 -6 lines
Pull up following revision(s) (requested by oster in ticket #430):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.255
Be consistent with wd.c and don't complain loudly if the underlying
device doesn't support flushing the cache.  Fixes an issue (reported
privately) where ST39120A drives are not capable of flushing the
cache, and RAIDFrame was incessantly complaining.

Revision 1.255: download - view: text, markup, annotated - select for diffs
Sat Feb 7 20:36:49 2009 UTC (15 years, 10 months ago) by oster
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.254: preferred, colored
Changes since revision 1.254: +8 -6 lines
Be consistent with wd.c and don't complain loudly if the underlying
device doesn't support flushing the cache.  Fixes an issue (reported
privately) where ST39120A drives are not capable of flushing the
cache, and RAIDFrame was incessantly complaining.

Revision 1.250.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:02 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +77 -9 lines
Sync with HEAD.

Revision 1.254: download - view: text, markup, annotated - select for diffs
Sun Jan 18 16:37:19 2009 UTC (15 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.253: preferred, colored
Changes since revision 1.253: +18 -3 lines
add compat50 ioctls.

Revision 1.243.6.7: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:07 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.243.6.6: preferred, colored; branchpoint 1.243: preferred, colored; next MAIN 1.244: preferred, colored
Changes since revision 1.243.6.6: +59 -6 lines
Sync with HEAD.

Revision 1.250.4.1: download - view: text, markup, annotated - select for diffs
Fri Jan 16 22:43:34 2009 UTC (15 years, 10 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-0-RC1
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +52 -3 lines
Pull up following revision(s) (requested by oster in ticket #268):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.252
Implement DIOCCACHESYNC for RAIDframe too,
should help prevent journal corruption that causes PR#39371

Revision 1.253: download - view: text, markup, annotated - select for diffs
Tue Jan 13 13:35:53 2009 UTC (15 years, 10 months ago) by yamt
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.252: preferred, colored
Changes since revision 1.252: +5 -5 lines
g/c BUFQ_FOO() macros and use bufq_foo() directly.

Revision 1.252: download - view: text, markup, annotated - select for diffs
Sun Jan 11 21:58:41 2009 UTC (15 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.251: preferred, colored
Changes since revision 1.251: +52 -3 lines
Implement DIOCCACHESYNC for RAIDframe too.

Revision 1.248.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:48 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.248.2.1: preferred, colored; branchpoint 1.248: preferred, colored; next MAIN 1.249: preferred, colored
Changes since revision 1.248.2.1: +8 -4 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.251: download - view: text, markup, annotated - select for diffs
Tue Nov 18 14:29:55 2008 UTC (16 years ago) by ad
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.250: preferred, colored
Changes since revision 1.250: +8 -4 lines
_KERNEL_OPT

Revision 1.248.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:04 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +6 -2 lines
Sync with HEAD.

Revision 1.246.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:33:10 2008 UTC (16 years, 2 months ago) by skrll
Branches: wrstuden-revivesa
Diff to: previous 1.246.2.1: preferred, colored; branchpoint 1.246: preferred, colored; next MAIN 1.247: preferred, colored
Changes since revision 1.246.2.1: +6 -2 lines
Sync with HEAD.

Revision 1.243.6.6: download - view: text, markup, annotated - select for diffs
Sun Oct 5 20:11:31 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.243.6.5: preferred, colored; branchpoint 1.243: preferred, colored
Changes since revision 1.243.6.5: +4 -0 lines
Sync with HEAD.

Revision 1.250: download - view: text, markup, annotated - select for diffs
Sun Sep 28 16:17:17 2008 UTC (16 years, 2 months ago) by oster
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Diff to: previous 1.249: preferred, colored
Changes since revision 1.249: +3 -3 lines
Undo previous change to an #if 0.  The code does belong to the
distributed sparing bits, but no-one has compile-tested the code.
Un-breaks the ALL build.

Revision 1.249: download - view: text, markup, annotated - select for diffs
Sat Sep 27 21:58:04 2008 UTC (16 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.248: preferred, colored
Changes since revision 1.248: +7 -3 lines
Cleanup some of the spare table stuff.  It is not needed in the general
case, and is only needed for parity declustering with distributed
sparing.

Revision 1.224.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 25 19:49:57 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.224.2.3: preferred, colored; branchpoint 1.224: preferred, colored; next MAIN 1.225: preferred, colored
Changes since revision 1.224.2.3: +6 -3 lines
Pull up following revision(s) (requested by oster in ticket #984):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.235
We need to initialize dk_driver as well.  Thanks to Ronald Roskens
for reporting the problem and testing the fix.

Revision 1.224.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 25 19:45:22 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.224.2.2: preferred, colored; branchpoint 1.224: preferred, colored
Changes since revision 1.224.2.2: +39 -8 lines
Pull up following revision(s) (requested by oster in ticket #981):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.234
Implement support for drvctl in RAIDframe.  Thanks to jnemeth@ for
initial patch.

Revision 1.224.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 25 19:41:44 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.224.2.1: preferred, colored; branchpoint 1.224: preferred, colored
Changes since revision 1.224.2.1: +4 -5 lines
Pull up following revision(s) (requested by oster in ticket #979):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.228
don't leak a vnode in the wedge case.

Revision 1.243.6.5: download - view: text, markup, annotated - select for diffs
Sun Jun 29 09:33:10 2008 UTC (16 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.243.6.4: preferred, colored; branchpoint 1.243: preferred, colored
Changes since revision 1.243.6.4: +6 -9 lines
Sync with HEAD.

Revision 1.246.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:26 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +8 -11 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.247.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 18 16:33:25 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.247: preferred, colored; next MAIN 1.248: preferred, colored
Changes since revision 1.247: +7 -2 lines
Sync with head.

Revision 1.245.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:14:57 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.245.2.1: preferred, colored; branchpoint 1.245: preferred, colored; next MAIN 1.246: preferred, colored
Changes since revision 1.245.2.1: +8 -11 lines
sync with head.

Revision 1.248: download - view: text, markup, annotated - select for diffs
Mon Jun 16 16:58:26 2008 UTC (16 years, 5 months ago) by oster
Branches: MAIN
CVS tags: yamt-pf42-base4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Diff to: previous 1.247: preferred, colored
Changes since revision 1.247: +7 -2 lines
We don't care about md devices here.  Fixes issue reported by Jukka Salmi
on current-users.  Thanks!

Revision 1.247: download - view: text, markup, annotated - select for diffs
Sat Jun 7 17:50:34 2008 UTC (16 years, 6 months ago) by oster
Branches: MAIN
Branch point for: simonb-wapbl
Diff to: previous 1.246: preferred, colored
Changes since revision 1.246: +3 -11 lines
- Use bdev_strategy() instead of VOP_STRATEGY().
- Don't bother taking the v_interlock or bumping b_vp->v_numoutput --
there won't be any other writers for this bp, and so there's no point
doing this locking song'n'dance.

Patch from Juergen Hannken-Illjes.  Thanks!!!

Addresses PR#38856.  With this change I've been unable to
replicate the hard hangs.

Revision 1.224.8.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:33 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.224: preferred, colored; next MAIN 1.225: preferred, colored
Changes since revision 1.224: +136 -6 lines
Sync with netbsd-4.

Revision 1.243.6.4: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:48 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.243.6.3: preferred, colored; branchpoint 1.243: preferred, colored
Changes since revision 1.243.6.3: +9 -16 lines
Sync with HEAD.

Revision 1.245.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:40 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +2 -9 lines
sync with head.

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

Revision 1.246: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:56 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.245: preferred, colored
Changes since revision 1.245: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.243.6.3: download - view: text, markup, annotated - select for diffs
Sun Apr 6 09:58:51 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.243.6.2: preferred, colored; branchpoint 1.243: preferred, colored
Changes since revision 1.243.6.2: +3 -17 lines
- after some discussion with agc@ i agreed it would be a good idea to move
  device_unregister_* to device_deregister_* to be more like the pmf(9)
  functions, especially since a lot of the time the function calls are next
  to each other.

- add device_register_name() support for dk(4).

Revision 1.245: download - view: text, markup, annotated - select for diffs
Sat Apr 5 18:54:10 2008 UTC (16 years, 8 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.244: preferred, colored
Changes since revision 1.244: +9 -9 lines
use aprint_*_dev and device_xname

Revision 1.243.6.2: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:55 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.243.6.1: preferred, colored; branchpoint 1.243: preferred, colored
Changes since revision 1.243.6.1: +4 -4 lines
Sync with HEAD.

Revision 1.243.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 16:17:57 2008 UTC (16 years, 8 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +33 -3 lines
- etc/devfsd.conf: Add some rules to give nodes like /dev/tty and
  		   /dev/null better default modes, i.e. 0666.

- sbin/init: Run devfsd -s before going to multiuser.

- sys/arch: Provide arm32, i386, sparc with a mem_init() function to request
  	    device nodes for /dev/null, /dev/zero, etc.

- sys/dev: Convert rnd, wd, agp, raid, cd, sd, wsdisplay, wskbd, wsmouse,
	   wsmux, tty, bpf, swap to devfs New World Order.

- sys/fs/devfs: Make the visibility attribute of device nodes configurable.
	        Also provide a function to mount a devfs on boot.

- sys/kern: Add a new boot flag, -n. This disables devfs support. Unless
	    the -n flag is specified the kernel will mount a devfs file
	    system on boot.

Revision 1.187.2.8: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:39:00 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.187.2.7: preferred, colored; next MAIN 1.188: preferred, colored
Changes since revision 1.187.2.7: +4 -4 lines
sync with head.

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

Revision 1.234.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:20 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.234.2.3: preferred, colored; branchpoint 1.234: preferred, colored; next MAIN 1.235: preferred, colored
Changes since revision 1.234.2.3: +9 -5 lines
Sync with HEAD.

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

Revision 1.230.6.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:54:24 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.230.6.2: preferred, colored; branchpoint 1.230: preferred, colored; next MAIN 1.231: preferred, colored
Changes since revision 1.230.6.2: +33 -29 lines
sync with HEAD

Revision 1.239.6.3: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:19 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.239.6.2: preferred, colored; branchpoint 1.239: preferred, colored; next MAIN 1.240: preferred, colored
Changes since revision 1.239.6.2: +0 -1 lines
Sync with HEAD

Revision 1.243: download - view: text, markup, annotated - select for diffs
Fri Jan 4 21:18:05 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +2 -3 lines
Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.239.6.2: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:55:10 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.239.6.1: preferred, colored; branchpoint 1.239: preferred, colored
Changes since revision 1.239.6.1: +15 -6 lines
Sync with HEAD

Revision 1.242: download - view: text, markup, annotated - select for diffs
Wed Jan 2 11:48:38 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +9 -4 lines
Merge vmlocking2 to head.

Revision 1.234.2.3: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:45:26 2007 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.234.2.2: preferred, colored; branchpoint 1.234: preferred, colored
Changes since revision 1.234.2.2: +11 -7 lines
Sync with HEAD.

Revision 1.239.2.2: download - view: text, markup, annotated - select for diffs
Wed Dec 26 21:39:28 2007 UTC (16 years, 11 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.239.2.1: preferred, colored; branchpoint 1.239: preferred, colored; next MAIN 1.240: preferred, colored
Changes since revision 1.239.2.1: +11 -7 lines
Sync with head.

Revision 1.224.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 19 20:07:53 2007 UTC (16 years, 11 months ago) by ghen
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +136 -6 lines
Pull up following revision(s) (requested by oster in ticket #1014):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.231 via patch
Implement dumping kernel cores to RAID 1 sets.  The component used
for the dump is selected in this order of preference:
   1) the master
   2) a used_spare of the master
   3) the slave
   4) a used_spare of the slave

Revision 1.186.2.4: download - view: text, markup, annotated - select for diffs
Wed Dec 19 18:31:14 2007 UTC (16 years, 11 months ago) by ghen
Branches: netbsd-3
Diff to: previous 1.186.2.3: preferred, colored; branchpoint 1.186: preferred, colored; next MAIN 1.187: preferred, colored
Changes since revision 1.186.2.3: +134 -3 lines
Pull up following revision(s) (requested by sborrill in ticket #1892):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.231 via patch
Implement dumping kernel cores to RAID 1 sets.  The component used
for the dump is selected in this order of preference:
   1) the master
   2) a used_spare of the master
   3) the slave
   4) a used_spare of the slave

Revision 1.241: download - view: text, markup, annotated - select for diffs
Tue Dec 18 01:09:46 2007 UTC (16 years, 11 months ago) by oster
Branches: MAIN
CVS tags: vmlocking2-base3
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +10 -6 lines
Fix a 'use after free' issue with wedges and RAIDframe.
Problem reported and fix tested by Jeff Rizzo (Thanks!).

Revision 1.239.6.1: download - view: text, markup, annotated - select for diffs
Thu Dec 13 21:56:05 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +3 -3 lines
Sync with HEAD

Revision 1.239.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:39:57 2007 UTC (17 years ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.239: preferred, colored; next MAIN 1.240: preferred, colored
Changes since revision 1.239: +3 -3 lines
sync with head.

Revision 1.240: download - view: text, markup, annotated - select for diffs
Tue Dec 11 01:54:46 2007 UTC (17 years ago) by oster
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, cube-autoconf-base, cube-autoconf
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +3 -3 lines
Use CFATTACH_DECL_NEW instead of CFATTACH_DECL...  ICB wisdom
is that this will fix the config_devalloc panic.

Revision 1.234.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:54 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.234.2.1: preferred, colored; branchpoint 1.234: preferred, colored
Changes since revision 1.234.2.1: +18 -18 lines
Sync with HEAD.

Revision 1.187.2.6: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:31:04 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.187.2.5: preferred, colored
Changes since revision 1.187.2.5: +18 -21 lines
sync with head

Revision 1.239.2.1: download - view: text, markup, annotated - select for diffs
Tue Dec 4 13:02:58 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +9 -4 lines
Pull the vmlocking changes into a new branch.

Revision 1.230.4.8: download - view: text, markup, annotated - select for diffs
Sat Dec 1 18:11:10 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.230.4.7: preferred, colored; branchpoint 1.230: preferred, colored; next MAIN 1.231: preferred, colored
Changes since revision 1.230.4.7: +7 -7 lines
Sync with HEAD.

Revision 1.239: download - view: text, markup, annotated - select for diffs
Sat Dec 1 18:10:48 2007 UTC (17 years ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2, bouyer-xeni386
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +7 -7 lines
aprintify

Revision 1.230.4.7: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:37:26 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.230.4.6: preferred, colored; branchpoint 1.230: preferred, colored
Changes since revision 1.230.4.6: +13 -13 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.238: download - view: text, markup, annotated - select for diffs
Mon Nov 26 19:01:38 2007 UTC (17 years ago) by pooka
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +13 -13 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.230.4.6: download - view: text, markup, annotated - select for diffs
Wed Nov 21 21:55:46 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.230.4.5: preferred, colored; branchpoint 1.230: preferred, colored
Changes since revision 1.230.4.5: +2 -5 lines
Sync with HEAD.

Revision 1.234.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 19 00:48:21 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +5 -7 lines
Sync with HEAD.

Revision 1.233.2.2: download - view: text, markup, annotated - select for diffs
Sun Nov 18 19:35:40 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.233.2.1: preferred, colored; branchpoint 1.233: preferred, colored; next MAIN 1.234: preferred, colored
Changes since revision 1.233.2.1: +0 -3 lines
Sync with HEAD

Revision 1.237: download - view: text, markup, annotated - select for diffs
Sat Nov 17 18:11:19 2007 UTC (17 years ago) by oster
Branches: MAIN
CVS tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +2 -5 lines
Nuke debugging output that is a) misleading at best, and
b) often just wrong.  Thanks to wiz for catching this.

Revision 1.187.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 15 11:44:31 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.187.2.4: preferred, colored
Changes since revision 1.187.2.4: +42 -10 lines
sync with head.

Revision 1.230.4.5: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:04:35 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.230.4.4: preferred, colored; branchpoint 1.230: preferred, colored
Changes since revision 1.230.4.4: +2 -3 lines
Sync with HEAD.

Revision 1.233.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 13 16:01:36 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +42 -10 lines
Sync with HEAD

Revision 1.236: download - view: text, markup, annotated - select for diffs
Tue Nov 13 11:39:42 2007 UTC (17 years, 1 month ago) by yamt
Branches: MAIN
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +2 -3 lines
don't include <sys/namei.h> unnecessarily.

Revision 1.230.4.4: download - view: text, markup, annotated - select for diffs
Sun Nov 11 16:47:45 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.230.4.3: preferred, colored; branchpoint 1.230: preferred, colored
Changes since revision 1.230.4.3: +5 -3 lines
Sync with HEAD.

Revision 1.230.6.2: download - view: text, markup, annotated - select for diffs
Thu Nov 8 10:59:56 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.230.6.1: preferred, colored; branchpoint 1.230: preferred, colored
Changes since revision 1.230.6.1: +5 -3 lines
sync with -HEAD

Revision 1.235: download - view: text, markup, annotated - select for diffs
Thu Nov 8 04:10:09 2007 UTC (17 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +5 -3 lines
We need to initialize dk_driver as well.  Thanks to Ronald Roskens
for reporting the problem and testing the fix.

Revision 1.230.6.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:30:02 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +181 -22 lines
sync with HEAD

Revision 1.230.4.3: download - view: text, markup, annotated - select for diffs
Sun Nov 4 21:03:28 2007 UTC (17 years, 1 month ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.230.4.2: preferred, colored; branchpoint 1.230: preferred, colored
Changes since revision 1.230.4.2: +39 -8 lines
Sync with HEAD.

Revision 1.226.2.9: download - view: text, markup, annotated - select for diffs
Fri Nov 2 13:28:32 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.226.2.8: preferred, colored; next MAIN 1.227: preferred, colored
Changes since revision 1.226.2.8: +6 -5 lines
InitBP: set b_objlock correctly for the buffer.

Revision 1.234: download - view: text, markup, annotated - select for diffs
Thu Nov 1 04:11:22 2007 UTC (17 years, 1 month ago) by oster
Branches: MAIN
CVS tags: jmcneill-base
Branch point for: mjf-devfs
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +39 -8 lines
Implement support for drvctl in RAIDframe.  Thanks to jnemeth@ for
initial patch.

Revision 1.187.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:34:03 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.187.2.3: preferred, colored
Changes since revision 1.187.2.3: +144 -16 lines
sync with head.

Revision 1.230.4.2: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:47:27 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.230.4.1: preferred, colored; branchpoint 1.230: preferred, colored
Changes since revision 1.230.4.1: +10 -12 lines
Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.230.8.2: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:16 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.230.8.1: preferred, colored; branchpoint 1.230: preferred, colored; next MAIN 1.231: preferred, colored
Changes since revision 1.230.8.1: +10 -12 lines
sync with head.

Revision 1.226.2.8: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:42:01 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.226.2.7: preferred, colored
Changes since revision 1.226.2.7: +136 -6 lines
Sync with head.

Revision 1.233: download - view: text, markup, annotated - select for diffs
Mon Oct 8 18:02:59 2007 UTC (17 years, 2 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +4 -4 lines
Merge brelse() changes from the vmlocking branch.

Revision 1.232: download - view: text, markup, annotated - select for diffs
Mon Oct 8 16:41:12 2007 UTC (17 years, 2 months ago) by ad
Branches: MAIN
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +8 -10 lines
Merge disk init changes from the vmlocking branch. These seperate init /
destroy of 'struct disk' from attach / detach.

Revision 1.230.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 7 13:25:04 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +136 -6 lines
Sync with HEAD.

Revision 1.230.8.1: download - view: text, markup, annotated - select for diffs
Sat Oct 6 15:31:29 2007 UTC (17 years, 2 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +136 -6 lines
sync with head.

Revision 1.231: download - view: text, markup, annotated - select for diffs
Fri Oct 5 01:40:04 2007 UTC (17 years, 2 months ago) by oster
Branches: MAIN
CVS tags: yamt-x86pmap-base2
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +136 -6 lines
Implement dumping kernel cores to RAID 1 sets.  The component used
for the dump is selected in this order of preference:
   1) the master
   2) a used_spare of the master
   3) the slave
   4) a used_spare of the slave

Revision 1.187.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:38:20 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.187.2.2: preferred, colored
Changes since revision 1.187.2.2: +60 -27 lines
sync with head.

Revision 1.226.2.7: download - view: text, markup, annotated - select for diffs
Fri Aug 24 23:28:37 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.226.2.6: preferred, colored
Changes since revision 1.226.2.6: +7 -3 lines
Sync with buffer cache locking changes. See buf.h/vfs_bio.c for details.
Some minor portions are incomplete and needs to be verified as a whole.

Revision 1.226.2.6: download - view: text, markup, annotated - select for diffs
Mon Aug 20 18:16:14 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.226.2.5: preferred, colored
Changes since revision 1.226.2.5: +8 -12 lines
- Alter disk attach/detach to fix a panic when closing a vnd device.
- Sync with HEAD.

Revision 1.226.2.5: download - view: text, markup, annotated - select for diffs
Sun Aug 19 23:30:20 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.226.2.4: preferred, colored
Changes since revision 1.226.2.4: +4 -4 lines
Compile fixes.

Revision 1.226.2.4: download - view: text, markup, annotated - select for diffs
Sun Aug 19 19:24:32 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.226.2.3: preferred, colored
Changes since revision 1.226.2.3: +22 -15 lines
- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).

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

Revision 1.230.10.2: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:23 2007 UTC (17 years, 4 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.230.10.1: preferred, colored; branchpoint 1.230: preferred, colored; next MAIN 1.231: preferred, colored
Changes since revision 1.230.10.1: +3484 -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.230.10.1
Sun Jul 29 12:50:22 2007 UTC (17 years, 4 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.230: +0 -3484 lines
file rf_netbsdkintf.c was added on branch matt-mips64 on 2007-07-29 12:50:23 +0000

Revision 1.230: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:22 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6, jmcneill-pm
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +5 -11 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.229: download - view: text, markup, annotated - select for diffs
Wed Jul 18 19:04:58 2007 UTC (17 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +4 -6 lines
Fix fallout from recent kthread changes.

Revision 1.226.2.3: download - view: text, markup, annotated - select for diffs
Sun Jul 15 13:21:41 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.226.2.2: preferred, colored
Changes since revision 1.226.2.2: +6 -7 lines
Sync with head.

Revision 1.227.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:08:10 2007 UTC (17 years, 5 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.227: preferred, colored; next MAIN 1.228: preferred, colored
Changes since revision 1.227: +6 -7 lines
Sync with head.

Revision 1.228: download - view: text, markup, annotated - select for diffs
Sun Jun 24 21:38:21 2007 UTC (17 years, 5 months ago) by christos
Branches: MAIN
CVS tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +6 -7 lines
don't leak a vnode in the wedge case.

Revision 1.226.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 9 23:57:56 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.226.2.1: preferred, colored
Changes since revision 1.226.2.1: +12 -25 lines
Sync with head.

Revision 1.224.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 24 14:55:46 2007 UTC (17 years, 8 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.224.4.1: preferred, colored; branchpoint 1.224: preferred, colored; next MAIN 1.225: preferred, colored
Changes since revision 1.224.4.1: +3 -3 lines
sync with head.

Revision 1.226.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:50:29 2007 UTC (17 years, 9 months ago) by ad
Branches: vmlocking
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +3 -3 lines
Sync with head.

Revision 1.227: download - view: text, markup, annotated - select for diffs
Mon Mar 12 18:18:31 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +3 -3 lines
Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.224.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:56:53 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +50 -8 lines
Sync with HEAD.

Revision 1.226: download - view: text, markup, annotated - select for diffs
Fri Mar 9 15:57:34 2007 UTC (17 years, 9 months ago) by oster
Branches: MAIN
Branch point for: vmlocking
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +46 -4 lines
In the case of multiple RAID sets that are marked as root, attempt to
use the RAID set that contains the component used for booting.  Thanks
to manu@ for the main part of this.

Revision 1.225: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:38 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +6 -6 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.213.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 12 00:57:47 2007 UTC (17 years, 11 months ago) by ad
Branches: newlock2
Diff to: previous 1.213.2.1: preferred, colored; branchpoint 1.213: preferred, colored; next MAIN 1.214: preferred, colored
Changes since revision 1.213.2.1: +15 -9 lines
Sync with head.

Revision 1.187.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:49:30 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.187.2.1: preferred, colored
Changes since revision 1.187.2.1: +263 -155 lines
sync with head.

Revision 1.213.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:11 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.213.4.1: preferred, colored; branchpoint 1.213: preferred, colored; next MAIN 1.214: preferred, colored
Changes since revision 1.213.4.1: +30 -24 lines
sync with head.

Revision 1.224: download - view: text, markup, annotated - select for diffs
Thu Nov 30 23:01:50 2006 UTC (18 years ago) by oster
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +9 -9 lines
Change a bunch of "#if DEBUG" to "#ifdef DEBUG".

Revision 1.223: download - view: text, markup, annotated - select for diffs
Thu Nov 30 15:12:17 2006 UTC (18 years ago) by oster
Branches: MAIN
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +8 -2 lines
If the user has specified 'root on foo', then skip changing the booted_device
even if we've detected a 'root on raid' autoconfigure.  This change is really
only cosmetic, since setroot() will still do the right thing and honor
the 'root on foo' setting.

Revision 1.213.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:46 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +81 -28 lines
Sync with head.

Revision 1.222: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:23 2006 UTC (18 years ago) by christos
Branches: MAIN
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +17 -17 lines
__unused removal on arguments; approved by core.

Revision 1.213.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:43 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +87 -34 lines
sync with head

Revision 1.221: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:51 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +17 -13 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.220: download - view: text, markup, annotated - select for diffs
Mon Oct 9 02:43:28 2006 UTC (18 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +2 -3 lines
Remove unused variable.  (Noted by mrg.  Thanks.)

Revision 1.219: download - view: text, markup, annotated - select for diffs
Sun Oct 8 23:22:26 2006 UTC (18 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +7 -10 lines
Fix previous a different way. (pseudo_disk_init() needed to be called earlier)

Revision 1.218: download - view: text, markup, annotated - select for diffs
Sun Oct 8 22:57:51 2006 UTC (18 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +8 -6 lines
Call pseudo_disk_init in the autoconfig case.

Revision 1.217: download - view: text, markup, annotated - select for diffs
Sun Oct 8 02:39:01 2006 UTC (18 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +72 -25 lines
Re-work some of the initialization code to now use config_attach_pseudo()
and friends.  Addresses PR#32881.  BOOT_FROM_RAID_HOOKS dies.
More simplification possible now.

Revision 1.216: download - view: text, markup, annotated - select for diffs
Thu Oct 5 17:59:36 2006 UTC (18 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +2 -3 lines
Revert previous change: Remove an unused variable declaration that was
(likely accidentally) added as the only change in the last commit.

Revision 1.215: download - view: text, markup, annotated - select for diffs
Thu Oct 5 17:35:19 2006 UTC (18 years, 2 months ago) by tls
Branches: MAIN
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +3 -2 lines
Protect calls to pool_put/pool_get that may occur in interrupt context
with spl used to protect other allocations and frees, or datastructure
element insertion and removal, in adjacent code.

It is almost unquestionably the case that some of the spl()/splx() calls
added here are superfluous, but it really seems wrong to see:

	s=splfoo();
	/* frob data structure */
	splx(s);
	pool_put(x);

and if we think we need to protect the first operation, then it is hard
to see why we should not think we need to protect the next.  "Better
safe than sorry".

It is also almost unquestionably the case that I missed some pool
gets/puts from interrupt context with my strategy for finding these
calls; use of PR_NOWAIT is a strong hint that a pool may be used from
interrupt context but many callers in the kernel pass a "can wait/can't
wait" flag down such that my searches might not have found them.  One
notable area that needs to be looked at is pf.

See also:

http://mail-index.netbsd.org/tech-kern/2006/07/19/0003.html
http://mail-index.netbsd.org/tech-kern/2006/07/19/0009.html

Revision 1.214: download - view: text, markup, annotated - select for diffs
Thu Sep 28 02:39:50 2006 UTC (18 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +6 -2 lines
Make sure the 'last configured as' field in the component labels
are updated each time the component labels are written.

Revision 1.199.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:54:05 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.199: preferred, colored; next MAIN 1.200: preferred, colored
Changes since revision 1.199: +222 -142 lines
sync with head

Revision 1.202.2.5: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:24:48 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.202.2.4: preferred, colored; branchpoint 1.202: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202.2.4: +172 -121 lines
sync with head.

Revision 1.213: download - view: text, markup, annotated - select for diffs
Sun Aug 27 05:07:13 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +172 -121 lines
- use dk_lookup instead of our home-spun version.
- allow raid to be configured in a wedge
- allow wedges to be configured in a raid
- add autoconfiguration of wedges in a raid

Revision 1.202.2.4: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:45:08 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.202.2.3: preferred, colored; branchpoint 1.202: preferred, colored
Changes since revision 1.202.2.3: +8 -10 lines
sync with head

Revision 1.212: download - view: text, markup, annotated - select for diffs
Mon Aug 7 20:02:22 2006 UTC (18 years, 4 months ago) by oster
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +3 -3 lines
sc_size should be a 64-bit quantity.  Notice by Matthias Drochner.

Revision 1.211: download - view: text, markup, annotated - select for diffs
Mon Aug 7 17:08:18 2006 UTC (18 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +3 -3 lines
Fix a minor typo in a comment.

Revision 1.210: download - view: text, markup, annotated - select for diffs
Fri Jul 21 16:48:52 2006 UTC (18 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +6 -8 lines
- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.202.2.3: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:52:27 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.202.2.2: preferred, colored; branchpoint 1.202: preferred, colored
Changes since revision 1.202.2.2: +18 -13 lines
sync with head.

Revision 1.187.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:06:28 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +160 -148 lines
sync with head.

Revision 1.208.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:05:48 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.208: preferred, colored; next MAIN 1.209: preferred, colored
Changes since revision 1.208: +18 -13 lines
Sync with head.

Revision 1.209: download - view: text, markup, annotated - select for diffs
Mon Jun 12 22:49:35 2006 UTC (18 years, 6 months ago) by oster
Branches: MAIN
CVS tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +18 -13 lines
Do the "don't allocate > 1K on the stack" thing for raidioctl().

Revision 1.199.4.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:37:33 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.199.4.1: preferred, colored; next MAIN 1.200: preferred, colored
Changes since revision 1.199.4.1: +8 -7 lines
Sync with head.

Revision 1.202.6.3: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:29 2006 UTC (18 years, 6 months ago) by tron
Branches: peter-altq
Diff to: previous 1.202.6.2: preferred, colored; branchpoint 1.202: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202.6.2: +9 -8 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.202.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:14 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.202.2.1: preferred, colored; branchpoint 1.202: preferred, colored
Changes since revision 1.202.2.1: +11 -10 lines
sync with head.

Revision 1.208: download - view: text, markup, annotated - select for diffs
Sun May 14 21:45:00 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base5, simonb-timecounters-base
Branch point for: chap-midi
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +8 -7 lines
integrate kauth.

Revision 1.202.4.3: download - view: text, markup, annotated - select for diffs
Sat May 6 23:31:29 2006 UTC (18 years, 7 months ago) by christos
Branches: elad-kernelauth
Diff to: previous 1.202.4.2: preferred, colored; branchpoint 1.202: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202.4.2: +3 -2 lines
- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.199.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:28 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +54 -29 lines
Sync with head.

Revision 1.202.4.2: download - view: text, markup, annotated - select for diffs
Wed Apr 19 03:26:07 2006 UTC (18 years, 7 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.202.4.1: preferred, colored; branchpoint 1.202: preferred, colored
Changes since revision 1.202.4.1: +44 -24 lines
sync with head.

Revision 1.207: download - view: text, markup, annotated - select for diffs
Wed Apr 12 23:33:39 2006 UTC (18 years, 8 months ago) by simonb
Branches: MAIN
CVS tags: elad-kernelauth-base
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +5 -5 lines
Don't access b_fspriv.bf_private in struct buf directly - use the
b_private macro.

OK'd by oster@

Revision 1.202.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:26 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +41 -21 lines
sync with head.

Revision 1.202.6.2: download - view: text, markup, annotated - select for diffs
Fri Mar 31 09:45:24 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.202.6.1: preferred, colored; branchpoint 1.202: preferred, colored
Changes since revision 1.202.6.1: +9 -8 lines
Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.

Revision 1.206: download - view: text, markup, annotated - select for diffs
Tue Mar 28 17:32:20 2006 UTC (18 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +9 -8 lines
Use device_is_a() and device_unit().

Revision 1.202.6.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:15 2006 UTC (18 years, 8 months ago) by tron
Branches: peter-altq
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +34 -15 lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.205: download - view: text, markup, annotated - select for diffs
Sat Mar 25 13:15:41 2006 UTC (18 years, 8 months ago) by rtr
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +3 -2 lines
free storage of clabel before bailing out.

coverity 2745 / run 11

Revision 1.204: download - view: text, markup, annotated - select for diffs
Sun Mar 19 05:46:50 2006 UTC (18 years, 8 months ago) by simonb
Branches: MAIN
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +34 -33 lines
Use tabs instead of spaces with previous change.

Revision 1.203: download - view: text, markup, annotated - select for diffs
Sun Mar 19 05:31:38 2006 UTC (18 years, 8 months ago) by david
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +22 -5 lines
Fix memory leaks when some components of a raid where missing during
autoconfig.

From Coverity CIDs 2328, 2324, 2323, 1125

Revision 1.202.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 8 01:44:49 2006 UTC (18 years, 9 months ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +7 -7 lines
Adapt to kernel authorization KPI.

Revision 1.202: download - view: text, markup, annotated - select for diffs
Wed Mar 1 21:41:49 2006 UTC (18 years, 9 months ago) by oster
Branches: MAIN
CVS tags: yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +5 -2 lines
Fix lossage related to device_is_a() changes.  Fix from cube@ (thanks!).
Tested by me.

Revision 1.192.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:28 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.192.2.1: preferred, colored; next MAIN 1.193: preferred, colored
Changes since revision 1.192.2.1: +9 -7 lines
sync with head.

Revision 1.201: download - view: text, markup, annotated - select for diffs
Fri Feb 24 03:20:22 2006 UTC (18 years, 9 months ago) by oster
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +6 -6 lines
- minor comment cleanup
- nuke an extraneous memset() (RF_Malloc() already does that)
from RAIDFRAME_GET_INFO in raidioctl().

Revision 1.200: download - view: text, markup, annotated - select for diffs
Tue Feb 21 04:32:38 2006 UTC (18 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +5 -3 lines
Use device_class() instead of accessing dv_class directly.

Revision 1.192.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 15 10:02:56 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +50 -95 lines
sync with head.

Revision 1.186.2.2.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 11 17:18:02 2006 UTC (18 years, 11 months ago) by tron
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Diff to: previous 1.186.2.2: preferred, colored; next MAIN 1.186.2.3: preferred, colored
Changes since revision 1.186.2.2: +6 -3 lines
Pull up following revision(s) (requested by oster in ticket #1114):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.193
We need to mark used spares as failed if they encounter IO errors!
Commit fixes problem reported (privately) by Jeff Rizzo.
XXX: Note that we are still are unable to allow a reconstruct of
a failed spare -- it's easy enough to attempt to do it, but the
code in rf_ContinueReconstructFailedDisk() isn't anywhere close to
ready to allow it.  Yet another reason why the whole disk/spare thing
needs to be re-worked. *sigh*

Revision 1.186.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 11 17:18:00 2006 UTC (18 years, 11 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.186.2.2: preferred, colored; branchpoint 1.186: preferred, colored
Changes since revision 1.186.2.2: +6 -3 lines
Pull up following revision(s) (requested by oster in ticket #1114):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.193
We need to mark used spares as failed if they encounter IO errors!
Commit fixes problem reported (privately) by Jeff Rizzo.
XXX: Note that we are still are unable to allow a reconstruct of
a failed spare -- it's easy enough to attempt to do it, but the
code in rf_ContinueReconstructFailedDisk() isn't anywhere close to
ready to allow it.  Yet another reason why the whole disk/spare thing
needs to be re-worked. *sigh*

Revision 1.199: download - view: text, markup, annotated - select for diffs
Sun Jan 8 22:26:30 2006 UTC (18 years, 11 months ago) by oster
Branches: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +5 -5 lines
Really move all of the bp initalization bits into InitBP().

Revision 1.198: download - view: text, markup, annotated - select for diffs
Sun Jan 8 22:06:26 2006 UTC (18 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +4 -8 lines
For the normal (read/write) case, do all the buffer initialization
inside of InitBP().

Revision 1.197: download - view: text, markup, annotated - select for diffs
Sun Jan 8 21:53:26 2006 UTC (18 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +4 -17 lines
Cleanup the initialization of buffers a bit, and remove some old code
that works around a bug that no longer exists.  From yamt. Thanks!
(a bit more cleanup to follow)

Revision 1.196: download - view: text, markup, annotated - select for diffs
Sun Jan 8 09:11:21 2006 UTC (18 years, 11 months ago) by yamt
Branches: MAIN
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +25 -14 lines
raidstrategy: fix weird ENOSPC when reading from/writing to a raw partition.

Revision 1.195: download - view: text, markup, annotated - select for diffs
Sun Jan 8 09:09:53 2006 UTC (18 years, 11 months ago) by yamt
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +7 -7 lines
raidioctl:
- don't ignore raidread_component_label error.
- remove an unnessesary memset.

Revision 1.194: download - view: text, markup, annotated - select for diffs
Sat Jan 7 16:08:44 2006 UTC (18 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +10 -52 lines
Remove the component buffer bits, now that I know there is a
"private" structure in struct buf that can be used to keep track of
the request associated with this buffer (the buffer used here is one
allocated from rf_CreateDiskQueueData(), so it's ours to do with what
we please).  Shrinks code a little, reduces the run-time memory
footprint a bit, and simplifies both rf_DispatchKernelIO() and
KernelWakeupFunc().

Thanks to yamt for his "why is rf_DispatchKernelIO using another buf"
question which prompted me to revisit this code.

Revision 1.193: download - view: text, markup, annotated - select for diffs
Wed Jan 4 04:56:41 2006 UTC (18 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +8 -5 lines
We need to mark used spares as failed if they encounter IO errors!
Commit fixes problem reported (privately) by Jeff Rizzo.


XXX: Note that we are still are unable to allow a reconstruct of
a failed spare -- it's easy enough to attempt to do it, but the
code in rf_ContinueReconstructFailedDisk() isn't anywhere close to
ready to allow it.  Yet another reason why the whole disk/spare thing
needs to be re-worked. *sigh*

Revision 1.192: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:23:37 2005 UTC (19 years ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +18 -14 lines
merge ktrace-lwp.

Revision 1.161.2.9: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:07:40 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.161.2.8: preferred, colored; next MAIN 1.162: preferred, colored
Changes since revision 1.161.2.8: +43 -23 lines
Sync with HEAD. Here we go again...

Revision 1.191: download - view: text, markup, annotated - select for diffs
Sat Oct 15 17:29:25 2005 UTC (19 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.190: preferred, colored
Changes since revision 1.190: +7 -7 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.186.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 4 14:14:40 2005 UTC (19 years, 2 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Branch point for: netbsd-3-0
Diff to: previous 1.186.2.1: preferred, colored; branchpoint 1.186: preferred, colored
Changes since revision 1.186.2.1: +22 -1 lines
Pull up following revision(s) (requested by oster in ticket #853):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.190
	sys/dev/raidframe/rf_netbsd.h: revision 1.24
	sys/dev/raidframe/rf_states.c: revision 1.39
	sys/dev/raidframe/rf_engine.c: revision 1.36
Re-work the handling of incoming I/O in RAIDframe:
- introduce rf_buf_queue_check() which checks to see if there
is work to do in the incoming buffer queue
- rf_RaidIOThread() is now responsible for calling raidstart(), and is
also now the only place that calls raidstart()
- raidstrategy() now just queues requests in buf_queue
and signals rf_RaidIOThread() that work has arrived
Hopefully addresses PR#30233

Revision 1.190: download - view: text, markup, annotated - select for diffs
Sun Sep 25 19:47:17 2005 UTC (19 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +24 -3 lines
Re-work the handling of incoming I/O in RAIDframe:
- introduce rf_buf_queue_check() which checks to see if there
is work to do in the incoming buffer queue
- rf_RaidIOThread() is now responsible for calling raidstart(), and is
also now the only place that calls raidstart()
- raidstrategy() now just queues requests in buf_queue
and signals rf_RaidIOThread() that work has arrived

Hopefully addresses PR#30233

Revision 1.189: download - view: text, markup, annotated - select for diffs
Sat Sep 24 22:51:55 2005 UTC (19 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +3 -3 lines
This disk_detach() should be pseudo_disk_detach().

Revision 1.188: download - view: text, markup, annotated - select for diffs
Sat Aug 20 12:01:04 2005 UTC (19 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +5 -4 lines
use pseudo_disk_{init,attach,detach} where appropriate.

Revision 1.186.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 17 13:34:50 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-3
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +13 -15 lines
Pull up revision 1.187 (requested by oster in ticket #472):
- avoid variable shadowing
- add a lot of const
- remove parameters from function declarations

Revision 1.187: download - view: text, markup, annotated - select for diffs
Sun May 29 22:03:09 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +13 -15 lines
- avoid variable shadowing
- add a lot of const
- remove parameters from functin declarations

Revision 1.185.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:15 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.185: preferred, colored; next MAIN 1.186: preferred, colored
Changes since revision 1.185: +182 -182 lines
sync with -current

Revision 1.178.2.1.2.3: download - view: text, markup, annotated - select for diffs
Wed Apr 6 12:17:58 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-2
CVS tags: 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
Diff to: previous 1.178.2.1.2.2: preferred, colored; branchpoint 1.178.2.1: preferred, colored; next MAIN 1.179: preferred, colored
Changes since revision 1.178.2.1.2.2: +8 -2 lines
Pull up revision 1.185 (requested by oster in ticket #1040):
Don't allow -f to fail a disk while a reconstruction is taking place
since that would cause a panic.  (Problem noticed by dan@.)

Revision 1.178.2.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 6 12:15:36 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-2
Diff to: previous 1.178.2.1.2.1: preferred, colored; branchpoint 1.178.2.1: preferred, colored
Changes since revision 1.178.2.1.2.1: +3 -2 lines
Pull up revision 1.184 (requested by oster in ticket #1039):
Initialize parity_rewrite_stripes_done to remove the window where
bogus values could be returned at the start of parity rewriting.

Revision 1.178.2.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 6 12:14:02 2005 UTC (19 years, 8 months ago) by tron
Branches: netbsd-2
Diff to: previous 1.178.2.1: preferred, colored
Changes since revision 1.178.2.1: +7 -4 lines
Pull up revision 1.183 (requested by oster in ticket #1038):
On an idea from Thor (tls@), do not fail a component if doing so would
render the RAID set completely dead.  Instead, we retry the IO a
maximum of RF_RETRY_THRESHOLD times (currently '5'), and then just
return an IO error if the IO fails.  This should reduce the damage
caused by having multiple disks appear to fail when the culprit is
really something else (power, controllers, etc.)

Revision 1.185.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:35:41 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.185: preferred, colored; next MAIN 1.186: preferred, colored
Changes since revision 1.185: +182 -182 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.161.2.8: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:50:07 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.161.2.7: preferred, colored
Changes since revision 1.161.2.7: +183 -183 lines
Sync with HEAD.

Hi Perry!

Revision 1.186: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:45 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +182 -182 lines
nuke trailing whitespace

Revision 1.161.2.7: download - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:32 2004 UTC (20 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.161.2.6: preferred, colored
Changes since revision 1.161.2.6: +14 -4 lines
Sync with HEAD.

Revision 1.185: download - view: text, markup, annotated - select for diffs
Wed Nov 17 01:34:10 2004 UTC (20 years ago) by oster
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +8 -2 lines
Don't allow -f to fail a disk while a reconstruction is taking place
since that would cause a panic.  (Problem noticed by dan@.)

Revision 1.184: download - view: text, markup, annotated - select for diffs
Tue Nov 16 16:52:30 2004 UTC (20 years ago) by oster
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +3 -2 lines
Initialize parity_rewrite_stripes_done to remove the window where
bogus values could be returned at the start of parity rewriting.

Revision 1.183: download - view: text, markup, annotated - select for diffs
Tue Nov 16 16:45:51 2004 UTC (20 years ago) by oster
Branches: MAIN
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +7 -4 lines
On an idea from Thor (tls@), do not fail a component if doing so would
render the RAID set completely dead.  Instead, we retry the IO a
maximum of RF_RETRY_THRESHOLD times (currently '5'), and then just
return an IO error if the IO fails.  This should reduce the damage
caused by having multiple disks appear to fail when the culprit is
really something else (power, controllers, etc.)

Revision 1.161.2.6: download - view: text, markup, annotated - select for diffs
Tue Nov 2 07:52:46 2004 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.161.2.5: preferred, colored
Changes since revision 1.161.2.5: +3 -2 lines
Sync with HEAD.

Revision 1.182: download - view: text, markup, annotated - select for diffs
Thu Oct 28 07:07:44 2004 UTC (20 years, 1 month ago) by yamt
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +3 -2 lines
move buffer queue related stuffs from buf.h to their own header, bufq.h.

Revision 1.161.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 19 15:57:27 2004 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.161.2.4: preferred, colored
Changes since revision 1.161.2.4: +8 -4 lines
Sync with HEAD

Revision 1.181: download - view: text, markup, annotated - select for diffs
Fri Oct 15 06:41:35 2004 UTC (20 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +8 -4 lines
rf_find_raid_components():
- If DIOCGDINFO failed with ENOTTY, don't print an error message; wedges
  don't support that ioctl.  Clean up the error message.
- If DIOCGDINFO fails, don't proceed to examine an invalid disklabel
  structure.

Revision 1.161.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:32:53 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.161.2.3: preferred, colored
Changes since revision 1.161.2.3: +19 -15 lines
Fix the sync with head I botched.

Revision 1.161.2.3: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:50:54 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.161.2.2: preferred, colored
Changes since revision 1.161.2.2: +15 -19 lines
Sync with HEAD.

Revision 1.161.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:50:46 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.161.2.1: preferred, colored
Changes since revision 1.161.2.1: +326 -398 lines
Sync with HEAD

Revision 1.178.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 2 18:03:06 2004 UTC (20 years, 5 months ago) by he
Branches: netbsd-2-0
CVS tags: netbsd-2-base, 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
Branch point for: netbsd-2
Diff to: previous 1.178: preferred, colored; next MAIN 1.179: preferred, colored
Changes since revision 1.178: +12 -7 lines
Pull up revision 1.180 (requested by oster in ticket #576):
  The result of rf_DoAccess() should not be assigned to
  bp->b_error.  As well, when we do detect some sort of an
  error, we should be doing a biodone() here.

Revision 1.180: download - view: text, markup, annotated - select for diffs
Thu Jul 1 17:48:45 2004 UTC (20 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +12 -7 lines
The result of rf_DoAccess() should *not* be assigned to bp->b_error.
As well, when we do detect some sort of an error, we should be doing a
biodone() here.  Thanks to yamt for noting the missing biodone(), as
that led to discovery of the additional lossage.

Revision 1.179: download - view: text, markup, annotated - select for diffs
Thu Apr 22 00:17:13 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +9 -6 lines
sprintf -> snprintf

Revision 1.178: download - view: text, markup, annotated - select for diffs
Sun Mar 7 22:15:19 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +0 -0 lines
- Introduce rf_pools which contains all of the various global pools used
by RAIDframe.  Convert all other RAIDframe global pools to use pools
defined within this new structure.
- Introduce rf_pool_init(), used for initializing a single pool in
RAIDframe.  Teach each of the configuration routines to use
rf_pool_init().
- Cleanup a few pool-related comments.
- Cleanup revent initialization and #defines.
- Add a missing pool_destroy() for the reconbuffer pool.

(Saves another 1K off of an i386 GENERIC kernel, and makes
stuff a lot more readable)

Revision 1.177: download - view: text, markup, annotated - select for diffs
Sun Mar 7 21:57:44 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +19 -11 lines
- Introduce rf_pools which contains all of the various global pools used
by RAIDframe.  Convert all other RAIDframe global pools to use pools
defined within this new structure.
- Introduce rf_pool_init(), used for initializing a single pool in
RAIDframe.  Teach each of the configuration routines to use
rf_pool_init().
- Cleanup a few pool-related comments.
- Cleanup revent initialization and #defines.
- Add a missing pool_destroy() for the reconbuffer pool.

(Saves another 1K off of an i386 GENERIC kernel, and makes
stuff a lot more readable)

Revision 1.176: download - view: text, markup, annotated - select for diffs
Fri Mar 5 02:53:58 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +4 -2 lines
- remove the RF_*_INC's, as necessary.  They are not needed any more.
- introduce RF_MIN_*'s, as necessary.  These will indicate the
low-water mark for pools as well as the pool_prime() value.
- add pool_setlowat() for the critical pools.
- pool_prime() and pool_setlowat() the raidframe_cbufpool.
- re-order some pool_prime()'s and pool_sethiwat()'s for clarity.

Revision 1.175: download - view: text, markup, annotated - select for diffs
Mon Mar 1 23:30:58 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +6 -5 lines
Use RF_ACC_TRACE to #if out more chunks of code related only
to access tracing.  (not turned on yet)

Revision 1.174: download - view: text, markup, annotated - select for diffs
Sun Feb 8 04:37:56 2004 UTC (20 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +4 -3 lines
Relegate some printf's to DEBUG land.

Revision 1.173: download - view: text, markup, annotated - select for diffs
Sun Jan 25 18:06:48 2004 UTC (20 years, 10 months ago) by hannken
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +3 -3 lines
Make VOP_STRATEGY(bp) a real VOP as discussed on tech-kern.

VOP_STRATEGY(bp) is replaced by one of two new functions:

- VOP_STRATEGY(vp, bp)  Call the strategy routine of vp for bp.
- DEV_STRATEGY(bp)      Call the d_strategy routine of bp->b_dev for bp.

DEV_STRATEGY(bp) is used only for block-to-block device situations.

Revision 1.172: download - view: text, markup, annotated - select for diffs
Sat Jan 10 14:39:50 2004 UTC (20 years, 11 months ago) by yamt
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +4 -2 lines
store a i/o priority hint in struct buf for buffer queue discipline.

Revision 1.171: download - view: text, markup, annotated - select for diffs
Sun Jan 4 21:06:04 2004 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +9 -4 lines
raidPtr->reconControl->percentCompleted only gets used in one
debugging printf, and in rf_netbsdkintf.c.  We can do the calculations
inside of RF_DEBUG_RECON for the one debugging printf, and only
perform the percentCompleted calculation "on demand" in the
rf_netbsdkintf.c case.  Shaves a few more bytes off an i386 GENERIC
kernel, and ever-so-slightly decreases the amount of work performed
during a reconstruct.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Wed Dec 31 03:02:57 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +2 -5 lines
Remove a couple of incorrect comments.  (rf_recon_req needs to be
passed to rf_ReconThread(), and there's no way around that for now.)

Revision 1.169: download - view: text, markup, annotated - select for diffs
Tue Dec 30 21:59:03 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +53 -135 lines
Some days you wonder if some of the function declaration consistency
was just an accident in the first place.  Cleanup function decls and
a few comments.  [ok.. so I wasn't going to fix this many.. but once
you're on a roll....]

Revision 1.168: download - view: text, markup, annotated - select for diffs
Mon Dec 29 04:56:26 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +3 -6 lines
Simplify defn's of rf_mutex_init() and rf_mutex_destroy().  Since
neither of these ever fail, no need to have a return value.  That
makes all the "error detection" on these functions completely
unneeded.  But since we're here, if we don't have a return value, then
why not make these macros?  My.. look how things keep shrinking, with
no loss in functionality!

Revision 1.167: download - view: text, markup, annotated - select for diffs
Mon Dec 29 03:33:48 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +4 -4 lines
- first kick at a major reworking of RAIDframe's memory allocation code:
  - all freelists converted to pools
  - initialization of structure members in certain cases where
	code was relying on specific allocation and usage properties
	to keep structures in a "known state" (that doesn't work with
	pools!).
  - make most pool_get() be "PR_WAITOK" until they can be analyzed
	further, and/or have proper error handling added.
  - all RF_Mallocs zero the space returned, so there is no difference
	between RF_Calloc and RF_Malloc.  In fact, all the RF_Calloc()'s
	do is tend to do is get things horribly confused.
	Make RF_Malloc() the "general memory allocator", with
	RF_MallocAndAdd() the "general memory allocator with
	allocation list".
  - some of these RF_Malloc's et al. are destined to disappear.
  - remove rf_rdp_freelist entirely (it's not used anywhere!)
  - remove: #include "rf_freelist.h"
  - to the files that were relying on the above, add: #include "rf_general.h"
  - add: #include "rf_debugMem.h" to rf_shutdown.h to make it happy
	about the loss of: #include "rf_freelist.h".

This shrinks an i386 GENERIC kernel by approx 5K.  RAIDframe now
weighs in at about 162K on i386.

Revision 1.166: download - view: text, markup, annotated - select for diffs
Mon Dec 29 02:38:18 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +185 -227 lines
[Having received a definite lack of strenuous objection, a small amount
of strenuous agreement, and some general agreement, this commit is
going ahead because it's now starting to block some other changes I
wish to make.]

Remove most of the support for the concept of "rows" from RAIDframe.
While the "row" interface has been exported to the world, RAIDframe
internals have really only supported a single row, even though they
have feigned support of multiple rows.

Nothing changes in configuration land -- config files still need to
specify a single row, etc.  All auto-config structures remain fully
forward/backwards compatible.

The only visible difference to the average user should be a
reduction in the size of a GENERIC kernel (i386) by 4.5K.  For those
of us trolling through RAIDframe kernel code, a lot of the driver
configuration code has become a LOT easier to read.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Thu Oct 30 01:58:17 2003 UTC (21 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +2 -6 lines
Remove some assigned-to but otherwise unused variables.

Revision 1.164: download - view: text, markup, annotated - select for diffs
Sat Oct 25 18:34:14 2003 UTC (21 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +3 -3 lines
Fix uninitialized variable warnings

Revision 1.163: download - view: text, markup, annotated - select for diffs
Tue Oct 21 00:22:04 2003 UTC (21 years, 1 month ago) by fvdl
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +3 -3 lines
Correct NULL abuse.

Revision 1.162: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:31:19 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +38 -3 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.161.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:26:16 2003 UTC (21 years, 5 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +26 -22 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.161: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:33 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +20 -24 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.160: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:21:42 2003 UTC (21 years, 5 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +26 -22 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.159: download - view: text, markup, annotated - select for diffs
Sat May 10 23:12:46 2003 UTC (21 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +3 -3 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.158: download - view: text, markup, annotated - select for diffs
Fri May 2 08:45:28 2003 UTC (21 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +3 -3 lines
Change return type of readdisklabel() to const char *
I hope I've found all the correct places!

Revision 1.157: download - view: text, markup, annotated - select for diffs
Thu Apr 10 03:36:02 2003 UTC (21 years, 8 months ago) by simonb
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +3 -4 lines
Remove an assigned-to but unused variable.

Revision 1.156: download - view: text, markup, annotated - select for diffs
Fri Mar 21 23:11:23 2003 UTC (21 years, 8 months ago) by dsl
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +11 -19 lines
Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).

Revision 1.155: download - view: text, markup, annotated - select for diffs
Tue Feb 25 20:35:36 2003 UTC (21 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +3 -5 lines
Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and
use it.  This fixes a few places where either b_dep or b_interlock were
not properly initialized.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Wed Feb 5 21:38:40 2003 UTC (21 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +8 -2 lines
Make the buffer cache code MP-safe.

Revision 1.153: download - view: text, markup, annotated - select for diffs
Sat Feb 1 06:23:40 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +4 -5 lines
Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Sun Jan 19 16:52:55 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +3 -2 lines
Merge the nathanw_sa branch.

Revision 1.104.2.18: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:38:34 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.104.2.17: preferred, colored; next MAIN 1.105: preferred, colored
Changes since revision 1.104.2.17: +106 -88 lines
Sync with HEAD.

Revision 1.151: download - view: text, markup, annotated - select for diffs
Thu Nov 21 15:37:55 2002 UTC (22 years ago) by oster
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.150: preferred, colored
Changes since revision 1.150: +9 -4 lines
Fix up locking on a call to rf_update_component_labels().
Noticed by Manuel.  Thanks Manuel!

Revision 1.150: download - view: text, markup, annotated - select for diffs
Tue Nov 19 01:49:41 2002 UTC (22 years ago) by oster
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +4 -3 lines
#if out some stuff that's only used for some distributed sparing stuff.
Shaves another 500 bytes from an i386 kernel.

Revision 1.149: download - view: text, markup, annotated - select for diffs
Tue Nov 19 01:45:29 2002 UTC (22 years ago) by oster
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +47 -2 lines
For reconstructs, move checks for failed components to before the
kernel threads are created.

Revision 1.148: download - view: text, markup, annotated - select for diffs
Sun Nov 17 22:41:36 2002 UTC (22 years ago) by oster
Branches: MAIN
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +24 -2 lines
When setting root or autoconfig status, be sure to update used_spares too!

Revision 1.147: download - view: text, markup, annotated - select for diffs
Fri Nov 15 03:00:12 2002 UTC (22 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +7 -45 lines
These printf's have outlived their usefulness.  *poof*

Revision 1.146: download - view: text, markup, annotated - select for diffs
Thu Nov 14 17:11:54 2002 UTC (22 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +28 -45 lines
rf_markalldirty() needs to update the mod_counter for used_spares too!

This bug appears as "incorrect Mod Counters" in 'raidctl -s'.  The
reason it was seen only in 'raidctl -s' is because of the conditions
needed to trigger the bug:
  a) a raid set is configured
  b) no partitions on that set are mounted or are otherwise in-use
  c) a component is failed, and subsequently rebuilt to a hot spare
  d) the machine is rebooted while something (e.g. 'raidctl -s') has
the device open (and, therefore, rf_markalldirty() has been called)
but before the final rf_update_component_labels() is done.

Needless to say, the window for this happening is *very* small, and it
was only because I was testing some obscure stuff that I even noticed it.

Revision 1.104.2.17: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:11:57 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.16: preferred, colored
Changes since revision 1.104.2.16: +2 -2 lines
Catch up to -current

Revision 1.145: download - view: text, markup, annotated - select for diffs
Fri Nov 1 11:31:59 2002 UTC (22 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +3 -3 lines
implement separate read/write disk statistics:
	- disk_unbusy() gets a new parameter to tell the IO direction.
	- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
	when processing hw.diskstats, add the read&write bytes/transfers for
	the old combined stats to attempt to keep backwards compatibility.

unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail.  however, the next time this is
change it will not fail again.

this is just the kernel portion.

Revision 1.144: download - view: text, markup, annotated - select for diffs
Wed Oct 23 09:13:40 2002 UTC (22 years, 1 month ago) by jdolecek
Branches: MAIN
CVS tags: kqueue-aftermerge
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +3 -3 lines
merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.104.2.16: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:43:51 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.15: preferred, colored
Changes since revision 1.104.2.15: +71 -85 lines
Catch up to -current.

Revision 1.106.2.6: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:41:53 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.106.2.5: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106.2.5: +93 -104 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.143: download - view: text, markup, annotated - select for diffs
Fri Oct 4 20:05:14 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
CVS tags: kqueue-beforemerge
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +15 -4 lines
As part of the effort to get RAIDframe playing nicely with LOCKDEBUG,
rework how completed requests are handled.  In particular, instead of
doing all sorts of work and locking in interrupt context, completed
requests are now queued.  A new kernel thread (rf_RaidIOThread) now
handles calling rf_DiskIOComplete() and (req->CompleteFunc)() for each
completed request.  There is still work to be done to make RAIDframe
LOCKDEBUG friendly, but this change is a huge step forward.

Reviewed by (and many thanks to): thorpej

Revision 1.142: download - view: text, markup, annotated - select for diffs
Tue Oct 1 18:11:57 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: kqueue-base
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +34 -23 lines
Add a generic config finalization hook, to be called once all real
devices have been discovered.  All finalizer routines are iteratively
invoked until all of them report that they have done no work.

Use this hook to fix a latent bug in RAIDframe autoconfiguration of
RAID sets exposed by the rework of SCSI device discovery.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Fri Sep 27 15:37:30 2002 UTC (22 years, 2 months ago) by provos
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +9 -9 lines
remove trailing \n in panic().  approved perry.

Revision 1.140: download - view: text, markup, annotated - select for diffs
Fri Sep 27 02:24:31 2002 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +6 -6 lines
Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.

Revision 1.139: download - view: text, markup, annotated - select for diffs
Mon Sep 23 03:31:51 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +2 -5 lines
struct proc *p was only assigned to.  Thanks Simon B.

Revision 1.138: download - view: text, markup, annotated - select for diffs
Mon Sep 23 03:28:41 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -3 lines
Make this build w/ DEBUG.

Revision 1.137: download - view: text, markup, annotated - select for diffs
Mon Sep 23 03:17:36 2002 UTC (22 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +4 -3 lines
make it compile with DIAGNOSTIC

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sun Sep 22 03:56:08 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +6 -14 lines
RAIDGETBUF and RAIDPUTBUF were #defines that were only used in
one place.  Simplify things by removing them, and clean up more
unneeded instances of 'unit' and 'rs'.

Revision 1.135: download - view: text, markup, annotated - select for diffs
Sun Sep 22 03:46:40 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +2 -5 lines
rf_flags wasn't being used.  *poof*

Revision 1.134: download - view: text, markup, annotated - select for diffs
Sun Sep 22 03:44:42 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +8 -18 lines
A little housecleaning to nuke stuff that was unused.

Revision 1.133: download - view: text, markup, annotated - select for diffs
Sat Sep 21 07:05:06 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +5 -4 lines
#if 0 out one other function, and shuffle DEBUG code.  Actually
reclaims another 14K!?!?!!  Thanks Krister!

Revision 1.132: download - view: text, markup, annotated - select for diffs
Sat Sep 21 01:09:43 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +2 -14 lines
Garbage collect some old mountroothook stuff.  Thanks Krister!

Revision 1.131: download - view: text, markup, annotated - select for diffs
Thu Sep 19 17:55:22 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +2 -4 lines
Nuke old (and now incorrect) comment.

Revision 1.104.2.15: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:20:52 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.14: preferred, colored
Changes since revision 1.104.2.14: +33 -19 lines
Catch up to -current.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Fri Sep 6 13:18:43 2002 UTC (22 years, 3 months ago) by gehenna
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +35 -21 lines
Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.106.2.5: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:46:05 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.106.2.4: preferred, colored
Changes since revision 1.106.2.4: +63 -43 lines
sync kqueue branch with HEAD

Revision 1.117.6.4: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:50 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.117.6.3: preferred, colored; branchpoint 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117.6.3: +18 -10 lines
catch up with -current.

Revision 1.104.2.14: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:19:53 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.13: preferred, colored
Changes since revision 1.104.2.13: +6 -3 lines
Catch up to -current.

Revision 1.117.8.3: download - view: text, markup, annotated - select for diffs
Fri Aug 9 22:38:13 2002 UTC (22 years, 4 months ago) by lukem
Branches: netbsd-1-6
CVS tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Diff to: previous 1.117.8.2: preferred, colored; branchpoint 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117.8.2: +8 -2 lines
Pull up revision 1.129 (requested by oster in ticket #652):
Let's not bother poking CD's to see if they might have RAID sets
on them.

Revision 1.129: download - view: text, markup, annotated - select for diffs
Wed Aug 7 20:45:39 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +8 -2 lines
Let's not bother poking CD's to see if they might have RAID sets
on them.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Sun Aug 4 03:27:04 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +2 -5 lines
Nuke some unneeded #includes.

Revision 1.104.2.13: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:45:36 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.12: preferred, colored
Changes since revision 1.104.2.12: +57 -40 lines
Catch up to -current.

Revision 1.127: download - view: text, markup, annotated - select for diffs
Wed Jul 24 02:55:22 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +8 -2 lines
RAIDframe doesn't need to be so chatty on autoconfigure.  Leave it
a chatty if DEBUG is set... (for now..)

Revision 1.126: download - view: text, markup, annotated - select for diffs
Sun Jul 21 15:32:18 2002 UTC (22 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +3 -3 lines
Rename bufq_init() to bufq_alloc().
Add bufq_free() to remove a buffer queue.
Avoid MALLOC while holding a spinlock.

From Chuck Silvers.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Sat Jul 20 16:34:15 2002 UTC (22 years, 4 months ago) by hannken
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +6 -7 lines
Convert to new device buffer queue interface.

Revision 1.117.6.3: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:35:50 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.117.6.2: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.6.2: +47 -35 lines
catch up with -current.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Sat Jul 13 17:47:44 2002 UTC (22 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +2 -4 lines
No need to unlock and then immediately relock a mutex.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Sat Jul 13 17:24:41 2002 UTC (22 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +36 -23 lines
 - don't be quite so chatty.
 - if we need to print stuff, print out which raid device the information
is related to  (where applicable).

Revision 1.122: download - view: text, markup, annotated - select for diffs
Sat Jul 13 17:04:09 2002 UTC (22 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +10 -13 lines
As suggested by MRG, if we have an autoconfig set for root, we should
set booted_device, even if RB_ASKNAME is set.  That way the appropriate
device gets set as the default when it asks where you want to look for /.

Revision 1.104.2.12: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:40:10 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.11: preferred, colored
Changes since revision 1.104.2.11: +2 -3 lines
No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.117.8.2: download - view: text, markup, annotated - select for diffs
Sat Jun 29 08:30:11 2002 UTC (22 years, 5 months ago) by lukem
Branches: netbsd-1-6
Diff to: previous 1.117.8.1: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.8.1: +6 -2 lines
Pull up revision 1.121 (requested by leo in ticket #395):
Exclude the Atari/Milan floppy driver from being a RAID capable device.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Thu Jun 27 05:13:33 2002 UTC (22 years, 5 months ago) by leo
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +6 -2 lines
Exclude the Atari/Milan floppy driver from being a RAID capable device.

Revision 1.104.2.11: download - view: text, markup, annotated - select for diffs
Mon Jun 24 22:10:12 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.10: preferred, colored
Changes since revision 1.104.2.10: +4 -4 lines
Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.106.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:48:35 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.106.2.3: preferred, colored
Changes since revision 1.106.2.3: +7 -3 lines
catch up with -current on kqueue branch

Revision 1.104.2.10: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:46:27 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.9: preferred, colored
Changes since revision 1.104.2.9: +7 -3 lines
Catch up to -current.

Revision 1.117.6.2: download - view: text, markup, annotated - select for diffs
Thu May 30 14:47:03 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.117.6.1: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.6.1: +7 -3 lines
Catch up with -current.

Revision 1.117.8.1: download - view: text, markup, annotated - select for diffs
Tue May 28 11:22:37 2002 UTC (22 years, 6 months ago) by lukem
Branches: netbsd-1-6
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +6 -2 lines
Pull up revisions 1.119-1.120 (requested by leo):
Treat the "hdfd" (Atari/Hades floppy) like all the other "fd"s. OK-ed by
Greg Oster.
Not so fast... Add a bit of comment to the previous change.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Thu May 23 15:12:59 2002 UTC (22 years, 6 months ago) by leo
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +3 -2 lines
Not so fast... Add a bit of comment to the previous change.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu May 23 15:03:33 2002 UTC (22 years, 6 months ago) by leo
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +5 -2 lines
Treat the "hdfd" (Atari/Hades floppy) like all the other "fd"s. OK-ed by
Greg Oster.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Wed May 22 15:40:50 2002 UTC (22 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +3 -3 lines
bcopy -> memcpy. Reviewed by Greg Oster.

Revision 1.117.6.1: download - view: text, markup, annotated - select for diffs
Thu May 16 11:47:15 2002 UTC (22 years, 7 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +35 -21 lines
Add the block/character device switches.
Replace the direct-access to devsw table with calling devsw API.

Revision 1.104.2.9: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:47:05 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.8: preferred, colored
Changes since revision 1.104.2.8: +3 -3 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.106.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 16 16:01:26 2002 UTC (22 years, 9 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.106.2.2: preferred, colored
Changes since revision 1.106.2.2: +3 -3 lines
Catch up with -current.

Revision 1.117: download - view: text, markup, annotated - select for diffs
Fri Mar 8 20:48:39 2002 UTC (22 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -3 lines
Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.

Revision 1.104.2.8: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:14:18 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.7: preferred, colored
Changes since revision 1.104.2.7: +2 -2 lines
Catch up to -current.

Revision 1.104.2.7: download - view: text, markup, annotated - select for diffs
Fri Jan 11 23:39:30 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.6: preferred, colored
Changes since revision 1.104.2.6: +11 -12 lines
More catchup.

Revision 1.106.2.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:57:51 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.106.2.1: preferred, colored
Changes since revision 1.106.2.1: +20 -20 lines
Sync kqueue branch with -current.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Wed Jan 9 04:21:43 2002 UTC (22 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: ifpoll-base
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +11 -12 lines
We only need a single component buffer pool.

Revision 1.104.2.6: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:31:35 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.5: preferred, colored
Changes since revision 1.104.2.5: +5 -8 lines
Catch up to -current.

Revision 1.115: download - view: text, markup, annotated - select for diffs
Sun Dec 16 22:57:32 2001 UTC (22 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -3 lines
Fix an off-by-one error when autoconfig is hunting for a free RAID
device in the rare event that the one it wants is already in use.
Thanks to Wolfgang Stukenbrock for noticing the bug and filing the PR.
This fix addresses PR#14862.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Wed Nov 28 05:39:13 2001 UTC (23 years ago) by lukem
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +3 -3 lines
use #ifdef RAID_AUTOCONFIG (for consistency with the rest of the kernel)

Revision 1.104.2.5: download - view: text, markup, annotated - select for diffs
Sun Nov 18 13:22:09 2001 UTC (23 years ago) by scw
Branches: nathanw_sa
Diff to: previous 1.104.2.4: preferred, colored
Changes since revision 1.104.2.4: +6 -4 lines
Fix a reference to curproc.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Nov 15 09:48:14 2001 UTC (23 years ago) by lukem
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -6 lines
don't need <sys/types.h> when including <sys/param.h>

Revision 1.104.2.4: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:15:50 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.3: preferred, colored
Changes since revision 1.104.2.3: +4 -1 lines
Catch up to -current.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Tue Nov 13 07:11:14 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -1 lines
add RCSIDs

Revision 1.104.2.3: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:41:37 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.2: preferred, colored
Changes since revision 1.104.2.2: +5 -4 lines
Catch up to -current.

Revision 1.109.2.5: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:20 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.109.2.4: preferred, colored; branchpoint 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109.2.4: +5 -6 lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Oct 6 00:47:46 2001 UTC (23 years, 2 months ago) by oster
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +2 -3 lines
Backout a line that accidentally got included when the .h reorg went in.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Thu Oct 4 15:58:54 2001 UTC (23 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +7 -5 lines
Step 2 of the disentanglement.  We now look to <dev/raidframe/*> for
the stuff that used to live in rf_types.h, rf_raidframe.h, rf_layout.h,
rf_netbsd.h, rf_raid.h, rf_decluster,h, and a few other places.
Believe it or not, when this is all done, things will be cleaner.

No functional changes to RAIDframe.

Revision 1.109.2.4: download - view: text, markup, annotated - select for diffs
Sun Sep 30 18:12:43 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.109.2.3: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.3: +3 -3 lines
Fix vput typo.

Revision 1.109.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 26 15:28:15 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.109.2.2: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.2: +69 -37 lines
* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.109.2.2: download - view: text, markup, annotated - select for diffs
Tue Sep 18 19:13:50 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.109.2.1: preferred, colored; branchpoint 1.109: preferred, colored
Changes since revision 1.109.2.1: +3 -3 lines
Various changes to make cloning devices possible:

	* Add an extra argument (struct vnode **) to VOP_OPEN. If it is
	  not NULL, specfs will create a cloned (aliased) vnode during
	  the call, and return it there. The caller should release and
	  unlock the original vnode if a new vnode was returned. The
	  new vnode is returned locked.

	* Add a flag field to the cdevsw and bdevsw structures.
	  DF_CLONING indicates that it wants a new vnode for each
	  open (XXX is there a better way? devprop?)

	* If a device is cloning, always call the close entry
	  point for a VOP_CLOSE.


Also, rewrite cons.c to do the right thing with vnodes. Use VOPs
rather then direct device entry calls. Suggested by mycroft@

Light to moderate testing done an i386 system (arch doesn't matter
though, these are MI changes).

Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 7 04:45:29 2001 UTC (23 years, 3 months ago) by thorpej
Branches: thorpej-devvp
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +101 -155 lines
Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.104.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:10:36 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104.2.1: preferred, colored
Changes since revision 1.104.2.1: +22 -15 lines
Catch up with -current.

Revision 1.106.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:27 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +21 -11 lines
update to -current

Revision 1.109: download - view: text, markup, annotated - select for diffs
Fri Jul 27 03:30:07 2001 UTC (23 years, 4 months ago) by oster
Branches: MAIN
CVS tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +2 -4 lines
Nuke the 5 NULL parameters from rf_DoAccess().  Observe that 4 of
the variables are passed directly to rf_AllocRaidAccDesc(), and the 5th
isn't even used.  Hunt them down and nuke them too.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Wed Jul 18 06:45:34 2001 UTC (23 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +8 -8 lines
bzero -> memset

Revision 1.107: download - view: text, markup, annotated - select for diffs
Mon Jul 16 15:50:27 2001 UTC (23 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +13 -1 lines
If we're closing the last partition on a RAID set and the system is
being shutdown, then unconfigure the RAID set too.  This fixes a number
of issues with doing proper unconfigures/shutdowns of multi-level RAID
sets.

Thanks to Jason Thorpe and Bill Squier for the ideas/suggestions on
how/where to do this, and to Bill Squier for testing.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Thu Jun 21 03:07:04 2001 UTC (23 years, 5 months ago) by oster
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +2 -5 lines
We don't need to check for raidautoconfig here, so nuke it and
clean up a little.

Revision 1.92.2.9: download - view: text, markup, annotated - select for diffs
Tue May 1 12:27:33 2001 UTC (23 years, 7 months ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.92.2.8: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.8: +54 -5 lines
Pull up revisions 1.102-1.103 (requested by fvdl):
  Increase the number of BSD disklabel partitions on i386 to 16.

Revision 1.29.2.6: download - view: text, markup, annotated - select for diffs
Sat Apr 21 17:49:43 2001 UTC (23 years, 7 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29.2.5: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.2.5: +2 -2 lines
Sync with HEAD

Revision 1.104.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 9 01:57:22 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -2 lines
Catch up with -current.

Revision 1.92.2.8: download - view: text, markup, annotated - select for diffs
Thu Apr 5 12:25:03 2001 UTC (23 years, 8 months ago) by he
Branches: netbsd-1-5
Diff to: previous 1.92.2.7: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.7: +2 -2 lines
Pull up revision 1.105 (requested by oster):
  In order to improve FFS layout, use a value of "4 * number_of_columns"
  instead of "1" for the number of tracks/cylinder in the disklabel.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Apr 5 02:48:51 2001 UTC (23 years, 8 months ago) by oster
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -2 lines
A value of 1 for tracks/cylinder in the disklabel is apparently sub-optimal.
Thus we choose "4 * number_of_columns" as a more reasonable
value (until someone comes up with something better).
This pretends to properly address PR#11989.

Revision 1.29.2.5: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:16:16 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29.2.4: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.2.4: +37 -38 lines
Sync with HEAD.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sat Jan 27 20:42:20 2001 UTC (23 years, 10 months ago) by oster
Branches: MAIN
Branch point for: nathanw_sa
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +37 -38 lines
Un-'__P'ify.

Revision 1.29.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:23:33 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29.2.3: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.2.3: +53 -4 lines
Sync with head (for UBC+NFS fixes, mostly).

Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Jan 8 02:03:47 2001 UTC (23 years, 11 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -3 lines
Return error in the case of using ODIOCGDINFO or ODIOCGDEFLABEL when
the number of partitions is > OLDMAXPARTITIONS. This is better
than silently truncating the label (don't want to silently throw
away partitions when using an old disklabel binary on a label with
> 8 partitions). From Enami Tsugutomo.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Sun Jan 7 18:09:02 2001 UTC (23 years, 11 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +54 -5 lines
Adapt all disk devices in MI directories to handle ODIOC* calls
for ports that have bumped MAXPARTITIONS (and thus define
__HAVE_OLD_DISKLABEL).

Revision 1.29.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:12:39 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29.2.2: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.2.2: +2 -0 lines
Sync with HEAD.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Tue Dec 5 01:35:56 2000 UTC (24 years ago) by oster
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +3 -1 lines
Fix a couple of warnings about uninitialized variables.  Thanks go to
Frank van der Linden for pointing these out.

Revision 1.29.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:04:45 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29.2.1: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.2.1: +4 -6 lines
Sync with HEAD.

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:42:55 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1579 -592 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Mon Nov 20 08:24:24 2000 UTC (24 years ago) by chs
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +4 -6 lines
rationalize the use of b_flags for geteblk() buffers.
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.

Revision 1.92.2.7: download - view: text, markup, annotated - select for diffs
Fri Oct 20 17:48:32 2000 UTC (24 years, 1 month ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.92.2.6: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.6: +17 -13 lines
Pullup 1.99 [oster]:
Move disk_busy() and disk_unbusy() to more sane locations.  Values
reported by 'systat iostat' and friends are now much more correct for
RAIDframe devices.  Thanks to Andrew Doran for poking me about this,
and for suggestions on and review of the changes.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Oct 20 02:24:45 2000 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +17 -13 lines
Move disk_busy() and disk_unbusy() to more sane locations.  Values
reported by 'systat iostat' and friends are now much more correct for
RAIDframe devices.  Thanks to Andrew Doran for poking me about this,
and for suggestions on and review of the changes.

Revision 1.92.2.6: download - view: text, markup, annotated - select for diffs
Wed Oct 18 02:45:41 2000 UTC (24 years, 1 month ago) by tv
Branches: netbsd-1-5
Diff to: previous 1.92.2.5: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.5: +11 -3 lines
Pullup 1.98 [oster]:
Don't touch a failed component at all.  Thanks to Robert Elz (kre) for
noting the problem and providing additional comments.

Revision 1.92.2.5: download - view: text, markup, annotated - select for diffs
Tue Oct 17 20:11:47 2000 UTC (24 years, 1 month ago) by tv
Branches: netbsd-1-5
Diff to: previous 1.92.2.4: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.4: +4 -4 lines
Pullup 1.97 [oster]:
Correct a few calls to VOP_CLOSE().

Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue Oct 17 03:39:41 2000 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +11 -3 lines
Don't touch a failed component at all.  Thanks to Robert Elz (kre) for
noting the problem and providing additional comments.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Sep 21 01:37:35 2000 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +4 -4 lines
Correct a few calls to VOP_CLOSE().

Revision 1.92.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 8 13:42:51 2000 UTC (24 years, 3 months ago) by oster
Branches: netbsd-1-5
Diff to: previous 1.92.2.3: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.3: +5 -1 lines
Pullup 1.31->1.32 of rf_disks.c
Pullup 1.95->1.96 of rf_netbsdkintf.c
Approved by: thorpej

Make sure we are passing a locked vp to VOP_CLOSE.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Fri Sep 8 01:36:36 2000 UTC (24 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -1 lines
Make sure we are passing a locked vp to VOP_CLOSE.

Revision 1.92.2.3: download - view: text, markup, annotated - select for diffs
Sat Aug 19 19:38:43 2000 UTC (24 years, 3 months ago) by oster
Branches: netbsd-1-5
Diff to: previous 1.92.2.2: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.2: +1 -2 lines
Pullup 1.94->1.95.  Approved by thorpej.
Remove a bogus VOP_UNLOCK.

Revision 1.92.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 19 19:37:19 2000 UTC (24 years, 3 months ago) by oster
Branches: netbsd-1-5
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.1: +9 -7 lines
Pullup 1.93->1.94.  Approved by thorpej
Don't try to initialize a component label on a failed component.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Aug 19 18:20:07 2000 UTC (24 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +1 -2 lines
Remove a bogus VOP_UNLOCK.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Aug 19 18:07:36 2000 UTC (24 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +9 -7 lines
Don't try to initialize a component label on a failed component.

Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 14 17:06:45 2000 UTC (24 years, 5 months ago) by oster
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -2 lines
Pullup revision 1.93.
Fix the status reporting for copybacks.  Thanks to Hubert Feyrer for
reporting the problem.
Approved by: thorpej

Revision 1.93: download - view: text, markup, annotated - select for diffs
Fri Jul 14 15:26:29 2000 UTC (24 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -2 lines
Fix the status reporting for copybacks.  Thanks to Hubert Feyrer for
reporting the problem.

Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:07:55 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +172 -128 lines
Sync w/ netbsd-1-5-base.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Jun 4 02:16:05 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
CVS tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +1 -2 lines
Remove outdated comment.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sun Jun 4 02:05:13 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +19 -100 lines
Merge rf_update_component_labels() and rf_final_update_component_labels().

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sat Jun 3 16:44:43 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +3 -2 lines
Allow getting a component label from a spare disk.

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Jun 1 00:50:01 2000 UTC (24 years, 6 months ago) by matt
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +1 -2 lines
Make booted_device global (and booted_parition for consitency).
Eliminate it from header files and other extern definitions.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue May 30 03:29:49 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +32 -10 lines
For a RAID 1 set that has N components, allow the set to auto-configure as
long as at least one of the master or the mirror is available for each
of the N/2 'rows' of the set. (No, RAIDframe doesn't do N-way mirroring..)
Thanks to Manuel Bouyer for noting the problem.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Mon May 29 02:57:35 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +9 -3 lines
Don't let the autodetection code get tripped up by negative mod-counters.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun May 28 05:23:41 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +19 -24 lines
We need to be slightly more clever during auto-configuration, to make
sure that we a) don't ignore components with correct mod-counters, and
b) do ignore components with bogus mod-counters.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun May 28 03:00:31 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +6 -1 lines
Abort any parity re-writes before unconfiguring a RAID set.
Partially addresses PR#10182.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun May 28 01:03:22 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +17 -11 lines
When setting auto-config/rootable bits, only try to update the
component label if the component is actually alive.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sun May 28 00:48:31 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +63 -3 lines
- Add a mechanism for obtaining finer-grained 'progress' information
regarding reconstructs, copybacks, etc.

- RAID 0 doesn't do copybacks, but don't make raidctl sweat about it.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat May 27 20:29:14 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +23 -4 lines
Components which match on everything but the mod_counter are
renegades, and must be handled correctly.  In particular, they should
be added to their old auto-config set, but then immediately released.
Failing to do otherwise means that they potentialy end up in a
different (and competing!) RAID set which may auto-configure in place
of the correct one, and cause all sorts of chaos at auto-configure
time.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat May 27 19:12:03 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +12 -1 lines
Add a comment to clarify why we actually want the component label to
be considered a 'match' even if the mod_counter is wrong.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat May 27 18:23:27 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +5 -3 lines
Checking parity re-write status makes no sense on RAID 0, but let's
return something reasonable anyway.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri May 19 18:54:30 2000 UTC (24 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +6 -6 lines
A foolish consistency; most parts of the kernel use bp->b_data, so
change these from bp->b_un.b_addr to bp->b_data, as well.  This also
allows us more flexibility to experiment with other data buffer types
hung off of struct buf.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri May 19 04:53:25 2000 UTC (24 years, 6 months ago) by minoura
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +5 -5 lines
Add some missing casts of ioctl arg.
Obviously autoconfiguration wouldn't work on big-endian machines.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Thu Apr 27 00:57:48 2000 UTC (24 years, 7 months ago) by oster
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +8 -1 lines
Make sure the config structure allocated during autoconfiguration actually
gets initialized properly.  Should fix PR#9816.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Fri Mar 31 02:05:24 2000 UTC (24 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +1 -2 lines
Minor cleanup of unneeded verbosity.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Fri Mar 31 01:20:43 2000 UTC (24 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -1 lines
Print out the 'root' status of a RAID set during autoconfiguration.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Mar 30 12:45:40 2000 UTC (24 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -4 lines
Remove register declarations.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Mar 26 22:38:28 2000 UTC (24 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +17 -1 lines
Add bits for eventual support of deleteing components and moving
hot-spares into the main set.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Wed Mar 22 01:41:41 2000 UTC (24 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3 lines
Fix up some autoconfigure messages.  In particular, don't try printing
the value of an uninitialized variable.  Noted by Luke Mewburn.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Mar 20 22:59:26 2000 UTC (24 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -3 lines
Just return "100% done" when asked about reconstruction progress on
a RAID0 set.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Mar 7 03:09:47 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +19 -18 lines
Cleanup a couple of function declarations.  No functional changes.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Mar 7 02:59:50 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +38 -36 lines
Create a new rf_close_component() to handle vnode operations for closing
components.  Teach rf_UnconfigureVnodes() how to use it, and tell
the copyback and reconstruction code about it too.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Mar 7 02:28:05 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +58 -1 lines
Move rf_UnconfigureVnodes to rf_netbsdkintf.c where it will be more at home.
Add prototype to rf_kintf.h, and nuke old prototypes from rf_disks.c and
rf_driver.c .

Revision 1.67: download - view: text, markup, annotated - select for diffs
Tue Mar 7 02:12:13 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -5 lines
rf_ protect the component label print routine, and make it more easily
available to the rest of RAIDframe.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Mar 4 06:03:21 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -1 lines
Umm... don't allow attempts to configure the same RAID device multiple times.
The check was there, but the return() was missing :(

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Mar 3 01:46:36 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -7 lines
Minor cleanup.  No functional changes.

Revision 1.16.2.9: download - view: text, markup, annotated - select for diffs
Tue Feb 29 23:31:50 2000 UTC (24 years, 9 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.16.2.8: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.2.8: +3 -1 lines
Apply patch (requested by oster):
  Protect rf_RewriteParity() with splbio().

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sun Feb 27 02:35:33 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +2 -2 lines
Nuke some debugging output that got left in by mistake.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Feb 27 01:50:22 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +83 -19 lines
Only mark the components as CLEAN if it's the last thing we're doing.
Marking them CLEAN earlier is (currently) asking for trouble.
(XXX This could have been done more elegantly.)

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Feb 26 17:35:43 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +11 -3 lines
Defopt 'RAID_AUTOCONFIG'.  Adding 'options RAID_AUTOCONFIG' turns on
the component auto-detection and auto-configuration of RAID sets.
Also, add "#options RAID_AUTOCONFIG" to the GENERIC config files.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Feb 25 20:11:00 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -36 lines
Minor cleanups.  Remove extra debugging printouts.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Feb 25 19:56:56 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +14 -14 lines
- ignore the mod_counter when checking to see if a component fits with the
rest of an autoconfig set.
- minor cleanups

Revision 1.59: download - view: text, markup, annotated - select for diffs
Fri Feb 25 02:42:30 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +13 -32 lines
- cleanup raidinit()
- cleanup rf_mountroot_hooks()
- various other cleanups.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Feb 25 02:21:12 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +6 -2 lines
Be *slightly* more consistent about the use of num and numraid in raidattach().

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Feb 24 01:23:05 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +16 -7 lines
- mod_counter needs to get incremented more often.
- use raid_init_component_labels instead of hand-rolling a component_label.
(missed doing this for the rf_used_spare case when updating component labels).
- fix serial number initialization in raid_init_component_labels

Revision 1.56: download - view: text, markup, annotated - select for diffs
Wed Feb 23 03:44:03 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +10 -1 lines
Be more aggressive about updating component labels in the event
of a real component failure (or a simulated failure):
- add 'numNewFailures' to keep track of the number of disk failures
since mod_counter was last updated for each component label.
- make sure we call rf_update_component_labels() upon any component failure,
real or simulated.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Wed Feb 23 02:11:05 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1 -2 lines
blockSize for the component label is already set correctly here.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Feb 23 02:04:21 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +19 -8 lines
- cleanup of more component label code
- make current default label values available everywhere
- make sure numBlocks and blockSize in component labels get initialized
for all component labels
- check for component size to be smaller than or equal to the partition size
when autoconfiguring

Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Feb 22 23:13:15 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -2 lines
Note the fact that the first arg of raidinit() may be bogus in
the autoconfig case (the value of the first arg never gets used, but...).

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Feb 22 16:07:02 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -2 lines
Bounds-check the 'last unit' a little more closely.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Tue Feb 22 03:38:42 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +202 -40 lines
- implement additional component checking before autoconfiguration
- make component label setting work again(!!!!)

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Feb 21 23:33:45 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -2 lines
Umm.. let's set 'numraid' to something useful before we try to use it.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Feb 16 01:10:44 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +17 -16 lines
Some of these function names are bad enough that no one else would probably
pick them, but preface them with rf_ anyway.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sun Feb 13 04:53:57 2000 UTC (24 years, 10 months ago) by oster
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +749 -114 lines
Get recent changes into the tree:
- make component_label variables more consistent (==> clabel)
- re-work incorrect component configuration code
- re-work disk configuration code
- cleanup initial configuration of raidPtr info
- add auto-detection of components and RAID sets (Disabled, for now)
- allow / on RAID sets (Disabled, for now)
- rename "config_disk_queue" to "rf_ConfigureDiskQueue" and properly prototype
in rf_diskqueue.h
- protect some headers with #if _KERNEL  (XXX this needs to be fixed properly)
  and cleanup header formatting.
- expand the component labels (yes, they should be backward/forward compatible)
- other bits and pieces (some function names are still bogus, and will get
changed soon)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Jan 21 23:39:59 2000 UTC (24 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +6 -25 lines
Update for sys/buf.h/disksort_*() changes.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sun Jan 9 03:39:13 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -17 lines
Nuke more debugging stuff and cleanup a tad.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Jan 9 02:56:13 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -3 lines
By popular demand (Hi Thor!) make the cylinder size in a default
disklabel be the size of the (data part) of the stripe.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Jan 9 01:29:27 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -10 lines
- move a bunch of function prototypes to rf_kintf.h
- general cleanup of a number of prototypes that were scattered around.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Jan 8 02:04:06 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -14 lines
Nuke some (now) incorrect comments.  More minor cleanup.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Jan 8 01:52:42 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +80 -82 lines
Replace raidPtrs[unit] with just raidPtr, and assign the former to the
later early on in raidioctl().  Code is easier to read now too.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Jan 8 01:37:37 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +52 -65 lines
Minor tillage on the raidioctl() stuff.  More cleanup to follow.
No functional changes.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Fri Jan 7 13:57:20 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +11 -9 lines
In RAIDFRAME_CONFIGURE, don't set values in raidPtrs[unit] unless
the configuration was successful.  Noted by Peter Galbavy of OpenBSD.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Jan 6 02:06:41 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -31 lines
- bail if we can't allocate memory for raid_softc's.  Set 'numraid' as
appropriate for that condition.
- nuke some debugging stuff that we hope we'll never need again
- minor cleanups

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Jan 5 04:15:30 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +5 -1 lines
Make sure we really get something back from RF_Malloc before we use it.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jan 5 02:57:29 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +170 -85 lines
- update RF_CREATE_THREAD to handle a 'process name' argument.
- fire up a new thread for parity re-writes, copybacks, and reconstructs.
  The ioctl's which trigger these actions now return immediately.
- add progress accounting for the above actions.
- minor rototillage of rf_netbsdkintf.c to deal with all of the above.

Revision 1.29.8.3: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:28 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.29.8.2: preferred, colored; branchpoint 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29.8.2: +139 -154 lines
Pull up to last week's -current.

Revision 1.29.8.2: download - view: text, markup, annotated - select for diffs
Wed Dec 22 00:13:24 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.29.8.1: preferred, colored; branchpoint 1.29: preferred, colored
Changes since revision 1.29.8.1: +3 -4 lines
DEF_BSIZE is right for raidsize().

Revision 1.29.8.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 23:19:54 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +26 -7 lines
Initial commit of recent changes to make DEV_BSIZE go away.

Runs on i386, needs work on other arch's. Main kernel routines should be
fine, but a number of the stand programs need help.

cd, fd, ccd, wd, and sd have been updated. sd has been tested with non-512
byte block devices. vnd, raidframe, and lfs need work.

Non 2**n block support is automatic for LKM's and conditional for kernels
on "options NON_PO2_BLOCKS".

Revision 1.16.2.8: download - view: text, markup, annotated - select for diffs
Mon Dec 20 13:38:41 1999 UTC (24 years, 11 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.16.2.7: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.7: +116 -94 lines
Pull up revisions 1.34-1.35 (requested by oster):
  Re-work the IO throttle code.  Fixes potential panics under high
  loads under FFS.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Dec 15 02:02:16 1999 UTC (25 years ago) by oster
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +6 -48 lines
Nuke a bunch of debugging cruft.  No functional changes.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Dec 14 15:27:00 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -3 lines
Whoops! Neglected to initialize the buffer queues for anything other
than raid0.  Fix that...

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Dec 12 20:51:41 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +117 -96 lines
Rototill the IO throttle code.  Rename rf_DoAccessKernel() to raidstart()
and cleanup arguments.  While we're here, cleanup raidstrategy(), and nuke
a bunch of unused debugging stuff.

RAIDframe + softdeps now play very nicely together.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Dec 3 03:06:44 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +9 -3 lines
Kernel memory is not to be wasted.  If we're bailing out because of an error,
give any allocated memory back to the kernel so someone else can use it.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Dec 3 02:43:22 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -2 lines
Move LIST_INIT() to a more appropriate place.

Revision 1.16.2.2.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 30 13:34:26 1999 UTC (25 years ago) by itojun
Branches: kame
CVS tags: kame_141_19991130
Diff to: previous 1.16.2.2: preferred, colored; next MAIN 1.16.2.3: preferred, colored
Changes since revision 1.16.2.2: +2 -1 lines
bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Nov 18 13:28:06 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
We must initialize bp->b_dep in InitBP().

Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Nov 17 01:16:37 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +7 -9 lines
Remove some minor stuff that wasn't right, and wasn't even really used.

Revision 1.16.2.7: download - view: text, markup, annotated - select for diffs
Tue Sep 28 04:47:51 1999 UTC (25 years, 2 months ago) by cgd
Branches: netbsd-1-4
Diff to: previous 1.16.2.6: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.6: +9 -12 lines
pull up rev 1.26 from trunk (requested by oster):
  Correct and/or improve detection of bogus row/column values passed
  in via ioctls.

Revision 1.16.2.6: download - view: text, markup, annotated - select for diffs
Tue Sep 28 04:46:28 1999 UTC (25 years, 2 months ago) by cgd
Branches: netbsd-1-4
Diff to: previous 1.16.2.5: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.5: +23 -0 lines
pull up rev 1.24 from trunk (requested by oster):
  Don't allow reconstructs, copybacks, or forced failures of components if
  using a RAID 0, since RAID 0 can't handle those sorts of things.

Revision 1.16.2.5: download - view: text, markup, annotated - select for diffs
Mon Sep 27 05:04:10 1999 UTC (25 years, 2 months ago) by cgd
Branches: netbsd-1-4
Diff to: previous 1.16.2.4: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.4: +5 -0 lines
pull up rev 1.21 from trunk (requested by oster):
  splbio()/splx() protect some reconstruction code to avoid
  potentially bad interatctions with the pool code.

Revision 1.16.2.4: download - view: text, markup, annotated - select for diffs
Sun Sep 26 02:14:17 1999 UTC (25 years, 2 months ago) by cgd
Branches: netbsd-1-4
Diff to: previous 1.16.2.3: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.3: +28 -9 lines
pull up rev 1.20 from trunk (requested by oster):
  Add a more reasonable throttling mechanism to the RAIDframe code.
  Increases write performance, and helps prevent the I/O routines from
  using too much kernel memory.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Aug 14 23:34:18 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
CVS tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -35 lines
Minor cleanup.  No functional changes.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Aug 14 03:47:07 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +14 -3 lines
Decrease the number of outstanding IO's threashold slightly.
The previous value may have been too high in some instances.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Aug 14 03:10:03 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -16 lines
Remove a 'struct proc *'-passing abomination that's been bugging me
for quite some time.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Aug 14 02:41:36 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +9 -12 lines
Correct and/or improve detection of bogus row/column values
passed in via ioctls.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Aug 13 03:27:46 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -9 lines
Garbage collect rpcc().

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Aug 10 22:46:59 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +24 -1 lines
Don't allow reconstructs, copybacks, or forced failures of components if
using a RAID 0, since RAID 0 can't handle those sorts of things.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue Aug 10 21:41:37 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -1 lines
Oops.  Make minor change that I forgot when adding the parity check ioctl.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Aug 10 18:18:30 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -2 lines
Add support for easily checking the parity status from userland.
Also: spl protect rf_RewriteParity().

Revision 1.16.2.2.2.2: download - view: text, markup, annotated - select for diffs
Mon Aug 2 22:05:32 1999 UTC (25 years, 4 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.16.2.2.2.1: preferred, colored; branchpoint 1.16.2.2: preferred, colored; next MAIN 1.16.2.3: preferred, colored
Changes since revision 1.16.2.2.2.1: +34 -10 lines
Update from trunk.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Jul 21 03:15:26 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -1 lines
Need to splbio()/splx() protect some of the reconstruction stuff.
Without this, we have potentially bad interatctions with the pool
code.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Jul 8 00:45:23 1999 UTC (25 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +29 -10 lines
Once upon a time, long long ago, there was a "fix" added to the
RAIDframe driver to stop it from eating too much kernel memory when
writing data.  But that fix had a nasty side-affect of hurting write
performance (*much* more than I thought it would).  These changes nuke
that "fix", and instead put in a more reasonable mechanism for limiting
the number of simultaneous IO's which can be happening for each RAID device.
The result is a noticeable improvement in write throughput.  The End.

Revision 1.16.2.3: download - view: text, markup, annotated - select for diffs
Wed Jun 23 14:45:07 1999 UTC (25 years, 5 months ago) by perry
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH001
Diff to: previous 1.16.2.2: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.2: +2 -1 lines
pullup 1.18->1.19 (oster)

Revision 1.16.2.2.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:18:58 1999 UTC (25 years, 5 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.16.2.2: preferred, colored
Changes since revision 1.16.2.2: +2 -1 lines
Sync w/ -current.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jun 13 20:36:17 1999 UTC (25 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1 lines
Remember to pass down the proc pointer when adding a hot spare.
(Thanks to Martin J. Laubach for helping track this one down.)

Revision 1.16.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 12 22:09:10 1999 UTC (25 years, 8 months ago) by oster
Branches: netbsd-1-4
CVS tags: netbsd-1-4-RELEASE, kame_14_19990705, kame_14_19990628
Branch point for: kame, chs-ubc2
Diff to: previous 1.16.2.1: preferred, colored; branchpoint 1.16: preferred, colored
Changes since revision 1.16.2.1: +5 -5 lines
Pullup 1.17 to 1.18.  Fixup some compiler warnings which get
generated on the Alpha port.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Apr 12 19:39:59 1999 UTC (25 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -5 lines
Fix a couple of compiler warnings on the Alpha.  Pointed out by Tim Rightnour.

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 7 16:37:50 1999 UTC (25 years, 8 months ago) by oster
Branches: netbsd-1-4
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -3 lines
Pullup: 1.16 -> 1.17.  Re-writing parity on a RAID 0 now trivially succeeds
and sets the clean bit.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Apr 7 14:17:10 1999 UTC (25 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -3 lines
Allow re-writing parity on a RAID 0 to trivially succeed, and to set the
clean bit.  This is somewhat bogus as RAID 0 does not have any parity,
but is a slightly cleaner than other solutions, and makes the handling
of clean bits for RAID 0 consistent with the handling of clean bits at
other RAID levels.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Mar 27 01:26:37 1999 UTC (25 years, 8 months ago) by oster
Branches: MAIN
CVS tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -40 lines
Cleanup shutdown code - garbage collect (now) unused shutdownhooks() stuff.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 14 21:53:31 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
Disallow interrupting parity re-writes or copybacks by removing PCATCH
from the tsleep()'s (they probably shouldn't have been there in the
first place!).  Making parity re-writing and copybacks interruptable
will require re-designing how a few things are done (e.g. how memory
is freed for structures shipped off to routines that run asynchronously
relative to the calling routine).  Fix a few other tsleep's while we're at it.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Mar 9 03:53:18 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +20 -52 lines
Cleanup raidattach: move rf_boot's functionality to raidattach, and
nuke rf_boot().  Cleanup raidopen().

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Mar 9 02:59:25 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +148 -5 lines
rf_update_component_labels() now lives here.  Re-work clean-bit
support a little: clean-bits now also get frobbed on partition
opening/closing, rather than just at device configuration and device
unconfiguration.  Schedule shutdownhooks() stuff for nukage at a later
date, since it isn't really necessary any more.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Mar 2 03:18:49 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +198 -31 lines
Update for recent changes including component label support, clean
bits, rebuilding components in-place, adding hot spares, shutdownhooks, etc.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Feb 23 23:57:53 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +286 -63 lines
Cleanup/remove unused cruft.  First kick at component labels and clean bits.
Still work in progress.  New code is there, but not enabled yet.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Feb 11 01:23:32 1999 UTC (25 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +58 -56 lines
Minor cleanups that got missed last time through.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Feb 5 00:06:13 1999 UTC (25 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +629 -667 lines
Phase 2 of the RAIDframe cleanup.  The source is now closer to KNF
and is much easier to read.  No functionality changes.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Jan 26 02:33:59 1999 UTC (25 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -194 lines
RAIDframe cleanup, phase 1.  Nuke simulator support, user-land driver,
out-dated comments, and other unneeded stuff.  This helps prepare
for cleaning up the rest of the code, and adding new functionality.

No functional changes to the kernel code in this commit.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jan 15 17:55:52 1999 UTC (25 years, 11 months ago) by explorer
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +18 -2 lines
Make it so raidframe will only perform synchronous writes, and async
reads.  This avoids a problem where many writes will cause the driver
to allocate way too much memory.

This needs to change to a queueing system later, which will provide a
way to limit the memory consumed by the driver.

Without these changes, raidframe would use 24M or more on my machine when
the buffer cache dumped all its dirty blocks.  Now it uses around 200k
or so.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jan 14 22:49:05 1999 UTC (25 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Use M_RAIDFRAME.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Dec 22 20:03:14 1998 UTC (25 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +23 -12 lines
Clean up some debugging stuff, and make it compile without warnings
with -DDEBUG on alphas.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Dec 3 15:14:40 1998 UTC (26 years ago) by oster
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +39 -1 lines
Try a bit harder to detect the physical failure of a component, and to
mark that component as dead.  Physical failures are handled much better now.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Nov 15 00:01:24 1998 UTC (26 years, 1 month ago) by hubertf
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
compile with DEBUG=1

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Nov 13 11:51:55 1998 UTC (26 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -3 lines
prototype un-prototyped functions

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Nov 13 04:20:31 1998 UTC (26 years, 1 month ago) by oster
Branches: MAIN
RAIDframe, version 1.1, from the Parallel Data Laboratory at
Carnegie Mellon University.  Full RAID implementation, including
levels 0, 1, 4, 5, 6, parity logging, and a few other goodies.
Ported to NetBSD by Greg Oster.

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>