Module Name: src Committed By: martin Date: Sun Apr 28 12:09:09 UTC 2024
Modified Files: src/sbin/raidctl [netbsd-10]: raidctl.8 raidctl.c src/sys/dev/raidframe [netbsd-10]: raidframeio.h rf_diskqueue.c rf_diskqueue.h rf_disks.c rf_disks.h rf_driver.c rf_netbsdkintf.c rf_raid.h rf_reconstruct.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.79.2.1 src/sbin/raidctl/raidctl.8 cvs rdiff -u -r1.78 -r1.78.2.1 src/sbin/raidctl/raidctl.c cvs rdiff -u -r1.11 -r1.11.6.1 src/sys/dev/raidframe/raidframeio.h cvs rdiff -u -r1.63 -r1.63.4.1 src/sys/dev/raidframe/rf_diskqueue.c cvs rdiff -u -r1.29 -r1.29.10.1 src/sys/dev/raidframe/rf_diskqueue.h cvs rdiff -u -r1.93 -r1.93.4.1 src/sys/dev/raidframe/rf_disks.c cvs rdiff -u -r1.14 -r1.14.196.1 src/sys/dev/raidframe/rf_disks.h cvs rdiff -u -r1.140 -r1.140.4.1 src/sys/dev/raidframe/rf_driver.c cvs rdiff -u -r1.410.4.3 -r1.410.4.4 src/sys/dev/raidframe/rf_netbsdkintf.c cvs rdiff -u -r1.51 -r1.51.6.1 src/sys/dev/raidframe/rf_raid.h cvs rdiff -u -r1.127.10.1 -r1.127.10.2 src/sys/dev/raidframe/rf_reconstruct.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.