Update the ZFS TRIM code to ensure it respects VTOC8 partition headers as documented by the ZFS On-Disk Specification section 1.3
Before this a zpool create on a VTOC8 partitioned device would overwrite the partition metadata.
Differential D14695
Prevent ZFS TRIM breaking VTOC8 partitions smh on Mar 14 2018, 5:40 PM. Authored by Tags None Referenced Files
Details Update the ZFS TRIM code to ensure it respects VTOC8 partition headers as documented by the ZFS On-Disk Specification section 1.3 Before this a zpool create on a VTOC8 partitioned device would overwrite the partition metadata. Create a VTOC8 parition on a md device followed by creating a ZFS pool and ensure it doesn't remove the partition metadata.
Diff Detail
Event Timeline
Comment Actions This looks good to me, I'm still somewhat puzzled, though, as to why the problem has only be encountered with md(4) devices. Was that simply due to the fact that we happened to test with disks that DISKFLAG_CANDELETE doesn't get set for? Comment Actions Its only a problem for devices that report they support TRIM so it wouldn't impact HDD's but would effect SSD's or MD devices. |