HomeFreeBSD

Disable TRIM on file backed ZFS vdevs and fix TRIM on init

Description

Disable TRIM on file backed ZFS vdevs and fix TRIM on init

After r265152 TRIM requests are ZIO_TYPE_FREE instead of ZIO_TYPE_IOCTL
this meant file backed vdevs to attempted to process the ZIO as a write
causing a panic.

We now disable TRIM on file backed vdevs and ASSERT the ZIO types supported
by each vdev type to ensure we explicity support the ZIO type being
processed.

Also ensure that TRIM on init is not procesed for devices which declare they
didn't support TRIM via vdev_notrim.

PR: 195061, 194976, 191573
Sponsored by: Multiplay

Details

Provenance
smhAuthored on
Parents
rS274618: Add reachover Makefiles for contrib/netbsd-tests/lib/librt
Branches
Unknown
Tags
Unknown

Event Timeline