(instanceDir string)
| 89 | } |
| 90 | |
| 91 | func (d *Disk) Lock(instanceDir string) error { |
| 92 | inUseBy := filepath.Join(d.Dir, filenames.InUseBy) |
| 93 | return os.Symlink(instanceDir, inUseBy) |
| 94 | } |
| 95 | |
| 96 | func (d *Disk) Unlock() error { |
| 97 | inUseBy := filepath.Join(d.Dir, filenames.InUseBy) |
no outgoing calls