File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
package common
2
2
3
3
const (
4
- Version = "0.4.4"
5
- ServiceName = "local-storage"
4
+ Version = "0.4.4"
5
+ ServiceName = "local-storage"
6
+ DefaultMountPoint = "/DATA"
6
7
)
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ func (s *LocalStorage) SetMerge(ctx echo.Context) error {
152
152
}
153
153
func (s * LocalStorage ) GetMergeInitStatus (ctx echo.Context ) error {
154
154
status := codegen .Uninitialized
155
- mountPoint := constants .DefaultMountPoint
155
+ mountPoint := common .DefaultMountPoint
156
156
157
157
existingMerges , err := service .MyService .LocalStorage ().GetMergeAllFromDB (& mountPoint )
158
158
if err != nil {
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import (
22
22
"github.com/IceWhaleTech/CasaOS-Common/utils/file"
23
23
"github.com/IceWhaleTech/CasaOS-Common/utils/logger"
24
24
"github.com/IceWhaleTech/CasaOS-LocalStorage/codegen"
25
+
25
26
"github.com/IceWhaleTech/CasaOS-LocalStorage/codegen/message_bus"
26
27
"github.com/IceWhaleTech/CasaOS-LocalStorage/common"
27
28
"github.com/IceWhaleTech/CasaOS-LocalStorage/model"
80
81
)
81
82
82
83
func (d * diskService ) EnsureDefaultMergePoint () bool {
83
- mountPoint := constants .DefaultMountPoint
84
+ mountPoint := common .DefaultMountPoint
84
85
sourceBasePath := constants .DefaultFilePath
85
86
86
87
existingMerges , err := MyService .LocalStorage ().GetMergeAllFromDB (& mountPoint )
You can’t perform that action at this time.
0 commit comments