vdev_mirror.c (339106) | vdev_mirror.c (339111) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 726 unchanged lines hidden (view full) --- 735 vdev_default_asize, 736 vdev_mirror_io_start, 737 vdev_mirror_io_done, 738 vdev_mirror_state_change, 739 NULL, 740 NULL, 741 NULL, 742 NULL, | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 726 unchanged lines hidden (view full) --- 735 vdev_default_asize, 736 vdev_mirror_io_start, 737 vdev_mirror_io_done, 738 vdev_mirror_state_change, 739 NULL, 740 NULL, 741 NULL, 742 NULL, |
743 vdev_default_xlate, |
|
743 VDEV_TYPE_MIRROR, /* name of this vdev type */ 744 B_FALSE /* not a leaf vdev */ 745}; 746 747vdev_ops_t vdev_replacing_ops = { 748 vdev_mirror_open, 749 vdev_mirror_close, 750 vdev_default_asize, 751 vdev_mirror_io_start, 752 vdev_mirror_io_done, 753 vdev_mirror_state_change, 754 NULL, 755 NULL, 756 NULL, 757 NULL, | 744 VDEV_TYPE_MIRROR, /* name of this vdev type */ 745 B_FALSE /* not a leaf vdev */ 746}; 747 748vdev_ops_t vdev_replacing_ops = { 749 vdev_mirror_open, 750 vdev_mirror_close, 751 vdev_default_asize, 752 vdev_mirror_io_start, 753 vdev_mirror_io_done, 754 vdev_mirror_state_change, 755 NULL, 756 NULL, 757 NULL, 758 NULL, |
759 vdev_default_xlate, |
|
758 VDEV_TYPE_REPLACING, /* name of this vdev type */ 759 B_FALSE /* not a leaf vdev */ 760}; 761 762vdev_ops_t vdev_spare_ops = { 763 vdev_mirror_open, 764 vdev_mirror_close, 765 vdev_default_asize, 766 vdev_mirror_io_start, 767 vdev_mirror_io_done, 768 vdev_mirror_state_change, 769 NULL, 770 NULL, 771 NULL, 772 NULL, | 760 VDEV_TYPE_REPLACING, /* name of this vdev type */ 761 B_FALSE /* not a leaf vdev */ 762}; 763 764vdev_ops_t vdev_spare_ops = { 765 vdev_mirror_open, 766 vdev_mirror_close, 767 vdev_default_asize, 768 vdev_mirror_io_start, 769 vdev_mirror_io_done, 770 vdev_mirror_state_change, 771 NULL, 772 NULL, 773 NULL, 774 NULL, |
775 vdev_default_xlate, |
|
773 VDEV_TYPE_SPARE, /* name of this vdev type */ 774 B_FALSE /* not a leaf vdev */ 775}; | 776 VDEV_TYPE_SPARE, /* name of this vdev type */ 777 B_FALSE /* not a leaf vdev */ 778}; |