diff options
author | Igor K <[email protected]> | 2019-06-21 04:29:02 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-06-20 18:29:02 -0700 |
commit | a64f8276c7c2e121f438866d2f91ddff22031e7f (patch) | |
tree | 7a8275c74f21038a8d082ab38e67cdc37a5181fb /module/zfs/vdev_root.c | |
parent | da68988708d6e38457ce965103d001e8aa965885 (diff) |
Update vdev_ops_t from illumos
Align vdev_ops_t from illumos for better compatibility.
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Igor Kozhukhov <[email protected]>
Closes #8925
Diffstat (limited to 'module/zfs/vdev_root.c')
-rw-r--r-- | module/zfs/vdev_root.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/module/zfs/vdev_root.c b/module/zfs/vdev_root.c index e40b7ce8e..7170f7013 100644 --- a/module/zfs/vdev_root.c +++ b/module/zfs/vdev_root.c @@ -140,17 +140,17 @@ vdev_root_state_change(vdev_t *vd, int faulted, int degraded) } vdev_ops_t vdev_root_ops = { - vdev_root_open, - vdev_root_close, - vdev_default_asize, - NULL, /* io_start - not applicable to the root */ - NULL, /* io_done - not applicable to the root */ - vdev_root_state_change, - NULL, - NULL, - NULL, - NULL, - NULL, - VDEV_TYPE_ROOT, /* name of this vdev type */ - B_FALSE /* not a leaf vdev */ + .vdev_op_open = vdev_root_open, + .vdev_op_close = vdev_root_close, + .vdev_op_asize = vdev_default_asize, + .vdev_op_io_start = NULL, /* not applicable to the root */ + .vdev_op_io_done = NULL, /* not applicable to the root */ + .vdev_op_state_change = vdev_root_state_change, + .vdev_op_need_resilver = NULL, + .vdev_op_hold = NULL, + .vdev_op_rele = NULL, + .vdev_op_remap = NULL, + .vdev_op_xlate = NULL, + .vdev_op_type = VDEV_TYPE_ROOT, /* name of this vdev type */ + .vdev_op_leaf = B_FALSE /* not a leaf vdev */ }; |