2015-09-23 04:56:29 +00:00
|
|
|
package allocdir
|
|
|
|
|
2015-09-25 00:47:38 +00:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"os"
|
|
|
|
)
|
2015-09-23 04:56:29 +00:00
|
|
|
|
2015-09-25 00:47:38 +00:00
|
|
|
func (d *AllocDir) linkOrCopy(src, dst string, perm os.FileMode) error {
|
2015-09-28 06:53:25 +00:00
|
|
|
return fileCopy(src, dst, perm)
|
2015-09-23 04:56:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// The windows version does nothing currently.
|
2015-09-25 23:49:14 +00:00
|
|
|
func (d *AllocDir) mountSharedDir(dir string) error {
|
2015-09-23 04:56:29 +00:00
|
|
|
return errors.New("Mount on Windows not supported.")
|
|
|
|
}
|
2015-09-25 23:49:14 +00:00
|
|
|
|
|
|
|
// The windows version does nothing currently.
|
|
|
|
func (d *AllocDir) dropDirPermissions(path string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// The windows version does nothing currently.
|
|
|
|
func (d *AllocDir) unmountSharedDir(dir string) error {
|
2015-09-24 22:04:07 +00:00
|
|
|
return nil
|
2015-09-25 23:49:14 +00:00
|
|
|
}
|
2016-02-08 22:11:53 +00:00
|
|
|
|
|
|
|
// MountSpecialDirs mounts the dev and proc file system on the chroot of the
|
|
|
|
// task. It's a no-op on windows.
|
|
|
|
func (d *AllocDir) MountSpecialDirs(taskDir string) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-02-09 02:51:11 +00:00
|
|
|
// unmountSpecialDirs unmounts the dev and proc file system from the chroot
|
|
|
|
func (d *AllocDir) unmountSpecialDirs(taskDir string) error {
|
2016-02-08 22:11:53 +00:00
|
|
|
return nil
|
|
|
|
}
|