From: Luca Berra <bluca@comedia.it>
To: "Marcin Mirosław" <marcin@mejor.pl>, "Neil Brown" <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm-3.1.1 segfaults when mdadm -G -Z
Date: Sat, 30 Jan 2010 10:56:11 +0100 [thread overview]
Message-ID: <20100130095611.GC15471@maude.comedia.it> (raw)
In-Reply-To: <4B49DBFA.1090508@mejor.pl>
[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]
On Sun, Jan 10, 2010 at 02:54:02PM +0100, Marcin Mirosław wrote:
>W dniu 2010-01-10 14:47, Zdenek Behan pisze:
>> -Z, --array-size=
>> This is only meaningful with --grow and its effect is
>> not per‐
>> sistent: when the array is stopped an restarted the
>> default
>> array size will be restored.
>
>Yes, i missed it.
>
>> You didn't supply any argument to -Z at all, or to be precise, you
>> supplied /dev/md6 as the argument, whereas you should have put in the
>> array size.
>>
>> Also, another thing I have noticed lately is, that _some_ short options
>> seem to be somehow oddly broken on my system and not accepting
>> arguments, even if they are supposed to be. If the segfault persists
>> after using the correct syntax, try using the long opts instead. I was
>> planning to dig more into this bug myself, so I might just kick self to
>> do it now.
>
>long option, with suplied array size works correctly, so indeed problem
>is in short option.
>Thank you!
>Regards.
attached patch fixes it.
Regards,
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
[-- Attachment #2: 0002-fix-segfault-when-Z-was-given-without-argument-repor.patch --]
[-- Type: text/plain, Size: 1381 bytes --]
From d61bcf0c5f425bd4009f90cc1d467d933fde0a2c Mon Sep 17 00:00:00 2001
From: Luca Berra <bluca@vodka.it>
Date: Sat, 30 Jan 2010 10:46:07 +0100
Subject: [PATCH 2/2] =?UTF-8?q?fix=20segfault=20when=20-Z=20was=20given=20without=20argument=20(reported=20by=20Marcin
=20Miros=C5=82aw)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Luca Berra <bluca@vodka.it>
---
ReadMe.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ReadMe.c b/ReadMe.c
index cd7b685..45619a4 100644
--- a/ReadMe.c
+++ b/ReadMe.c
@@ -86,11 +86,11 @@ char Version[] = Name " - v3.1.1 - 19th November 2009\n";
* At the time if writing, there is only minimal support.
*/
-char short_options[]="-ABCDEFGIQhVXWZvqbc:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tye:";
+char short_options[]="-ABCDEFGIQhVXWZ:vqbc:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tye:";
char short_bitmap_options[]=
- "-ABCDEFGIQhVXWZvqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tye:";
+ "-ABCDEFGIQhVXWZ:vqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sarfRSow1tye:";
char short_bitmap_auto_options[]=
- "-ABCDEFGIQhVXWZvqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sa:rfRSow1tye:";
+ "-ABCDEFGIQhVXWZ:vqb:c:i:l:p:m:n:x:u:c:d:z:U:N:sa:rfRSow1tye:";
struct option long_options[] = {
{"manage", 0, 0, '@'},
--
1.6.6.1
next prev parent reply other threads:[~2010-01-30 9:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-10 12:13 mdadm-3.1.1 segfaults when mdadm -G -Z Marcin Mirosław
2010-01-10 13:47 ` Zdenek Behan
2010-01-10 13:54 ` Marcin Mirosław
2010-01-30 9:56 ` Luca Berra [this message]
2010-01-31 22:17 ` Neil Brown
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=20100130095611.GC15471@maude.comedia.it \
--to=bluca@comedia.it \
--cc=linux-raid@vger.kernel.org \
--cc=marcin@mejor.pl \
--cc=neilb@suse.de \
/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.