From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Scrub status regression (repost kinda)
Date: Tue, 17 May 2016 06:39:13 +0000 (UTC) [thread overview]
Message-ID: <pan$6d12d$fd423a5a$1e7bec76$feebee26@cox.net> (raw)
In-Reply-To: loom.20160517T032830-349@post.gmane.org
al posted on Tue, 17 May 2016 01:40:19 +0000 as excerpted:
> I'm still getting this regression on scrub. Scrub status no longer
> reports the progress of the scrub. It always used to.
>
> The scrub itself proceeds normally and using '-B' returns the usual and
> complete output.
>
> # btrfs scrub start /
> scrub started on /, fsid fdd6a335-6edf-4a74-a909-03c8102cc8f5 (pid=4111)
>
> <reasonable time passes>
>
> # btrfs scrub status /
> scrub status for fdd6a335-6edf-4a74-a909-03c8102cc8f5
> no stats available total bytes scrubbed: 0.00B with 0 errors
That's almost certainly due to the state of the location where btrfs
stores scrub status information, /var/lib/btrfs, which should be a
directory that's both writable by btrfs during the scrub, and readable at
the time btrfs scrub status is run.
It appears that (as expected for such commands) you're running btrfs as
root, so normal file permissions shouldn't matter.
However, if you have that filesystem mounted read-only at the time, or if
you or your distro has configured additional security restrictions like
SE Linux and they're preventing access to that dir, that would explain
the problem.
Additionally, I'm not sure whether btrfs scrub will create that directory
(and its parents /var/lib and /var) dynamically if needed, or if the
package is supposed to do that at installation, so btrfs scrub itself
doesn't do it. In the latter case, if the directory simply doesn't
exist, that would prevent the status files from being written, and thus
read, as well.
--
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:[~2016-05-17 6:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-17 1:40 Scrub status regression (repost kinda) al
2016-05-17 6:39 ` Duncan [this message]
2016-05-17 20:30 ` [SOLVED] " al
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$6d12d$fd423a5a$1e7bec76$feebee26@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).