[PATCH] devfs: be more lax with partition boundaries
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Thu May 7 02:09:17 PDT 2015
Hello Sascha,
On Thu, May 07, 2015 at 10:57:02AM +0200, Sascha Hauer wrote:
> On Thu, May 07, 2015 at 10:45:45AM +0200, Uwe Kleine-König wrote:
> > If a partition starts inside its parent device but is too big such that
> > it extends over the device boundary, just chop it to the device's end.
> >
> > This matches the behaviour of Linux.
> >
> > The motivation for this change is that it makes it possible in some
> > cases to have the partitioning in a device tree fixed and still allow
> > different flash sizes.
>
> When doing it someone is probably annoyed about the warning pretty soon.
> I know we just talked whether I would accept this patch, but now I
well, we talked about a change in barebox that makes it match the
behaviour of Linux. So critic to the actual implementation is fine.
> realized that the correct way to extend the last partition to the end of
> the device is to use size 0. This works under barebox and Linux.
Great. Just tested this and it works fine. (I don't know if Linux really
handles this this way, but barebox does and gives the right explicit
size to Linux.)
\o/
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the barebox
mailing list