From 1a8c5708c56ddf04ad00a896ea14e5b98ead54bd Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 4 May 2020 12:18:28 +0100 Subject: [PATCH] vfs: ignore file not found errors from Hash in Read.Release There is nothing we can do about this at this point and this error can happen when moving files so we ignore it to clean the logs up. --- vfs/read.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vfs/read.go b/vfs/read.go index 6324593dc..a89b1099b 100644 --- a/vfs/read.go +++ b/vfs/read.go @@ -344,6 +344,11 @@ func (fh *ReadFileHandle) checkHash() error { for hashType, dstSum := range fh.hash.Sums() { srcSum, err := o.Hash(context.TODO(), hashType) if err != nil { + if os.IsNotExist(errors.Cause(err)) { + // if it was file not found then at + // this point we don't care any more + continue + } return err } if !hash.Equals(dstSum, srcSum) {