Add base logic to start implementing support for mounted filesystems
This commit is contained in:
committed by
DaneEveritt
parent
058f643e65
commit
957257ecc3
17
server/filesystem/vhd.go
Normal file
17
server/filesystem/vhd.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package filesystem
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/pterodactyl/wings/config"
|
||||
"github.com/pterodactyl/wings/internal/vhd"
|
||||
)
|
||||
|
||||
func (fs *Filesystem) NewVHD() *vhd.Disk {
|
||||
parts := strings.Split(fs.root, "/")
|
||||
disk := filepath.Join(config.Get().System.Data, ".disks/", parts[len(parts)-1]+".img")
|
||||
|
||||
return vhd.New(250, disk, fs.root)
|
||||
// return vhd.New(fs.diskLimit/1024/1024, disk, fs.root)
|
||||
}
|
||||
Reference in New Issue
Block a user