bcachefs: bch_sb_field_errors
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 25 Oct 2023 19:51:16 +0000 (15:51 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 2 Nov 2023 01:11:08 +0000 (21:11 -0400)
commitf5d26fa31ed2e260589f0bc8af010bb742f1231e
tree3d80b5c4ea7ac0a01bf1dba58a104d84d5a70e9b
parent94119eeb02d114aa1f78dcfaabdca50b9b626790
bcachefs: bch_sb_field_errors

Add a new superblock section to keep counts of errors seen since
filesystem creation: we'll be addingcounters for every distinct fsck
error.

The new superblock section has entries of the for [ id, count,
time_of_last_error ]; this is intended to let us see what errors are
occuring - and getting fixed - via show-super output.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
13 files changed:
fs/bcachefs/Makefile
fs/bcachefs/bcachefs.h
fs/bcachefs/bcachefs_format.h
fs/bcachefs/errcode.h
fs/bcachefs/error.c
fs/bcachefs/sb-errors.c [new file with mode: 0644]
fs/bcachefs/sb-errors.h [new file with mode: 0644]
fs/bcachefs/sb-errors_types.h [new file with mode: 0644]
fs/bcachefs/sb-members.c
fs/bcachefs/sb-members.h
fs/bcachefs/super-io.c
fs/bcachefs/super-io.h
fs/bcachefs/super.c