[PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
GPT need to be check before MBR Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/filetype.c |4 include/filetype.h |1 + 2 files changed, 5 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index 22fc621..6563ecc 100644 --- a/common/filety

[PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
GPT need to be check before MBR Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/filetype.c | 47 +++ include/filetype.h |1 + 2 files changed, 48 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index

[PATCH 2/5] filetype: add GPT support

2013-02-15 Thread Jean-Christophe PLAGNIOL-VILLARD
GPT need to be check before MBR Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/filetype.c | 47 +++ include/filetype.h |1 + 2 files changed, 48 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index

[PATCH 2/5] filetype: add GPT support

2013-02-16 Thread Jean-Christophe PLAGNIOL-VILLARD
GPT need to be check before MBR Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/filetype.c | 52 include/filetype.h |1 + 2 files changed, 53 insertions(+) diff --git a/common/filetype.c b/common/filetype.c

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 04:52:24PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > GPT need to be check before MBR > > Cc: Rob Herring > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > common/filetype.c |4 > include/filetype.h |1 + > 2 files changed, 5 insertions(+) >

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:36 Thu 14 Feb , Sascha Hauer wrote: > On Thu, Feb 14, 2013 at 04:52:24PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > GPT need to be check before MBR > > > > Cc: Rob Herring > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > common/filetype.c |4 > > in

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Johannes Stezenbach
On Thu, Feb 14, 2013 at 05:53:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 17:36 Thu 14 Feb , Sascha Hauer wrote: > > On Thu, Feb 14, 2013 at 04:52:24PM +0100, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > GPT need to be check before MBR > > > > > > Cc: Rob Herring > > > Sig

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 06:05:07PM +0100, Johannes Stezenbach wrote: > On Thu, Feb 14, 2013 at 05:53:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 17:36 Thu 14 Feb , Sascha Hauer wrote: > > > On Thu, Feb 14, 2013 at 04:52:24PM +0100, Jean-Christophe > > > PLAGNIOL-VILLARD wrote

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 20:17 Thu 14 Feb , Sascha Hauer wrote: > On Thu, Feb 14, 2013 at 06:05:07PM +0100, Johannes Stezenbach wrote: > > On Thu, Feb 14, 2013 at 05:53:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > On 17:36 Thu 14 Feb , Sascha Hauer wrote: > > > > On Thu, Feb 14, 2013 at 04:52:2

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Johannes Stezenbach
On Thu, Feb 14, 2013 at 11:08:55PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 20:17 Thu 14 Feb , Sascha Hauer wrote: > > On Thu, Feb 14, 2013 at 06:05:07PM +0100, Johannes Stezenbach wrote: > > > On Thu, Feb 14, 2013 at 05:53:23PM +0100, Jean-Christophe > > > PLAGNIOL-VILLARD wrote:

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Johannes Stezenbach
On Thu, Feb 14, 2013 at 11:44:30PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > +#define MBR_OSTYPE_EFI_GPT 0xee > + > +static inline int pmbr_part_valid(const uint8_t *buf) > +{ > + if (buf[MBR_PART_sys_ind] == MBR_OSTYPE_EFI_GPT && > + get_unaligned_le32(&buf[MBR_PART_start

Re: [PATCH 2/5] filetype: add GPT support

2013-02-15 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 11:44:30PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > GPT need to be check before MBR > > Cc: Rob Herring > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > common/filetype.c | 47 +++ > include/filetype.h |

Re: [PATCH 2/5] filetype: add GPT support

2013-02-15 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:00 Fri 15 Feb , Sascha Hauer wrote: > On Thu, Feb 14, 2013 at 11:44:30PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > GPT need to be check before MBR > > > > Cc: Rob Herring > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > common/filetype.c | 47

Re: [PATCH 2/5] filetype: add GPT support

2013-02-15 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:43 Fri 15 Feb , Johannes Stezenbach wrote: > On Thu, Feb 14, 2013 at 11:08:55PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 20:17 Thu 14 Feb , Sascha Hauer wrote: > > > On Thu, Feb 14, 2013 at 06:05:07PM +0100, Johannes Stezenbach wrote: > > > > On Thu, Feb 14, 2013 at 05

Re: [PATCH 2/5] filetype: add GPT support

2013-02-15 Thread Sascha Hauer
On Fri, Feb 15, 2013 at 11:45:26AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 10:00 Fri 15 Feb , Sascha Hauer wrote: > > On Thu, Feb 14, 2013 at 11:44:30PM +0100, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > GPT need to be check before MBR > > > > > > Cc: Rob Herring > > > Sig

Re: [PATCH 2/5] filetype: add GPT support

2013-02-15 Thread Sascha Hauer
On Fri, Feb 15, 2013 at 02:35:14PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > GPT need to be check before MBR > > Cc: Rob Herring > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > common/filetype.c | 47 +++ > include/filetype.h |

Re: [PATCH 2/5] filetype: add GPT support

2013-02-15 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:32 Fri 15 Feb , Sascha Hauer wrote: > On Fri, Feb 15, 2013 at 02:35:14PM +0100, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > GPT need to be check before MBR > > > > Cc: Rob Herring > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > common/filetype.c | 47

Re: [PATCH 2/5] filetype: add GPT support

2013-02-15 Thread Sascha Hauer
On Fri, Feb 15, 2013 at 06:36:55PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 18:32 Fri 15 Feb , Sascha Hauer wrote: > > On Fri, Feb 15, 2013 at 02:35:14PM +0100, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > GPT need to be check before MBR > > > > > > Cc: Rob Herring > > > Sig