Question to zfs scrub code
Andriy Gapon
avg at FreeBSD.org
Sun Jul 1 07:37:23 UTC 2018
On 30/06/2018 23:19, Paul Blockhaus wrote:
> I'm not entirely shure wether this is the right place to ask, but maybe
> someone can help my anyway.
> I'm trying to understand how the zfs scrub code works, but I'm stuck at
> dsl_scan in dsl_scan.c, it just looks like a dead end in the code.
> All called functions don't seem to traverse any data blocks and just
> magically end in a scrubbed pool.
>
> What am I missing?
> Is there any documentation where the scrub continues?
> Or does anyone of you can explain, what happens in and after the
> dsl_scan function?
The code you checked sets up the initial scan state. Then, spa_sync (a periodic
call) calls dsl_scan_sync that does the actual scanning.
--
Andriy Gapon
More information about the freebsd-fs
mailing list