From c396f9508a87e9b6618c2f61583611cfe050125b Mon Sep 17 00:00:00 2001 From: chenhao <563278383@qq.com> Date: Wed, 16 Oct 2019 16:13:51 +0800 Subject: [PATCH] zfs: replace hard coded zfs command in ZFSDestroy fixes #231 --- zfs/versions_destroy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zfs/versions_destroy.go b/zfs/versions_destroy.go index 6f3fdd5..fc2baec 100644 --- a/zfs/versions_destroy.go +++ b/zfs/versions_destroy.go @@ -220,7 +220,7 @@ var batchDestroyFeatureCheck struct { func (d destroyerImpl) DestroySnapshotsCommaSyntaxSupported() (bool, error) { batchDestroyFeatureCheck.once.Do(func() { // "feature discovery" - cmd := exec.Command("zfs", "destroy") + cmd := exec.Command(ZFS_BINARY, "destroy") output, err := cmd.CombinedOutput() if _, ok := err.(*exec.ExitError); !ok { debug("destroy feature check failed: %T %s", err, err)