All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Jain <Anand.Jain@oracle.com>
To: Robert White <rwhite@pobox.com>,
	Bob Williams <linux@barrowhillfarm.org.uk>,
	linux-btrfs@vger.kernel.org
Subject: Re: scrub problem
Date: Tue, 24 Feb 2015 10:11:07 +0800	[thread overview]
Message-ID: <54EBDDBB.8040108@oracle.com> (raw)
In-Reply-To: <54EA1F5A.7010802@pobox.com>



On 02/23/2015 02:26 AM, Robert White wrote:
> On 02/20/2015 01:03 PM, Bob Williams wrote:
>> /var/lib/btrfs/scrub.status.0b07b829-9a0e-44ab-89ee-14b36a45199e
>>
>> (the last bit of the filename is the filesystem uuid)
>>
>> Look for a line that ends with "finished:0" and change it to say
>> "finished:1"
>
> Why does this data item even exist? The filesystem/kernel should know
> whether a scrub is ongoing. Isn't is universally cheaper to do the
> single IOCTL to ask the kernel whether a scrub is ongoing compared to
> the open-and-parse of this file?

good point. I wished btrfs activities/status are host independent. It 
helps in SAN configs.

-Anand

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

  reply	other threads:[~2015-02-24  2:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-20 19:59 scrub problem Johan Kröckel
2015-02-20 21:03 ` Bob Williams
2015-02-22 18:26   ` Robert White
2015-02-24  2:11     ` Anand Jain [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-02-20 22:46 Calvin Walton

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=54EBDDBB.8040108@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=linux@barrowhillfarm.org.uk \
    --cc=rwhite@pobox.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.