We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bfe7ba + efd2beb commit 8dc2ec8Copy full SHA for 8dc2ec8
netshare/drivers/nfs.go
@@ -57,7 +57,7 @@ func (n nfsDriver) Mount(r volume.MountRequest) volume.Response {
57
if n.mountm.HasMount(resolvedName) && n.mountm.Count(resolvedName) > 0 {
58
log.Infof("Using existing NFS volume mount: %s", hostdir)
59
n.mountm.Increment(resolvedName)
60
- if err := run(fmt.Sprintf("mountpoint -q %s", hostdir)); err != nil {
+ if err := run(fmt.Sprintf("grep -c %s /proc/mounts", hostdir)); err != nil {
61
log.Infof("Existing NFS volume not mounted, force remount.")
62
} else {
63
return volume.Response{Mountpoint: hostdir}
0 commit comments