Skip to content

Commit 8dc2ec8

Browse files
authored
Merge pull request #110 from NVIDIA/pr-3
Fix to issue with mounting nfs volumes with root squashing enabled.
2 parents 4bfe7ba + efd2beb commit 8dc2ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netshare/drivers/nfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (n nfsDriver) Mount(r volume.MountRequest) volume.Response {
5757
if n.mountm.HasMount(resolvedName) && n.mountm.Count(resolvedName) > 0 {
5858
log.Infof("Using existing NFS volume mount: %s", hostdir)
5959
n.mountm.Increment(resolvedName)
60-
if err := run(fmt.Sprintf("mountpoint -q %s", hostdir)); err != nil {
60+
if err := run(fmt.Sprintf("grep -c %s /proc/mounts", hostdir)); err != nil {
6161
log.Infof("Existing NFS volume not mounted, force remount.")
6262
} else {
6363
return volume.Response{Mountpoint: hostdir}

0 commit comments

Comments
 (0)