HomeFreeBSD

Don't treat an error from g_mirror_clear_metadata() as fatal.

Description

Don't treat an error from g_mirror_clear_metadata() as fatal.

Such errors can occur as the result of a write error or because the disk
backing the mirror element was removed. They result in a generation ID bump
on all active elements of the mirror, so we can safely disconnect the mirror
component rather than destroy it.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D7750

Details

Provenance
markjAuthored on
Differential Revision
D7750: Don't fail disk state change if g_mirror_clear_metadata() fails.
Parents
rS305508: Add some fail points to gmirror.
Branches
Unknown
Tags
Unknown