Searched hist:"2 b41226d7f4b3b836a2a3e4ce08ab18ba03f0cd0" (Results 1 – 3 of 3) sorted by relevance
/linux/fs/bcachefs/ |
H A D | opts.h | diff 2b41226d7f4b3b836a2a3e4ce08ab18ba03f0cd0 Tue Dec 05 02:15:23 CET 2023 Kent Overstreet <kent.overstreet@linux.dev> bcachefs: Add ability to redirect log output
Upcoming patches are going to add two new ioctls for running fsck in the kernel, but pretending that we're running our normal userspace fsck.
This patch adds some plumbing for redirecting our normal log messages away from the dmesg log to a thread_with_file file descriptor - via a struct log_output, which will be consumed by the fsck f_op's read method.
The new ioctls will allow for running fsck in the kernel against an offline filesystem (without mounting it), and an online filesystem. For an offline filesystem we need a way to pass in a pointer to the log_output, which is done via a new hidden opts.h option.
For online fsck, we can set c->output directly, but only want to redirect log messages from the thread running fsck - hence the new c->output_filter method.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
H A D | bcachefs.h | diff 2b41226d7f4b3b836a2a3e4ce08ab18ba03f0cd0 Tue Dec 05 02:15:23 CET 2023 Kent Overstreet <kent.overstreet@linux.dev> bcachefs: Add ability to redirect log output
Upcoming patches are going to add two new ioctls for running fsck in the kernel, but pretending that we're running our normal userspace fsck.
This patch adds some plumbing for redirecting our normal log messages away from the dmesg log to a thread_with_file file descriptor - via a struct log_output, which will be consumed by the fsck f_op's read method.
The new ioctls will allow for running fsck in the kernel against an offline filesystem (without mounting it), and an online filesystem. For an offline filesystem we need a way to pass in a pointer to the log_output, which is done via a new hidden opts.h option.
For online fsck, we can set c->output directly, but only want to redirect log messages from the thread running fsck - hence the new c->output_filter method.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|
H A D | super.c | diff 2b41226d7f4b3b836a2a3e4ce08ab18ba03f0cd0 Tue Dec 05 02:15:23 CET 2023 Kent Overstreet <kent.overstreet@linux.dev> bcachefs: Add ability to redirect log output
Upcoming patches are going to add two new ioctls for running fsck in the kernel, but pretending that we're running our normal userspace fsck.
This patch adds some plumbing for redirecting our normal log messages away from the dmesg log to a thread_with_file file descriptor - via a struct log_output, which will be consumed by the fsck f_op's read method.
The new ioctls will allow for running fsck in the kernel against an offline filesystem (without mounting it), and an online filesystem. For an offline filesystem we need a way to pass in a pointer to the log_output, which is done via a new hidden opts.h option.
For online fsck, we can set c->output directly, but only want to redirect log messages from the thread running fsck - hence the new c->output_filter method.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
|