open-nomad/client/allocdir/alloc_dir_darwin.go

15 lines
348 B
Go

package allocdir
import (
//"os"
"path/filepath"
"syscall"
)
// Hardlinks the shared directory. As a side-effect the shared directory and
// task directory must be on the same filesystem.
func (d *AllocDir) mountSharedDir(taskDir string) error {
taskLoc := filepath.Join(taskDir, SharedAllocName)
return syscall.Link(d.SharedDir, taskLoc)
}