CVS commit: src/sys/dev/raidframe

2025-01-08 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Wed Jan 8 08:25:36 UTC 2025 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: s/ocmponent/component/ and s/abd/and/ in comments. To generate a diff of this commit: cvs rdiff -u -r1.417 -r1.418 src/sys/dev/rai

CVS commit: src/sys/dev/raidframe

2025-01-08 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Wed Jan 8 08:25:36 UTC 2025 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: s/ocmponent/component/ and s/abd/and/ in comments. To generate a diff of this commit: cvs rdiff -u -r1.417 -r1.418 src/sys/dev/rai

CVS commit: src/sys/dev/raidframe

2024-09-19 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Thu Sep 19 06:13:03 UTC 2024 Modified Files: src/sys/dev/raidframe: rf_driver.c Log Message: s/conficts/conflicts/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.143 -r1.144 src/sys/dev/raidframe/rf_driver.c Pl

CVS commit: src/sys/dev/raidframe

2024-09-18 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Thu Sep 19 06:13:03 UTC 2024 Modified Files: src/sys/dev/raidframe: rf_driver.c Log Message: s/conficts/conflicts/ in comment. To generate a diff of this commit: cvs rdiff -u -r1.143 -r1.144 src/sys/dev/raidframe/rf_driver.c Pl

CVS commit: src/sys/dev/raidframe

2023-10-15 Thread Greg Oster
Module Name:src Committed By: oster Date: Sun Oct 15 18:15:20 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_dagdegwr.c rf_dagffwr.c rf_pq.c rf_pqdeg.c rf_pqdegdags.c rf_pqdegdags.h Log Message: Make RF_INCLUDE_RAID6 build (needs more changes to make it wor

CVS commit: src/sys/dev/raidframe

2023-10-15 Thread Greg Oster
Module Name:src Committed By: oster Date: Sun Oct 15 18:15:20 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_dagdegwr.c rf_dagffwr.c rf_pq.c rf_pqdeg.c rf_pqdegdags.c rf_pqdegdags.h Log Message: Make RF_INCLUDE_RAID6 build (needs more changes to make it wor

CVS commit: src/sys/dev/raidframe

2023-10-09 Thread Greg Oster
Module Name:src Committed By: oster Date: Mon Oct 9 22:00:38 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_driver.c Log Message: Make the name of the condition more reflective of the name of the condition variable. From Edgar Fuß. To generate a diff of this commi

CVS commit: src/sys/dev/raidframe

2023-10-09 Thread Greg Oster
Module Name:src Committed By: oster Date: Mon Oct 9 22:00:38 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_driver.c Log Message: Make the name of the condition more reflective of the name of the condition variable. From Edgar Fuß. To generate a diff of this commi

CVS commit: src/sys/dev/raidframe

2023-10-09 Thread Greg Oster
Module Name:src Committed By: oster Date: Mon Oct 9 21:55:48 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: spaces->tabs. Noted by Edgar Fuß To generate a diff of this commit: cvs rdiff -u -r1.416 -r1.417 src/sys/dev/raidframe/rf_netbsdki

CVS commit: src/sys/dev/raidframe

2023-10-09 Thread Greg Oster
Module Name:src Committed By: oster Date: Mon Oct 9 21:55:48 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: spaces->tabs. Noted by Edgar Fuß To generate a diff of this commit: cvs rdiff -u -r1.416 -r1.417 src/sys/dev/raidframe/rf_netbsdki

CVS commit: src/sys/dev/raidframe

2023-09-25 Thread Greg Oster
Module Name:src Committed By: oster Date: Mon Sep 25 16:16:50 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_disks.c Log Message: snprintf() should really include a format. To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/sys/dev/raidframe/rf_disks.c

CVS commit: src/sys/dev/raidframe

2023-09-25 Thread Greg Oster
Module Name:src Committed By: oster Date: Mon Sep 25 16:16:50 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_disks.c Log Message: snprintf() should really include a format. To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/sys/dev/raidframe/rf_disks.c

CVS commit: src/sys/dev/raidframe

2023-09-16 Thread Greg Oster
Module Name:src Committed By: oster Date: Sat Sep 16 23:38:57 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: A component that is in state rf_ds_reconstructing has failed, and should not be consulted for DIOCGCACHE. Fixes an observed panic wh

CVS commit: src/sys/dev/raidframe

2023-09-16 Thread Greg Oster
Module Name:src Committed By: oster Date: Sat Sep 16 23:38:57 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: A component that is in state rf_ds_reconstructing has failed, and should not be consulted for DIOCGCACHE. Fixes an observed panic wh

CVS commit: src/sys/dev/raidframe

2023-09-08 Thread Greg Oster
Module Name:src Committed By: oster Date: Fri Sep 8 22:55:32 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_reconstruct.c Log Message: Revision 1.104 actually fixed the issues that were preventing us from freeing the ReconControl structures. So free them and thus als

CVS commit: src/sys/dev/raidframe

2023-09-08 Thread Greg Oster
Module Name:src Committed By: oster Date: Fri Sep 8 22:55:32 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_reconstruct.c Log Message: Revision 1.104 actually fixed the issues that were preventing us from freeing the ReconControl structures. So free them and thus als

CVS commit: src/sys/dev/raidframe

2023-03-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Mar 30 11:02:15 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: raidframe: Nix unused parameter to raidwrite_component_area. All calls use the same value. Prune dead branches using it. To g

CVS commit: src/sys/dev/raidframe

2023-03-30 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Mar 30 11:02:15 UTC 2023 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: raidframe: Nix unused parameter to raidwrite_component_area. All calls use the same value. Prune dead branches using it. To g

CVS commit: src/sys/dev/raidframe

2022-08-27 Thread Greg Oster
Module Name:src Committed By: oster Date: Sun Aug 28 00:37:41 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Simplify the check for what ioctls can be done in raidioctl() without the device being initialized. To generate a diff of this comm

CVS commit: src/sys/dev/raidframe

2022-08-27 Thread Greg Oster
Module Name:src Committed By: oster Date: Sun Aug 28 00:37:41 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Simplify the check for what ioctls can be done in raidioctl() without the device being initialized. To generate a diff of this comm

CVS commit: src/sys/dev/raidframe

2022-08-27 Thread Greg Oster
Module Name:src Committed By: oster Date: Sun Aug 28 00:26:04 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: RAIDframe must be initialized for the RAIDFRAME_SET_LAST_UNIT and RAIDFRAME_SHUTDOWN ioctls. XXX Pullup-9 Reported-by: syzbot+1c20f

CVS commit: src/sys/dev/raidframe

2022-08-27 Thread Greg Oster
Module Name:src Committed By: oster Date: Sun Aug 28 00:26:04 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: RAIDframe must be initialized for the RAIDFRAME_SET_LAST_UNIT and RAIDFRAME_SHUTDOWN ioctls. XXX Pullup-9 Reported-by: syzbot+1c20f

CVS commit: src/sys/dev/raidframe

2022-08-09 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Aug 10 01:16:39 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_disks.c rf_driver.c rf_netbsdkintf.c Log Message: raidframe: reject invalid values for numCol and numSpares numCol and numSpares are "int" so they can be "-1" in

CVS commit: src/sys/dev/raidframe

2022-08-09 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Aug 10 01:16:39 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_disks.c rf_driver.c rf_netbsdkintf.c Log Message: raidframe: reject invalid values for numCol and numSpares numCol and numSpares are "int" so they can be "-1" in

CVS commit: src/sys/dev/raidframe

2022-06-27 Thread Greg Oster
Module Name:src Committed By: oster Date: Tue Jun 28 03:13:27 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_compat80.c Log Message: RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl. Reported-by: syzbot+048387fcc9a1a3682...@syzkaller.appspotmail.com R

CVS commit: src/sys/dev/raidframe

2022-06-27 Thread Greg Oster
Module Name:src Committed By: oster Date: Tue Jun 28 03:13:27 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_compat80.c Log Message: RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl. Reported-by: syzbot+048387fcc9a1a3682...@syzkaller.appspotmail.com R

Re: CVS commit: src/sys/dev/raidframe

2022-04-16 Thread J. Hannken-Illjes
> On 16. Apr 2022, at 18:40, Andrius Varanavicius wrote: > > Module Name: src > Committed By: andvar > Date: Sat Apr 16 16:40:54 UTC 2022 > > Modified Files: > src/sys/dev/raidframe: rf_netbsdkintf.c > > Log Message: > Fix mistake in error branch locking caused by previous change

CVS commit: src/sys/dev/raidframe

2022-04-16 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sat Apr 16 16:40:54 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Fix mistake in error branch locking caused by previous changes. vput(vp) also unlocks vp, thus unlocking happens twice in error flow

CVS commit: src/sys/dev/raidframe

2022-04-16 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sat Apr 16 16:40:54 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Fix mistake in error branch locking caused by previous changes. vput(vp) also unlocks vp, thus unlocking happens twice in error flow

CVS commit: src/sys/dev/raidframe

2022-04-16 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Apr 16 07:57:33 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Unlock vnode for VOP_IOCTL(). To generate a diff of this commit: cvs rdiff -u -r1.405 -r1.406 src/sys/dev/raidframe/rf_netbsdkint

CVS commit: src/sys/dev/raidframe

2022-04-16 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Apr 16 07:57:33 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Unlock vnode for VOP_IOCTL(). To generate a diff of this commit: cvs rdiff -u -r1.405 -r1.406 src/sys/dev/raidframe/rf_netbsdkint

CVS commit: src/sys/dev/raidframe

2022-03-28 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Mon Mar 28 13:07:14 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Restore another historic RCS Id. To generate a diff of this commit: cvs rdiff -u -r1.404 -r1.405 src/sys/dev/raidframe/rf_netbsdkintf

CVS commit: src/sys/dev/raidframe

2022-03-28 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Mon Mar 28 13:07:14 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Restore another historic RCS Id. To generate a diff of this commit: cvs rdiff -u -r1.404 -r1.405 src/sys/dev/raidframe/rf_netbsdkintf

CVS commit: src/sys/dev/raidframe

2022-03-10 Thread matthew green
Module Name:src Committed By: mrg Date: Fri Mar 11 01:59:33 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: convert non-config-handled "DEBUG_ROOT" to aprint_debug(). now it's possible to get boot-time info about raidframe root device selecti

CVS commit: src/sys/dev/raidframe

2022-03-10 Thread matthew green
Module Name:src Committed By: mrg Date: Fri Mar 11 01:59:33 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: convert non-config-handled "DEBUG_ROOT" to aprint_debug(). now it's possible to get boot-time info about raidframe root device selecti

CVS commit: src/sys/dev/raidframe

2022-03-09 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Mar 9 10:04:06 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: merge two debug lines in auto-root selection. To generate a diff of this commit: cvs rdiff -u -r1.401 -r1.402 src/sys/dev/raidframe/r

CVS commit: src/sys/dev/raidframe

2022-03-09 Thread matthew green
Module Name:src Committed By: mrg Date: Wed Mar 9 10:04:06 UTC 2022 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: merge two debug lines in auto-root selection. To generate a diff of this commit: cvs rdiff -u -r1.401 -r1.402 src/sys/dev/raidframe/r

CVS commit: src/sys/dev/raidframe

2021-12-13 Thread matthew green
Module Name:src Committed By: mrg Date: Tue Dec 14 00:46:43 UTC 2021 Modified Files: src/sys/dev/raidframe: rf_diskqueue.c Log Message: call buf_destroy() after buf_init(). hopefully fixes the lockdebug problem shown here: http://mail-index.netbsd.org/tech-kern/2021/1

CVS commit: src/sys/dev/raidframe

2021-12-13 Thread matthew green
Module Name:src Committed By: mrg Date: Tue Dec 14 00:46:43 UTC 2021 Modified Files: src/sys/dev/raidframe: rf_diskqueue.c Log Message: call buf_destroy() after buf_init(). hopefully fixes the lockdebug problem shown here: http://mail-index.netbsd.org/tech-kern/2021/1

CVS commit: src/sys/dev/raidframe

2021-08-28 Thread Greg Oster
Module Name:src Committed By: oster Date: Sat Aug 28 16:00:52 UTC 2021 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: 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 th

CVS commit: src/sys/dev/raidframe

2021-08-28 Thread Greg Oster
Module Name:src Committed By: oster Date: Sat Aug 28 16:00:52 UTC 2021 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: 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 th

CVS commit: src/sys/dev/raidframe

2019-10-30 Thread Martin Husemann
Module Name:src Committed By: martin Date: Wed Oct 30 16:00:13 UTC 2019 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Gcc -Os on landisk is not smart enough to follow the conditional initialization and warns, unconditionaly initialize dksc at declara

CVS commit: src/sys/dev/raidframe

2019-10-30 Thread Martin Husemann
Module Name:src Committed By: martin Date: Wed Oct 30 16:00:13 UTC 2019 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Gcc -Os on landisk is not smart enough to follow the conditional initialization and warns, unconditionaly initialize dksc at declara

CVS commit: src/sys/dev/raidframe

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 07:59:45 UTC 2019 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: 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

CVS commit: src/sys/dev/raidframe

2019-10-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Oct 30 07:59:45 UTC 2019 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: 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

CVS commit: src/sys/dev/raidframe

2019-10-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Oct 10 03:44:00 UTC 2019 Modified Files: src/sys/dev/raidframe: raidframevar.h rf_callback.c rf_callback.h rf_copyback.c rf_dag.h rf_dagdegrd.c rf_dagdegrd.h rf_dagdegwr.c rf_dagdegwr.h rf_dagffrd.c rf

CVS commit: src/sys/dev/raidframe

2019-10-09 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Oct 10 03:44:00 UTC 2019 Modified Files: src/sys/dev/raidframe: raidframevar.h rf_callback.c rf_callback.h rf_copyback.c rf_dag.h rf_dagdegrd.c rf_dagdegrd.h rf_dagdegwr.c rf_dagdegwr.h rf_dagffrd.c rf

CVS commit: src/sys/dev/raidframe

2019-09-25 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Sep 26 01:36:11 UTC 2019 Modified Files: src/sys/dev/raidframe: raidframevar.h rf_compat50.c Log Message: make nspares unsigned; it is assigned from numSpares which is unsigned. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/dev/raidframe

2019-09-25 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Sep 26 01:36:11 UTC 2019 Modified Files: src/sys/dev/raidframe: raidframevar.h rf_compat50.c Log Message: make nspares unsigned; it is assigned from numSpares which is unsigned. To generate a diff of this commit: cvs rdiff

Re: CVS commit: src/sys/dev/raidframe

2019-02-05 Thread Christos Zoulas
In article , Paul Goyette wrote: >> Module Name:src >> Committed By: mrg >> Date: Tue Feb 5 09:28:00 UTC 2019 >> >> Modified Files: >> src/sys/dev/raidframe: rf_netbsdkintf.c >> >> Log Message: >> fix the previous: >> >> rf_netbsd32 is only relevant on _LP64 as all the st

CVS commit: src/sys/dev/raidframe

2019-02-05 Thread Paul Goyette
Module Name:src Committed By: mrg Date: Tue Feb 5 09:28:00 UTC 2019 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: 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 fo

Re: CVS commit: src/sys/dev/raidframe

2017-01-13 Thread coypu
It's still a behaviour change.. On Thu, Jan 12, 2017 at 11:22:16PM -0500, Christos Zoulas wrote: > +static void > +rf_handle_hosed(RF_Raid_t *raidPtr, RF_Config_t *cfgPtr, int hosed_column) > +{ > + if (raidPtr->Disks[hosed_column].status == rf_ds_failed) > + return; equivalent to

Re: CVS commit: src/sys/dev/raidframe

2017-01-13 Thread coypu
On Thu, Jan 12, 2017 at 11:22:16PM -0500, Christos Zoulas wrote: > +rf_handle_hosed(RF_Raid_t *raidPtr, RF_Config_t *cfgPtr, int hosed_column) > +{ : > + if (raidPtr->Disks[hosed_column].status == rf_ds_failed) > + return; equivalent to if (raidPtr->Disks[hosed_column].status != rf

Re: CVS commit: src/sys/dev/raidframe

2016-12-10 Thread coypu
err, this does introduce a functional change... oops it's if panicstr != NULL, but that's not the argument.

Re: CVS commit: src/sys/dev/raidframe

2016-01-02 Thread Christos Zoulas
In article <112c4aeb-38d8-42d4-be3c-b53e866ea...@eis.cs.tu-bs.de>, J. Hannken-Illjes wrote: > >Where does it call biodone()? > >biodone_vfs(bp); /* biodone() iff vfs present */ Nevertheless, it is best to check for the error and not biowait needlessly. christos

Re: CVS commit: src/sys/dev/raidframe

2016-01-02 Thread J. Hannken-Illjes
On 02 Jan 2016, at 17:07, Christos Zoulas wrote: > > In article <20160102160001.c978df...@cvs.netbsd.org>, > Michael van Elst wrote: >> @@ -2665,11 +2664,7 @@ raidread_component_area(dev_t dev, struc >> bp->b_flags |= B_READ; >> bp->b_resid = dsize; >> >> -bdev = bdevsw_lookup(bp-

Re: CVS commit: src/sys/dev/raidframe

2016-01-02 Thread Christos Zoulas
In article <20160102160001.c978df...@cvs.netbsd.org>, Michael van Elst wrote: >@@ -2665,11 +2664,7 @@ raidread_component_area(dev_t dev, struc > bp->b_flags |= B_READ; > bp->b_resid = dsize; > >- bdev = bdevsw_lookup(bp->b_dev); >- if (bdev == NULL) >- return (E

Re: CVS commit: src/sys/dev/raidframe

2015-12-26 Thread Paul Goyette
On Sun, 27 Dec 2015, Robert Elz wrote: Date:Sat, 26 Dec 2015 12:59:01 + From:"Paul Goyette" Message-ID: <20151226125901.230e1f...@cvs.netbsd.org> | if it does, all we really lose is auto-configuration of raid-sets. Auto-config of raid is what makes many of my s

Re: CVS commit: src/sys/dev/raidframe

2015-12-26 Thread Robert Elz
Date:Sat, 26 Dec 2015 12:59:01 + From:"Paul Goyette" Message-ID: <20151226125901.230e1f...@cvs.netbsd.org> | if it does, all we really lose is auto-configuration of raid-sets. Auto-config of raid is what makes many of my systems function, if that fails, the sy

Re: CVS commit: src/sys/dev/raidframe

2015-12-26 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Sat Dec 26 00:58:45 UTC 2015 Modified Files: src/sys/dev/raidframe: rf_driver.c rf_driver.h rf_netbsdkintf.c Log Message: Modularize the raidframe driver, including rework of the unit attach code to permit detaching (and possib

Re: CVS commit: src/sys/dev/raidframe

2014-04-03 Thread David Laight
On Thu, Apr 03, 2014 at 12:13:09PM -0400, Greg Troxel wrote: > > > Or: > > 1. add the ability to pass the root name through the bootblocks/userconf > > 2. add a raidctl -A forceroot and obey that. > > > > | It seems to me that the behavior 1 (not in case 2) isn't useful, and > > | that we

Re: CVS commit: src/sys/dev/raidframe

2014-04-03 Thread Greg Troxel
chris...@zoulas.com (Christos Zoulas) writes: > On Apr 3, 7:57am, m...@eterna.com.au (matthew green) wrote: > -- Subject: re: CVS commit: src/sys/dev/raidframe > > | kernel configuration changes are not solutions, so 2 and 3 are out. > | > | if we do 4, we should instea

re: CVS commit: src/sys/dev/raidframe

2014-04-03 Thread Christos Zoulas
On Apr 3, 8:10am, m...@eterna.com.au (matthew green) wrote: -- Subject: re: CVS commit: src/sys/dev/raidframe | | > > 4. we can add an option to mark the raid as force root. | > | > if we do 4, we should instead add an option to mark something as a | > 'soft root

re: CVS commit: src/sys/dev/raidframe

2014-04-03 Thread Christos Zoulas
On Apr 3, 7:57am, m...@eterna.com.au (matthew green) wrote: -- Subject: re: CVS commit: src/sys/dev/raidframe | kernel configuration changes are not solutions, so 2 and 3 are out. | | if we do 4, we should instead add an option to mark something as a | 'soft root', and leave t

Re: CVS commit: src/sys/dev/raidframe

2014-04-03 Thread Greg Troxel
:33am, g...@ir.bbn.com (Greg Troxel) wrote: > -- Subject: Re: CVS commit: src/sys/dev/raidframe > > | It seems there are 3 behaviors for root > | > | 1) don't change the root device (old behavior with -A yes) > > That does autoconfig for raid and does not deal with root at

Re: CVS commit: src/sys/dev/raidframe

2014-04-03 Thread Christos Zoulas
On Apr 2, 10:33am, g...@ir.bbn.com (Greg Troxel) wrote: -- Subject: Re: CVS commit: src/sys/dev/raidframe | It seems there are 3 behaviors for root | | 1) don't change the root device (old behavior with -A yes) That does autoconfig for raid and does not deal with root at all. | 2) if

Re: CVS commit: src/sys/dev/raidframe

2014-04-02 Thread Greg Oster
On Thu, 03 Apr 2014 08:10:01 +1100 matthew green wrote: > > > > 4. we can add an option to mark the raid as force root. > > > > if we do 4, we should instead add an option to mark something as a > > 'soft root', and leave the current semantics alone. the machines i > > have that are now not go

re: CVS commit: src/sys/dev/raidframe

2014-04-02 Thread matthew green
> > 4. we can add an option to mark the raid as force root. > > if we do 4, we should instead add an option to mark something as a > 'soft root', and leave the current semantics alone. the machines i > have that are now not going to reboot properly are both used > remotely, so changing semantics

re: CVS commit: src/sys/dev/raidframe

2014-04-02 Thread matthew green
> | > Log Message: > | > 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 RAIDFRA

Re: CVS commit: src/sys/dev/raidframe

2014-04-02 Thread David Laight
On Wed, Apr 02, 2014 at 06:37:21AM -0400, Christos Zoulas wrote: > On Apr 2, 2:10pm, m...@eterna.com.au (matthew green) wrote: > | i like this.. i think. > | > | i wonder if this will break my system that boot from a different > | device to the raid root device. > > I think it will. > > | eg, u

Re: CVS commit: src/sys/dev/raidframe

2014-04-02 Thread Greg Troxel
I seemed to have missed the discussion for this change. It seems there are 3 behaviors for root 1) don't change the root device (old behavior with -A yes) 2) if root is on a component, change root to the raid, otherwise don't change. 3) force the root device to be the raid (old behavio

Re: CVS commit: src/sys/dev/raidframe

2014-04-02 Thread Christos Zoulas
On Apr 2, 12:51pm, mar...@duskware.de (Martin Husemann) wrote: -- Subject: Re: CVS commit: src/sys/dev/raidframe | On Wed, Apr 02, 2014 at 06:37:21AM -0400, Christos Zoulas wrote: | > Well, there are different options here: | > 1. is there a way to pass the root from ofwboot to netbsd?

Re: CVS commit: src/sys/dev/raidframe

2014-04-02 Thread Martin Husemann
On Wed, Apr 02, 2014 at 06:37:21AM -0400, Christos Zoulas wrote: > Well, there are different options here: > 1. is there a way to pass the root from ofwboot to netbsd? > 2. since netbsd knows it boots normally from raid, you can put a > "root on raidx" statement in your kernel. > 3. you can

re: CVS commit: src/sys/dev/raidframe

2014-04-02 Thread Christos Zoulas
On Apr 2, 2:10pm, m...@eterna.com.au (matthew green) wrote: -- Subject: re: CVS commit: src/sys/dev/raidframe | | > Module Name:src | > Committed By: christos | > Date: Wed Apr 2 02:17:01 UTC 2014 | > | > Modified Files: | > src

re: CVS commit: src/sys/dev/raidframe

2014-04-01 Thread matthew green
> Module Name: src > Committed By: christos > Date: Wed Apr 2 02:17:01 UTC 2014 > > Modified Files: > src/sys/dev/raidframe: rf_netbsdkintf.c > > Log Message: > If we are autoconfiguring root, then only change the booted_device if > we booted from one of the components of the roo

re: CVS commit: src/sys/dev/raidframe

2011-05-31 Thread matthew green
> Module Name: src > Committed By: yamt > Date: Fri May 27 22:48:25 UTC 2011 > > Modified Files: > src/sys/dev/raidframe: rf_driver.c > > Log Message: > don't forget to destroy mutex. thanks. .mrg.

CVS commit: src/sys/dev/raidframe

2010-03-03 Thread Greg Oster
Module Name:src Committed By: oster Date: Wed Mar 3 14:23:27 UTC 2010 Modified Files: src/sys/dev/raidframe: rf_paritymap.c Log Message: Don't attempt to read or write component label stuff from/to 'dead disks'. Update used spares with the correct parity map bits too. Ad

CVS commit: src/sys/dev/raidframe

2010-03-03 Thread Greg Oster
Module Name:src Committed By: oster Date: Wed Mar 3 14:23:27 UTC 2010 Modified Files: src/sys/dev/raidframe: rf_paritymap.c Log Message: Don't attempt to read or write component label stuff from/to 'dead disks'. Update used spares with the correct parity map bits too. Ad

CVS commit: src/sys/dev/raidframe

2010-03-01 Thread Jed Davis
Module Name:src Committed By: jld Date: Mon Mar 1 21:10:27 UTC 2010 Modified Files: src/sys/dev/raidframe: rf_disks.c Log Message: When setting up a non-autoconfigured RAID set, fail a component if the attempt to read its label fails. OKed by os...@. To generate a diff

CVS commit: src/sys/dev/raidframe

2010-03-01 Thread Jed Davis
Module Name:src Committed By: jld Date: Mon Mar 1 21:10:27 UTC 2010 Modified Files: src/sys/dev/raidframe: rf_disks.c Log Message: When setting up a non-autoconfigured RAID set, fail a component if the attempt to read its label fails. OKed by os...@. To generate a diff

CVS commit: src/sys/dev/raidframe

2010-03-01 Thread Greg Oster
Module Name:src Committed By: oster Date: Mon Mar 1 14:51:58 UTC 2010 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: 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 m

CVS commit: src/sys/dev/raidframe

2010-03-01 Thread Greg Oster
Module Name:src Committed By: oster Date: Mon Mar 1 14:51:58 UTC 2010 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: 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 m

re: CVS commit: src/sys/dev/raidframe

2009-11-05 Thread matthew green
Module Name: src Committed By:dyoung Date:Thu Nov 5 17:52:32 UTC 2009 Modified Files: src/sys/dev/raidframe: rf_netbsdkintf.c Log Message: Use deviter(9) instead of accessing alldevs directly. Compile-tested, only. this worries me.