mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
[#385] status + replication: warning if replication succeeeded without any filesystem being replicated
refs #385 refs #384
This commit is contained in:
parent
293c89d392
commit
0a2dea05a9
@ -480,6 +480,11 @@ func (t *tui) renderReplicationReport(rep *report.Report, history *bytesProgress
|
|||||||
t.newline()
|
t.newline()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(latest.Filesystems) == 0 {
|
||||||
|
t.write("NOTE: no filesystems were considered for replication!")
|
||||||
|
t.newline()
|
||||||
|
}
|
||||||
|
|
||||||
var maxFSLen int
|
var maxFSLen int
|
||||||
for _, fs := range latest.Filesystems {
|
for _, fs := range latest.Filesystems {
|
||||||
if len(fs.Info.Name) > maxFSLen {
|
if len(fs.Info.Name) > maxFSLen {
|
||||||
|
@ -230,7 +230,10 @@ func Do(ctx context.Context, planner Planner) (ReportFunc, WaitFunc) {
|
|||||||
errRep := cur.errorReport()
|
errRep := cur.errorReport()
|
||||||
|
|
||||||
if rep.State == report.AttemptDone {
|
if rep.State == report.AttemptDone {
|
||||||
log.Debug("attempt completed successfully")
|
if len(rep.Filesystems) == 0 {
|
||||||
|
log.Warn("no filesystems were considered for replication")
|
||||||
|
}
|
||||||
|
log.Debug("attempt completed")
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user