]> git.sesse.net Git - bcachefs-tools-debian/commit
cmd_fsck: -k, run fsck in kernel
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 24 Dec 2023 00:37:04 +0000 (19:37 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 24 Dec 2023 00:39:01 +0000 (19:39 -0500)
commit4524069e52a9aafaa5823eee4fe58ef382786983
treecf99f2b537f2d24f2e804c79ba31380e54c9c858
parentf0334bbc1032b3be485767ec804ec868a8b1e7f0
cmd_fsck: -k, run fsck in kernel

This adds a new option to cmd_fsck for using the kernel implementation
of fsck instead of userspace, via the BCH_IOCTL_FSCK_OFFLINE ioctl.

This isn't intended for normal usage - mainly for testing and debugging
purposes, and for when the kernel version of bcachefs better matches the
on disk format version.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
cmd_fsck.c
libbcachefs.c