Shore up the logic for migrations to allow multiple passes if needed

This commit is contained in:
Dane Everitt
2021-07-04 14:07:03 -07:00
committed by DaneEveritt
parent f8a25cb040
commit 37c52dd439
2 changed files with 51 additions and 19 deletions

View File

@@ -95,6 +95,14 @@ func WithCommander(c CommanderProvider) func(*Disk) {
}
}
func (d *Disk) Path() string {
return d.diskPath
}
func (d *Disk) MountPath() string {
return d.mountAt
}
// Exists reports if the disk exists on the system yet or not. This only verifies
// the presence of the disk image, not the validity of it. An error is returned
// if the path exists but the destination is not a file or is a symlink.