RE: [PATCH] block: support embedded device command line partition

2013-09-17 Thread Caizhiyong
> I saw this patch appear in kernel v3.12-rc1, and it's nice since it's exactly > what we need. So needed that we proposed it in 2010: > http://marc.info/?l=linux-kernel=127425650923757=2 > http://marc.info/?l=linux-kernel=127599718024364=2 > > Is this patch inspired by Ulfs patch? (I can see

Re: [PATCH] block: support embedded device command line partition

2013-09-17 Thread Linus Walleij
On Sat, Aug 3, 2013 at 11:57 AM, Caizhiyong wrote: > From: Cai Zhiyong > > Read block device partition table from command line. > The partition used for fixed block device (eMMC) embedded device. > It is no MBR, save storage space. Bootloader can be easily accessed by > absolute address of data

Re: [PATCH] block: support embedded device command line partition

2013-09-17 Thread Linus Walleij
On Sat, Aug 3, 2013 at 11:57 AM, Caizhiyong caizhiy...@huawei.com wrote: From: Cai Zhiyong caizhiy...@huawei.com Read block device partition table from command line. The partition used for fixed block device (eMMC) embedded device. It is no MBR, save storage space. Bootloader can be easily

RE: [PATCH] block: support embedded device command line partition

2013-09-17 Thread Caizhiyong
I saw this patch appear in kernel v3.12-rc1, and it's nice since it's exactly what we need. So needed that we proposed it in 2010: http://marc.info/?l=linux-kernelm=127425650923757w=2 http://marc.info/?l=linux-kernelm=127599718024364w=2 Is this patch inspired by Ulfs patch? (I can see the

Re: [PATCH] block: support embedded device command line partition

2013-08-19 Thread Stephen Warren
On 08/19/2013 02:36 AM, Caizhiyong wrote: >> On 08/15/2013 08:54 PM, Caizhiyong wrote: > +blkdevparts=[;] > + := :[,] > + := [@](part-name) > + > + > +block device disk name, embedded device used fixed block device, > +it's disk name also fixed. such as:

RE: [PATCH] block: support embedded device command line partition

2013-08-19 Thread Caizhiyong
> On 08/15/2013 08:54 PM, Caizhiyong wrote: > >>> +blkdevparts=[;] > >>> + := :[,] > >>> + := [@](part-name) > >>> + > >>> + > >>> +block device disk name, embedded device used fixed block device, > >>> +it's disk name also fixed. such as: mmcblk0, mmcblk1, mmcblk0boot0. > >> > >>

RE: [PATCH] block: support embedded device command line partition

2013-08-19 Thread Caizhiyong
On 08/15/2013 08:54 PM, Caizhiyong wrote: +blkdevparts=blkdev-def[;blkdev-def] + blkdev-def := blkdev-id:partdef[,partdef] +partdef := size[@offset](part-name) + +blkdev-id +block device disk name, embedded device used fixed block device, +it's disk name also fixed.

Re: [PATCH] block: support embedded device command line partition

2013-08-19 Thread Stephen Warren
On 08/19/2013 02:36 AM, Caizhiyong wrote: On 08/15/2013 08:54 PM, Caizhiyong wrote: +blkdevparts=blkdev-def[;blkdev-def] + blkdev-def := blkdev-id:partdef[,partdef] +partdef := size[@offset](part-name) + +blkdev-id +block device disk name, embedded device used fixed block device,

Re: [PATCH] block: support embedded device command line partition

2013-08-16 Thread Stephen Warren
On 08/15/2013 08:54 PM, Caizhiyong wrote: >>> +blkdevparts=[;] >>> + := :[,] >>> + := [@](part-name) >>> + >>> + >>> +block device disk name, embedded device used fixed block device, >>> +it's disk name also fixed. such as: mmcblk0, mmcblk1, mmcblk0boot0. >> >> The device-name isn't

Re: [PATCH] block: support embedded device command line partition

2013-08-16 Thread Stephen Warren
On 08/15/2013 08:54 PM, Caizhiyong wrote: +blkdevparts=blkdev-def[;blkdev-def] + blkdev-def := blkdev-id:partdef[,partdef] +partdef := size[@offset](part-name) + +blkdev-id +block device disk name, embedded device used fixed block device, +it's disk name also fixed. such as:

RE: [PATCH] block: support embedded device command line partition

2013-08-15 Thread Caizhiyong
> > +blkdevparts=[;] > > + := :[,] > > + := [@](part-name) > > + > > + > > +block device disk name, embedded device used fixed block device, > > +it's disk name also fixed. such as: mmcblk0, mmcblk1, mmcblk0boot0. > > The device-name isn't always fixed. > > For example, what if

Re: [PATCH] block: support embedded device command line partition

2013-08-15 Thread Stephen Warren
On 08/03/2013 03:57 AM, Caizhiyong wrote: > From: Cai Zhiyong > > Read block device partition table from command line. > The partition used for fixed block device (eMMC) embedded device. > It is no MBR, save storage space. Bootloader can be easily accessed by > absolute address of data on the

Re: [PATCH] block: support embedded device command line partition

2013-08-15 Thread Stephen Warren
On 08/03/2013 03:57 AM, Caizhiyong wrote: From: Cai Zhiyong caizhiy...@huawei.com Read block device partition table from command line. The partition used for fixed block device (eMMC) embedded device. It is no MBR, save storage space. Bootloader can be easily accessed by absolute address of

RE: [PATCH] block: support embedded device command line partition

2013-08-15 Thread Caizhiyong
+blkdevparts=blkdev-def[;blkdev-def] + blkdev-def := blkdev-id:partdef[,partdef] +partdef := size[@offset](part-name) + +blkdev-id +block device disk name, embedded device used fixed block device, +it's disk name also fixed. such as: mmcblk0, mmcblk1, mmcblk0boot0.

Re: [PATCH] block: support embedded device command line partition

2013-08-06 Thread Andrew Morton
ert); Quyaxin; > > Jens Axboe; > > David Woodhouse; Marius Groeger > > Subject: Re: [PATCH] block: support embedded device command line partition > > > > On Sat, 3 Aug 2013 09:57:04 + Caizhiyong wrote: > > > > > From: Cai Zhiyong > > >

RE: [PATCH] block: support embedded device command line partition

2013-08-06 Thread Caizhiyong
bject: Re: [PATCH] block: support embedded device command line partition > > On Sat, 3 Aug 2013 09:57:04 + Caizhiyong wrote: > > > From: Cai Zhiyong > > > > Read block device partition table from command line. > > The partition used for fixed block device (eM

RE: [PATCH] block: support embedded device command line partition

2013-08-06 Thread Caizhiyong
embedded device command line partition On Sat, 3 Aug 2013 09:57:04 + Caizhiyong caizhiy...@huawei.com wrote: From: Cai Zhiyong caizhiy...@huawei.com Read block device partition table from command line. The partition used for fixed block device (eMMC) embedded device. It is no MBR

Re: [PATCH] block: support embedded device command line partition

2013-08-06 Thread Andrew Morton
; Jens Axboe; David Woodhouse; Marius Groeger Subject: Re: [PATCH] block: support embedded device command line partition On Sat, 3 Aug 2013 09:57:04 + Caizhiyong caizhiy...@huawei.com wrote: From: Cai Zhiyong caizhiy...@huawei.com Read block device partition table from command

Re: [PATCH] block: support embedded device command line partition

2013-08-05 Thread Andrew Morton
On Sat, 3 Aug 2013 09:57:04 + Caizhiyong wrote: > From: Cai Zhiyong > > Read block device partition table from command line. > The partition used for fixed block device (eMMC) embedded device. > It is no MBR, save storage space. Bootloader can be easily accessed by > absolute address of

Re: [PATCH] block: support embedded device command line partition

2013-08-05 Thread Andrew Morton
On Sat, 3 Aug 2013 09:57:04 + Caizhiyong caizhiy...@huawei.com wrote: From: Cai Zhiyong caizhiy...@huawei.com Read block device partition table from command line. The partition used for fixed block device (eMMC) embedded device. It is no MBR, save storage space. Bootloader can be easily

[PATCH] block: support embedded device command line partition

2013-08-03 Thread Caizhiyong
From: Cai Zhiyong Read block device partition table from command line. The partition used for fixed block device (eMMC) embedded device. It is no MBR, save storage space. Bootloader can be easily accessed by absolute address of data on the block device. Users can easily change the partition.

[PATCH] block: support embedded device command line partition

2013-08-03 Thread Caizhiyong
From: Cai Zhiyong caizhiy...@huawei.com Read block device partition table from command line. The partition used for fixed block device (eMMC) embedded device. It is no MBR, save storage space. Bootloader can be easily accessed by absolute address of data on the block device. Users can easily

RE: [PATCH] block: support embedded device command line partition

2013-07-31 Thread Caizhiyong
> From: Karel Zak [mailto:k...@redhat.com] > Sent: Wednesday, July 31, 2013 9:25 PM > To: Caizhiyong > Cc: Andrew Morton; linux-kernel@vger.kernel.org; Wanglin (Albert); Quyaxin > Subject: Re: [PATCH] block: support embedded device command line partition > > On Sat, Jul 2

Re: [PATCH] block: support embedded device command line partition

2013-07-31 Thread Karel Zak
On Sat, Jul 27, 2013 at 01:56:24PM +, Caizhiyong wrote: > +static int parse_partitions(struct parsed_partitions *state, > + struct cmdline_parts *parts) > +{ > + int slot; > + uint64_t from = 0; > + uint64_t disk_size; > + char buf[BDEVNAME_SIZE]; > +

Re: [PATCH] block: support embedded device command line partition

2013-07-31 Thread Karel Zak
On Sat, Jul 27, 2013 at 01:56:24PM +, Caizhiyong wrote: +static int parse_partitions(struct parsed_partitions *state, + struct cmdline_parts *parts) +{ + int slot; + uint64_t from = 0; + uint64_t disk_size; + char buf[BDEVNAME_SIZE]; + struct

RE: [PATCH] block: support embedded device command line partition

2013-07-31 Thread Caizhiyong
From: Karel Zak [mailto:k...@redhat.com] Sent: Wednesday, July 31, 2013 9:25 PM To: Caizhiyong Cc: Andrew Morton; linux-kernel@vger.kernel.org; Wanglin (Albert); Quyaxin Subject: Re: [PATCH] block: support embedded device command line partition On Sat, Jul 27, 2013 at 01:56:24PM +

Re: [PATCH] block: support embedded device command line partition

2013-07-30 Thread Andrew Morton
On Sat, 27 Jul 2013 13:56:24 + Caizhiyong wrote: > From: Cai Zhiyong > > Read block device partition table from command line. This partition used for > fixed block device (eMMC) embedded device. > It no MBR, can save storage space. Bootloader can be easily accessed by > absolute address

Re: [PATCH] block: support embedded device command line partition

2013-07-30 Thread Andrew Morton
On Sat, 27 Jul 2013 13:56:24 + Caizhiyong caizhiy...@huawei.com wrote: From: Cai Zhiyong caizhiy...@huawei.com Read block device partition table from command line. This partition used for fixed block device (eMMC) embedded device. It no MBR, can save storage space. Bootloader can be

[PATCH] block: support embedded device command line partition

2013-07-27 Thread Caizhiyong
From: Cai Zhiyong Read block device partition table from command line. This partition used for fixed block device (eMMC) embedded device. It no MBR, can save storage space. Bootloader can be easily accessed by absolute address of data on the block device. It support partition name, provides

[PATCH] block: support embedded device command line partition

2013-07-27 Thread Caizhiyong
From: Cai Zhiyong caizhiy...@huawei.com Read block device partition table from command line. This partition used for fixed block device (eMMC) embedded device. It no MBR, can save storage space. Bootloader can be easily accessed by absolute address of data on the block device. It support