From: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Walleij <linus.walleij@stericsson.com>,
Andries Brouwer <Andries.Brouwer@cwi.nl>,
linux-kernel@vger.kernel.org, Jens Axboe <jens.axboe@oracle.com>,
Ulf Hansson <ulf.hansson@stericsson.com>
Subject: Re: [PATCH] Add commandline partitions for block devices v2
Date: Tue, 22 Jun 2010 23:48:13 +0200 [thread overview]
Message-ID: <20100622214812.GB1797@ub> (raw)
In-Reply-To: <20100622130915.16ad67cd.akpm@linux-foundation.org>
On Tue, Jun 22, 2010 Andrew Morton wrote:
> On Tue, 8 Jun 2010 Linus Walleij wrote:
>
> > From: Ulf Hansson <ulf.hansson@stericsson.com>
> >
> > This adds an option to pass in block device partitions from the kernel
> > cmdline.
> >
> > The rationale is that in embedded systems we sometimes have no standard
> > partition table available: often due to the fact that raw binary data is
> > read out from the first sectors of the device by ROM code in ASICs. We
> > have for a long time supplied custom partition information to embedded
> > flash memories through the MTDparts interface which has similar
> > semantics, and with the advent of embedded MMC block devices this now
> > comes to standard block devices.
There exist ioctls BLKPG_ADD_PARTITION and BLKPG_DEL_PARTITION that
allow one to add or remove partitions at run time, without having
a partition table, or without having a partition table in a format
understood by the kernel. Things can be done in user space.
In general there are many things one would like the kernel to do at
init time, and it is a bad idea to do all of this from the kernel
command line. So adding options like these should be done only
if it would be really awkward to do the same from an initial
ramdisk.
Andries
next prev parent reply other threads:[~2010-06-22 22:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 11:39 [PATCH] Add commandline partitions for block devices v2 Linus Walleij
2010-06-20 21:33 ` Linus Walleij
2010-06-22 20:09 ` Andrew Morton
2010-06-22 21:48 ` Andries E. Brouwer [this message]
2010-06-23 8:23 ` Ulf Hansson
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=20100622214812.GB1797@ub \
--to=andries.brouwer@cwi.nl \
--cc=akpm@linux-foundation.org \
--cc=jens.axboe@oracle.com \
--cc=linus.walleij@stericsson.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ulf.hansson@stericsson.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