* [PATCH] Create: don't default to bitmap=internal when it is not supported
@ 2014-04-15 8:01 Artur Paszkiewicz
2014-04-28 4:19 ` NeilBrown
0 siblings, 1 reply; 3+ messages in thread
From: Artur Paszkiewicz @ 2014-04-15 8:01 UTC (permalink / raw)
To: neilb; +Cc: linux-raid, Artur Paszkiewicz
For large arrays (component size > 100GB) if write-intent bitmap is not
enabled, then it is set by default to "internal", even if the metadata
format does support internal bitmaps, which causes Create to fail.
This patch adds checking if add_internal_bitmap is set in the
superswitch before setting bitmap_file to "internal".
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
---
Create.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/Create.c b/Create.c
index e42627c..602f79c 100644
--- a/Create.c
+++ b/Create.c
@@ -509,6 +509,7 @@ int Create(struct supertype *st, char *mddev,
if (!s->bitmap_file &&
s->level >= 1 &&
+ st->ss->add_internal_bitmap &&
(s->write_behind || s->size > 100*1024*1024ULL)) {
if (c->verbose > 0)
pr_err("automatically enabling write-intent bitmap on large array\n");
--
1.8.4.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Create: don't default to bitmap=internal when it is not supported
2014-04-15 8:01 [PATCH] Create: don't default to bitmap=internal when it is not supported Artur Paszkiewicz
@ 2014-04-28 4:19 ` NeilBrown
2014-04-30 11:34 ` Artur Paszkiewicz
0 siblings, 1 reply; 3+ messages in thread
From: NeilBrown @ 2014-04-28 4:19 UTC (permalink / raw)
To: Artur Paszkiewicz; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]
On Tue, 15 Apr 2014 10:01:44 +0200 Artur Paszkiewicz
<artur.paszkiewicz@intel.com> wrote:
> For large arrays (component size > 100GB) if write-intent bitmap is not
> enabled, then it is set by default to "internal", even if the metadata
> format does support internal bitmaps, which causes Create to fail.
>
> This patch adds checking if add_internal_bitmap is set in the
> superswitch before setting bitmap_file to "internal".
>
> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
> ---
> Create.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Create.c b/Create.c
> index e42627c..602f79c 100644
> --- a/Create.c
> +++ b/Create.c
> @@ -509,6 +509,7 @@ int Create(struct supertype *st, char *mddev,
>
> if (!s->bitmap_file &&
> s->level >= 1 &&
> + st->ss->add_internal_bitmap &&
> (s->write_behind || s->size > 100*1024*1024ULL)) {
> if (c->verbose > 0)
> pr_err("automatically enabling write-intent bitmap on large array\n");
Applied (at last:-)
Thanks,
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Create: don't default to bitmap=internal when it is not supported
2014-04-28 4:19 ` NeilBrown
@ 2014-04-30 11:34 ` Artur Paszkiewicz
0 siblings, 0 replies; 3+ messages in thread
From: Artur Paszkiewicz @ 2014-04-30 11:34 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-raid
On 04/28/2014 06:19 AM, NeilBrown wrote:
> On Tue, 15 Apr 2014 10:01:44 +0200 Artur Paszkiewicz
> <artur.paszkiewicz@intel.com> wrote:
>
>> For large arrays (component size > 100GB) if write-intent bitmap is not
>> enabled, then it is set by default to "internal", even if the metadata
>> format does support internal bitmaps, which causes Create to fail.
>>
>> This patch adds checking if add_internal_bitmap is set in the
>> superswitch before setting bitmap_file to "internal".
>>
>> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
>> ---
>> Create.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/Create.c b/Create.c
>> index e42627c..602f79c 100644
>> --- a/Create.c
>> +++ b/Create.c
>> @@ -509,6 +509,7 @@ int Create(struct supertype *st, char *mddev,
>>
>> if (!s->bitmap_file &&
>> s->level >= 1 &&
>> + st->ss->add_internal_bitmap &&
>> (s->write_behind || s->size > 100*1024*1024ULL)) {
>> if (c->verbose > 0)
>> pr_err("automatically enabling write-intent bitmap on large array\n");
>
> Applied (at last:-)
>
> Thanks,
> NeilBrown
Thanks, but it seems it is not applied yet. I don't see it in the
repository.
Artur
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-30 11:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-15 8:01 [PATCH] Create: don't default to bitmap=internal when it is not supported Artur Paszkiewicz
2014-04-28 4:19 ` NeilBrown
2014-04-30 11:34 ` Artur Paszkiewicz
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).