storj/storagenode/retain
paul cannon 2f04e20627 storage/filestore: better error message on data corruption
A user on the forum was seeing the error "bad message", which was not
very helpful. This case from the ext4 filesystem using the code EBADMSG
to indicate it detected an invalid CRC, suggesting disk corruption.

This change adds some explanatory information about probable disk
corruption to all errors coming from the (*blobInfo).Stat() call, which
is where storagenode fs corruption problems will usually manifest.

Refs: https://github.com/storj/storj/issues/5375
Change-Id: I87f4a800236050415c4191ef1a0fc952f9def315
2023-01-30 08:54:06 -06:00
..
retain_test.go storagenode/satellite: support different piece hash algorithms 2022-08-23 18:15:06 +00:00
retain.go storage/filestore: better error message on data corruption 2023-01-30 08:54:06 -06:00