Project

General

Profile

Bug #7002

Fix the resource.fs.zfs.statechange message

Added by Alan Somers over 3 years ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Start date:
2016-05-26
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Fix the resource.fs.zfs.statechange sysevent

It has a number of problems:

  • It is only being emitted on a transition to the HEALTHY state. That makes it impossible for userland daemons to take actions based on drives getting sicker.
  • It compares the new state to vdev_prevstate, which is the state that the vdev had the last time it was opened. That doesn't make sense, because a vdev can change state multiple times without being reopened.
  • vdev_set_state contains logic that will change the device's new state based on various conditions. However, the statechange event is being posted before that logic took effect. Now it's being posted after.

History

#1

Updated by Bryan Horstmann-Allen 10 months ago

  • Project changed from site to illumos gate

Also available in: Atom PDF