github.com/dkerwin/nomad@v0.3.3-0.20160525181927-74554135514b/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 } 16 17 // MountSpecialDirs mounts the dev and proc file system on the chroot of the 18 // task. It's a no-op on darwin. 19 func (d *AllocDir) MountSpecialDirs(taskDir string) error { 20 return nil 21 } 22 23 // unmountSpecialDirs unmounts the dev and proc file system from the chroot 24 func (d *AllocDir) unmountSpecialDirs(taskDir string) error { 25 return nil 26 }