Slight cleanup after rebase
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"emperror.dev/errors"
|
||||
@@ -57,6 +58,12 @@ type Disk struct {
|
||||
commander CommanderProvider
|
||||
}
|
||||
|
||||
// DiskPath returns the underlying path that contains the virtual disk for the server
|
||||
// identified by its UUID.
|
||||
func DiskPath(uuid string) string {
|
||||
return filepath.Join(config.Get().System.Data, ".vhd/", uuid+".img")
|
||||
}
|
||||
|
||||
// New returns a new Disk instance. The "size" parameter should be provided in
|
||||
// bytes of space allowed for the disk. An additional slice of option callbacks
|
||||
// can be provided to programatically swap out the underlying filesystem
|
||||
|
||||
Reference in New Issue
Block a user