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 88caa60 + 0a438cf commit 040842eCopy full SHA for 040842e
netshare/drivers/nfs.go
@@ -46,7 +46,11 @@ func (n nfsDriver) Mount(r volume.Request) volume.Response {
46
if n.mountm.HasMount(r.Name) && n.mountm.Count(r.Name) > 0 {
47
log.Infof("Using existing NFS volume mount: %s", hostdir)
48
n.mountm.Increment(r.Name)
49
- return volume.Response{Mountpoint: hostdir}
+ if err := run(fmt.Sprintf("mountpoint -q %s", hostdir)); err != nil {
50
+ log.Infof("Existing NFS volume not mounted, force remount.")
51
+ } else {
52
+ return volume.Response{Mountpoint: hostdir}
53
+ }
54
}
55
56
log.Infof("Mounting NFS volume %s on %s", source, hostdir)
0 commit comments