github.com/kardianos/nomad@v0.1.3-0.20151022182107-b13df73ee850/client/allocdir/alloc_dir_darwin.go (about)

     1  package allocdir
     2  
     3  import (
     4  	"syscall"
     5  )
     6  
     7  // Hardlinks the shared directory. As a side-effect the shared directory and
     8  // task directory must be on the same filesystem.
     9  func (d *AllocDir) mountSharedDir(dir string) error {
    10  	return syscall.Link(d.SharedDir, dir)
    11  }
    12  
    13  func (d *AllocDir) unmountSharedDir(dir string) error {
    14  	return syscall.Unlink(dir)
    15  }