From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Confining scrub to a subvolume
Date: Wed, 30 Dec 2015 20:57:36 +0000 (UTC) [thread overview]
Message-ID: <pan$468ac$46c45058$b2c48647$420a1135@cox.net> (raw)
In-Reply-To: 1451503680.6350.5.camel@scientia.net
Christoph Anton Mitterer posted on Wed, 30 Dec 2015 20:28:00 +0100 as
excerpted:
> On Wed, 2015-12-30 at 18:26 +0000, Duncan wrote:
>> That should work. Cat the files to /dev/null and check dmesg. For
>> single mode it should check the only copy. For raid1/10 or dup,
>> running two checks, ensuring one is even-PID while the other is
>> odd-PID, should work to check both copies, since the read-scheduler
>> assigns copy based on even/odd PID. Errors will show up in dmesg, as
>> well as cat's STDERR.
> That doesn't seem very reliable to me, to be honest... plus it wouldn't
> work in any RAID56 or dupN (with n!=2) case, when that gets sooner or
> later implemented.
Well, yes, but right now except on raid56... and there's a good chance
it'll work for a year at least, as I've seen no first-patches yet to
implement n-way (which I'm sure looking forward to), after which perhaps
he'll have implemented the multi-btrfs on partitions or lvm thing that I
actually prefer, myself.
Meanwhile, it's a pretty clever solution, I think. =:^)
> Also, I'd kinda guess (or better said: hope) that the kernel's cache
> would destroy these efforts, at least when the two reads happen mostly
> in parallel.
I was thinking run them in parallel, but you're right, you'd have to run
them serially and dumpcache between runs.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2015-12-30 20:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-30 0:00 Confining scrub to a subvolume Sree Harsha Totakura
2015-12-30 17:39 ` David Sterba
2015-12-30 18:26 ` Duncan
2015-12-30 19:28 ` Christoph Anton Mitterer
2015-12-30 20:57 ` Duncan [this message]
2015-12-30 21:12 ` Christoph Anton Mitterer
2016-01-04 11:01 ` Sree Harsha Totakura
2016-01-06 8:06 ` Duncan
2015-12-30 19:26 ` Christoph Anton Mitterer
2016-01-05 9:40 ` David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='pan$468ac$46c45058$b2c48647$420a1135@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).