github.com/ryanslade/nomad@v0.2.4-0.20160128061903-fc95782f2089/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 }