Commit 74eaf3d
committed
Fix checking for the feature at spa_vdev_add()
Now vdev is actually not adding if the feature is not enabled.
Previously, it was showing the error, but vdev was adding to the
pool.
The fix is to add the check at the earliest point, just after
vdev_draid_spare_create() call.
Signed-off-by: Andriy Tkachuk <andriy.tkachuk@seagate.com>1 parent 0f25b76 commit 74eaf3d
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7550 | 7550 | | |
7551 | 7551 | | |
7552 | 7552 | | |
| 7553 | + | |
7553 | 7554 | | |
7554 | 7555 | | |
7555 | 7556 | | |
| 7557 | + | |
| 7558 | + | |
| 7559 | + | |
| 7560 | + | |
7556 | 7561 | | |
7557 | 7562 | | |
7558 | 7563 | | |
| |||
7643 | 7648 | | |
7644 | 7649 | | |
7645 | 7650 | | |
7646 | | - | |
7647 | | - | |
7648 | | - | |
7649 | | - | |
7650 | 7651 | | |
7651 | 7652 | | |
7652 | 7653 | | |
| |||
0 commit comments