HomeFreeBSD

zfs: cancel TRIM or initialize on FAULTED non-writeable vdevs

Description

zfs: cancel TRIM or initialize on FAULTED non-writeable vdevs

From the openzfs commit message:

When a device which is actively trimming or initializing becomes
FAULTED, and therefore no longer writable, cancel the active
TRIM or initialization.  When the device is merely taken offline
with `zpool offline` then stop the operation but do not cancel it.
When the device is brought back online the operation will be
resumed if possible.

Obtained from: openzfs/zfs@bedbc13daa6dfe9e0221bfadb8d8db2378deaacc
Approved by: re (delphij)

(cherry picked from commit dc2743434f6cc73ca8ec1d551aba03a678eac804)

Details

Provenance
mmAuthored on Mar 3 2021, 1:38 AM
Parents
rGd2faf2e6b2d4: zfs: fix assert in FreeBSD-specific dmu_read_pages
Branches
Unknown
Tags
Unknown