mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 08:58:16 +03:00
when warning about not being able to hardlink during a backup, make it clear we continue with regular copying and that there won't be another warning
for issue #61 by x8x
This commit is contained in:
parent
2b97c21f99
commit
85cef2a06c
@ -231,7 +231,7 @@ func backupctl(ctx context.Context, ctl *ctl) {
|
|||||||
// No point in trying with regular copy, we would warn twice.
|
// No point in trying with regular copy, we would warn twice.
|
||||||
return false, err
|
return false, err
|
||||||
} else if !warnedHardlink {
|
} else if !warnedHardlink {
|
||||||
xwarnx("creating hardlink to message", err, mlog.Field("srcpath", srcpath), mlog.Field("dstpath", dstpath))
|
xwarnx("creating hardlink to message failed, will be doing regular file copies and not warn again", err, mlog.Field("srcpath", srcpath), mlog.Field("dstpath", dstpath))
|
||||||
warnedHardlink = true
|
warnedHardlink = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user