From cbf0945afca9d261cab7dc32215271853578eb87 Mon Sep 17 00:00:00 2001 From: zhangxiaoyu-zidif Date: Tue, 28 Nov 2017 19:02:56 +0800 Subject: [PATCH] fix binary check for glusterfs.go --- pkg/volume/glusterfs/glusterfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/glusterfs/glusterfs.go b/pkg/volume/glusterfs/glusterfs.go index c42e3cdf79..4f083e990e 100644 --- a/pkg/volume/glusterfs/glusterfs.go +++ b/pkg/volume/glusterfs/glusterfs.go @@ -238,7 +238,7 @@ func (b *glusterfsMounter) CanMount() error { exe := b.plugin.host.GetExec(b.plugin.GetPluginName()) switch runtime.GOOS { case "linux": - if _, err := exe.Run("/bin/ls", gciLinuxGlusterMountBinaryPath); err != nil { + if _, err := exe.Run("test", "-x", gciLinuxGlusterMountBinaryPath); err != nil { return fmt.Errorf("Required binary %s is missing", gciLinuxGlusterMountBinaryPath) } }