@@ -15,9 +15,9 @@ import (
15
15
"time"
16
16
17
17
"github.com/gin-gonic/gin"
18
- "github.com/psanford/httpreadat"
19
18
"github.com/google/uuid"
20
19
"github.com/pion/webrtc/v4"
20
+ "github.com/psanford/httpreadat"
21
21
22
22
"github.com/jetkvm/kvm/resource"
23
23
)
@@ -27,7 +27,7 @@ func writeFile(path string, data string) error {
27
27
}
28
28
29
29
func setMassStorageImage (imagePath string ) error {
30
- massStorageFunctionPath , err := gadget .GetConfigPath ("mass_storage_lun0" )
30
+ massStorageFunctionPath , err := gadget .GetPath ("mass_storage_lun0" )
31
31
if err != nil {
32
32
return fmt .Errorf ("failed to get mass storage path: %w" , err )
33
33
}
@@ -39,7 +39,7 @@ func setMassStorageImage(imagePath string) error {
39
39
}
40
40
41
41
func setMassStorageMode (cdrom bool ) error {
42
- massStorageFunctionPath , err := gadget .GetConfigPath ("mass_storage_lun0" )
42
+ massStorageFunctionPath , err := gadget .GetPath ("mass_storage_lun0" )
43
43
if err != nil {
44
44
return fmt .Errorf ("failed to get mass storage path: %w" , err )
45
45
}
@@ -110,7 +110,7 @@ func rpcMountBuiltInImage(filename string) error {
110
110
}
111
111
112
112
func getMassStorageMode () (bool , error ) {
113
- massStorageFunctionPath , err := gadget .GetConfigPath ("mass_storage_lun0" )
113
+ massStorageFunctionPath , err := gadget .GetPath ("mass_storage_lun0" )
114
114
if err != nil {
115
115
return false , fmt .Errorf ("failed to get mass storage path: %w" , err )
116
116
}
0 commit comments