From e50663fa59016b20cf1adb7ffc315f31e6f7edc2 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Wed, 7 Aug 2019 11:49:32 +0200 Subject: [PATCH] Maps ZPOOL_PROP_AUTOTRIM to PoolPropAutotrim (#20) ZPOOL_PROP_AUTOTRIM is part of Trim support added in zfs 0.8 (https://github.com/zfsonlinux/zfs/commit/1b939560be5c51deecf875af9dada9d094633bf7). Add it and prevents panic when pool is reloading its properties. Fixes #19 --- common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common.go b/common.go index fdea914..9e0c30c 100644 --- a/common.go +++ b/common.go @@ -180,6 +180,7 @@ const ( PoolPropMultiHost PoolPropCheckpoint PoolPropLoadGuid + PoolPropAutotrim PoolNumProps )