storj/storage/filestore
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
..
blob.go all: add missing dots 2020-08-11 17:50:01 +03:00
dir_test.go storage/filestore: benchmark diskInfoFromPath 2020-06-02 17:49:14 +03:00
dir_unix.go ci: Golangci lint v1.43.0 changes (#4307) 2021-12-09 20:49:48 +01:00
dir_windows.go all: fix linting issues 2022-03-21 15:26:42 +00:00
dir.go storage/filestore: better error message on data corruption 2023-01-30 08:54:06 -06:00
error.go ci: fix lint errors 2021-05-17 13:37:31 +00:00
errors_other.go storage/filestore: better error message on data corruption 2023-01-30 08:54:06 -06:00
errors_unix.go storage/filestore: better error message on data corruption 2023-01-30 08:54:06 -06:00
store_test.go all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
store.go storage/filestore: avoid stat() during walkNamespaceInPath 2023-01-30 13:47:03 +00:00