committed by
Christian Schwarz
parent
b9933f6cb2
commit
c396f9508a
@@ -220,7 +220,7 @@ var batchDestroyFeatureCheck struct {
|
|||||||
func (d destroyerImpl) DestroySnapshotsCommaSyntaxSupported() (bool, error) {
|
func (d destroyerImpl) DestroySnapshotsCommaSyntaxSupported() (bool, error) {
|
||||||
batchDestroyFeatureCheck.once.Do(func() {
|
batchDestroyFeatureCheck.once.Do(func() {
|
||||||
// "feature discovery"
|
// "feature discovery"
|
||||||
cmd := exec.Command("zfs", "destroy")
|
cmd := exec.Command(ZFS_BINARY, "destroy")
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if _, ok := err.(*exec.ExitError); !ok {
|
if _, ok := err.(*exec.ExitError); !ok {
|
||||||
debug("destroy feature check failed: %T %s", err, err)
|
debug("destroy feature check failed: %T %s", err, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user