Date: Sun, 1 Jul 2018 10:37:13 +0300 From: Andriy Gapon <avg@FreeBSD.org> To: Paul Blockhaus <paul@mueller-blockhaus.de>, freebsd-fs@freebsd.org Subject: Re: Question to zfs scrub code Message-ID: <ef2c5cd0-1c49-bac2-248b-7770d175ee73@FreeBSD.org> In-Reply-To: <5d2ccda7-e306-2b1b-090a-27f7ec564296@mueller-blockhaus.de> References: <5d2ccda7-e306-2b1b-090a-27f7ec564296@mueller-blockhaus.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef2c5cd0-1c49-bac2-248b-7770d175ee73>