linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@cse.unsw.edu.au>
To: Jason Shelton <jason@storix.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Simple question, maybe
Date: Thu, 27 Jun 2002 04:17:01 +1000 (EST)	[thread overview]
Message-ID: <15642.1309.651737.496391@notabene.cse.unsw.edu.au> (raw)
In-Reply-To: message from Jason Shelton on  June 26

On  June 26, jason@storix.com wrote:
> 
> That was exactly what I needed, thank you very much. Now, if I may,
> where did you find that? I've been looking all over the place and kept
> hitting dead ends.

Use the source, luke:
linux/drivers/md/md.c:

__setup("raid=", raid_setup);

and

static int __init raid_setup(char *str)
{
	int len, pos;

	len = strlen(str) + 1;
	pos = 0;

	while (pos < len) {
		char *comma = strchr(str+pos, ',');
		int wlen;
		if (comma)
			wlen = (comma-str)-pos;
		else	wlen = (len-1)-pos;

		if (!strncmp(str, "noautodetect", wlen))
			raid_setup_args.noautodetect = 1;
		pos += wlen+1;
	}
	raid_setup_args.set = 1;
	return 1;
}

NeilBrown

  reply	other threads:[~2002-06-26 18:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-26 17:45 Simple question, maybe Jason Shelton
2002-06-26 18:02 ` Neil Brown
2002-06-26 18:05   ` Jason Shelton
2002-06-26 18:17     ` Neil Brown [this message]
2002-06-26 22:14       ` resync patch & Neil's recent patches bo
2002-06-28 15:21         ` Neil Brown
2002-06-28 23:46           ` bo
2002-06-29 13:02             ` 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=15642.1309.651737.496391@notabene.cse.unsw.edu.au \
    --to=neilb@cse.unsw.edu.au \
    --cc=jason@storix.com \
    --cc=linux-raid@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).