github.com/jmitchell/nomad@v0.1.3-0.20151007230021-7ab84c2862d8/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 }