summaryrefslogtreecommitdiffstats
path: root/lib/cmdlinepart.c
Commit message (Collapse)AuthorAgeFilesLines
* cmndlinepart: skip devname if partstr already contains itSascha Hauer2015-02-121-1/+2
| | | | | | | When the partition name already starts with "devname." skip this when adding the partition. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cmdlinepart: add function to parse a cmdline partition stringSascha Hauer2015-02-121-0/+28
| | | | | | | This adds a function to parse a full cmdline partition string. The addpart command is switched to use this function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cmdlinepart: make argument types saferSascha Hauer2015-02-121-3/+3
| | | | | | | The return size should be loff_t to support partitions bigger than 4G. Also use const for the devname and endp. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cmdlinepart: Change SIZE_REMAINING to loff_tSascha Hauer2015-02-121-1/+1
| | | | | | For compatibility with devices > 4G. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move cmdline partition parsing code to separate fileSascha Hauer2015-02-121-0/+95
So it's no longer local to the addpart/delpart code and can be used from other code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>