From: Paul Clements <paul.clements@steeleye.com>
To: Mike Snitzer <snitzer@gmail.com>
Cc: linux-raid@vger.kernel.org, neilb@suse.de
Subject: Re: [PATCH] md: new bitmap sysfs interface
Date: Thu, 27 Jul 2006 10:07:06 -0400 [thread overview]
Message-ID: <44C8C88A.8080109@steeleye.com> (raw)
In-Reply-To: <170fa0d20607262036i30ab9f12qf64c0fc7b90b9eca@mail.gmail.com>
Mike Snitzer wrote:
> On 7/26/06, Paul Clements <paul.clements@steeleye.com> wrote:
>> Mike Snitzer wrote:
>> > Also, what is the interface one should use to collect dirty bits from
>> > the primary's bitmap?
>>
>> Whatever you'd like. scp the bitmap file over or collect the ranges into
>> a file and scp that over, or something similar.
>
> OK, so regardless of whether you are using an external or internal
> bitmap; how does one collect the ranges from an array's bitmap?
Well, with an internal bitmap you don't need this interface. The bitmap
is located on all the component disks. The reason we don't use internal
bitmaps in a configuration where one of the disks is located remotely
(over a LAN or SAN, or possibly a WAN) is that the bitmap updates (which
are synchronous and occur fairly often) would be too costly.
So reading the bits out of a file is fairly simple. The bitmap file is
laid out one bit per chunk, with a 256 byte superblock at the front. You
just need a perl script (for example) that reads the file and keeps
track of which bits are dirty, and then prints those numbers out.
--
Paul
next prev parent reply other threads:[~2006-07-27 14:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-25 6:30 [PATCH] md: new bitmap sysfs interface Paul Clements
2006-07-25 17:41 ` dave rientjes
2006-07-26 21:30 ` Mike Snitzer
2006-07-27 2:27 ` Paul Clements
2006-07-27 3:36 ` Mike Snitzer
2006-07-27 14:07 ` Paul Clements [this message]
2006-07-27 14:28 ` Mike Snitzer
2006-07-27 14:55 ` Paul Clements
2006-08-03 1:42 ` Neil Brown
2006-08-03 1:53 ` Paul Clements
2006-08-03 7:24 ` David Greaves
2006-08-03 15:39 ` Mr. James W. Laferriere
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=44C8C88A.8080109@steeleye.com \
--to=paul.clements@steeleye.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
--cc=snitzer@gmail.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 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).