github.com/huiliang/nomad@v0.2.1-0.20151124023127-7a8b664699ff/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 }