On Sun, Dec 27, 2015 at 6:21 PM, Christoph Anton Mitterer
<cales...@scientia.net> wrote:
> On Sun, 2015-12-27 at 07:22 +0000, Duncan wrote:
>> I'd call that NOTABUG.  As the btrfs-scrub manpage suggests:
>>
>> * When you point scrub at a mountpoint, it scrubs all devices
>> composing
>> that filesystem.
> Uhm,.. mine doesn't contain this,... neither do those of the master or
> devel branches from David's repo... or am I just blind?
>
> Actually it says:
>>DESCRIPTION
>>       btrfs scrub is used to scrub a btrfs filesystem, which will read all
>>       data from all disks and verify checksums.
>
> Also, if it would allow to only selectively scrub parts of the fs (e.g.
> just some devices or subpaths/subvols/files) than the whole syntax for
> cancel, break, etc. would become ambiguous.
>
>> Since /dev/disk/by-*/* are symlinks to various block-device nodes,
>> it
>> follows that if you point scrub at them, only the device pointed at
>> is
>> scrubbed, exactly as one might expect based on the manpage.
> Sure... that was clear... but I have another manpage than yours...
> perhaps some distro specific patch?

Fedora carries pretty much unmodified upstream btrfs-progs and I see
what both of you are seeing (I have 4.3.1).

The description does somewhat confusingly say "btrfs scrub is used to
scrub a btrfs filesystem, which will read all data from all disks and
verify checksums" but under subcommand > start it contains the
following qualification as the first sentence:

Start a scrub on all devices of the filesystem identified by <path> or
on a single <device>.



-- 
Chris Murphy
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to