[#385] status + replication: warning if replication succeeeded without any filesystem being replicated

refs #385
refs #384
This commit is contained in:
Christian Schwarz 2020-09-12 12:16:30 +02:00
parent 293c89d392
commit 0a2dea05a9
2 changed files with 9 additions and 1 deletions

View File

@ -480,6 +480,11 @@ func (t *tui) renderReplicationReport(rep *report.Report, history *bytesProgress
t.newline()
}
if len(latest.Filesystems) == 0 {
t.write("NOTE: no filesystems were considered for replication!")
t.newline()
}
var maxFSLen int
for _, fs := range latest.Filesystems {
if len(fs.Info.Name) > maxFSLen {

View File

@ -230,7 +230,10 @@ func Do(ctx context.Context, planner Planner) (ReportFunc, WaitFunc) {
errRep := cur.errorReport()
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
}