fix
This commit is contained in:
parent
ed261141f5
commit
2ae1737081
22
app.go
22
app.go
@ -433,13 +433,15 @@ func (a AppConfig) CheckZFS() error {
|
|||||||
return fmt.Errorf("No path %s on source", string(src))
|
return fmt.Errorf("No path %s on source", string(src))
|
||||||
}
|
}
|
||||||
for _, dest := range a.Destinations {
|
for _, dest := range a.Destinations {
|
||||||
if !cfg.Box[dest.Box()].ZFSIsZFS(dest.Path() + "/" + src.Box() + "/" + src.Path()) {
|
if cfg.Box[dest.Box()].online {
|
||||||
err := cfg.Box[dest.Box()].ZFSCreateZFS(dest.Path() + "/" + src.Box() + "/" + src.Path())
|
if !cfg.Box[dest.Box()].ZFSIsZFS(dest.Path() + "/" + src.Box() + "/" + src.Path()) {
|
||||||
if err != nil {
|
err := cfg.Box[dest.Box()].ZFSCreateZFS(dest.Path() + "/" + src.Box() + "/" + src.Path())
|
||||||
if *debugFlag {
|
if err != nil {
|
||||||
log.Printf("AppConfig.CheckZFS : %s : Error creating %s on %s", a.Name, dest.Path()+"/"+src.Box()+"/"+src.Path(), dest.Box())
|
if *debugFlag {
|
||||||
|
log.Printf("AppConfig.CheckZFS : %s : Error creating %s on %s", a.Name, dest.Path()+"/"+src.Box()+"/"+src.Path(), dest.Box())
|
||||||
|
}
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -658,9 +660,11 @@ func (a AppConfig) CleanupSnapshot() error {
|
|||||||
cleanupSnapshot := make(map[string]string)
|
cleanupSnapshot := make(map[string]string)
|
||||||
|
|
||||||
for _, dest := range a.Destinations {
|
for _, dest := range a.Destinations {
|
||||||
for _, src := range a.Sources {
|
if cfg.Box[dest.Box()].online {
|
||||||
cleanupSnapshot[src.Box()] = cleanupSnapshot[src.Box()] + " " + src.Path()
|
for _, src := range a.Sources {
|
||||||
cleanupSnapshot[dest.Box()] = cleanupSnapshot[dest.Box()] + " " + dest.Path() + "/" + src.Box() + "/" + src.Path()
|
cleanupSnapshot[src.Box()] = cleanupSnapshot[src.Box()] + " " + src.Path()
|
||||||
|
cleanupSnapshot[dest.Box()] = cleanupSnapshot[dest.Box()] + " " + dest.Path() + "/" + src.Box() + "/" + src.Path()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "cddb222"
|
var githash = "ed26114"
|
||||||
var buildstamp = "2022-04-16_13:10:55"
|
var buildstamp = "2022-04-16_13:30:39"
|
||||||
var commits = "31"
|
var commits = "32"
|
||||||
var version = "cddb222-b31 - 2022-04-16_13:10:55"
|
var version = "ed26114-b32 - 2022-04-16_13:30:39"
|
||||||
|
Loading…
Reference in New Issue
Block a user