Skip to content

Commit 080506a

Browse files
Paul Gortmakertorvalds
authored andcommitted
block: change config option name for cmdline partition parsing
Recently commit bab5541 ("block: support embedded device command line partition") introduced CONFIG_CMDLINE_PARSER. However, that name is too generic and sounds like it enables/disables generic kernel boot arg processing, when it really is block specific. Before this option becomes a part of a full/final release, add the BLK_ prefix to it so that it is clear in absence of any other context that it is block specific. In addition, fix up the following less critical items: - help text was not really at all helpful. - index file for Documentation was not updated - add the new arg to Documentation/kernel-parameters.txt - clarify wording in source comments Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Cai Zhiyong <caizhiyong@huawei.com> Cc: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent eadb41a commit 080506a

7 files changed

Lines changed: 24 additions & 13 deletions

File tree

‎Documentation/block/00-INDEX‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ capability.txt
66
- Generic Block Device Capability (/sys/block/<device>/capability)
77
cfq-iosched.txt
88
- CFQ IO scheduler tunables
9+
cmdline-partition.txt
10+
- how to specify block device partitions on kernel command line
911
data-integrity.txt
1012
- Block data integrity
1113
deadline-iosched.txt

‎Documentation/block/cmdline-partition.txt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
Embedded device command line partition
1+
Embedded device command line partition parsing
22
=====================================================================
33

4-
Read block device partition table from command line.
5-
The partition used for fixed block device (eMMC) embedded device.
6-
It is no MBR, save storage space. Bootloader can be easily accessed
4+
Support for reading the block device partition table from the command line.
5+
It is typically used for fixed block (eMMC) embedded devices.
6+
It has no MBR, so saves storage space. Bootloader can be easily accessed
77
by absolute address of data on the block device.
88
Users can easily change the partition.
99

‎Documentation/kernel-parameters.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
480480
Format: <io>,<irq>,<mode>
481481
See header of drivers/net/hamradio/baycom_ser_hdx.c.
482482

483+
blkdevparts= Manual partition parsing of block device(s) for
484+
embedded devices based on command line input.
485+
See Documentation/block/cmdline-partition.txt
486+
483487
boot_delay= Milliseconds to delay each printk during boot.
484488
Values larger than 10 seconds (10000) are changed to
485489
no delay (0).

‎block/Kconfig‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,16 @@ config BLK_DEV_THROTTLING
9999

100100
See Documentation/cgroups/blkio-controller.txt for more information.
101101

102-
config CMDLINE_PARSER
102+
config BLK_CMDLINE_PARSER
103103
bool "Block device command line partition parser"
104104
default n
105105
---help---
106-
Parsing command line, get the partitions information.
106+
Enabling this option allows you to specify the partition layout from
107+
the kernel boot args. This is typically of use for embedded devices
108+
which don't otherwise have any standardized method for listing the
109+
partitions on a block device.
110+
111+
See Documentation/block/cmdline-partition.txt for more information.
107112

108113
menu "Partition Types"
109114

‎block/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ obj-$(CONFIG_IOSCHED_CFQ) += cfq-iosched.o
1818

1919
obj-$(CONFIG_BLOCK_COMPAT) += compat_ioctl.o
2020
obj-$(CONFIG_BLK_DEV_INTEGRITY) += blk-integrity.o
21-
obj-$(CONFIG_CMDLINE_PARSER) += cmdline-parser.o
21+
obj-$(CONFIG_BLK_CMDLINE_PARSER) += cmdline-parser.o

‎block/partitions/Kconfig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ config SYSV68_PARTITION
263263

264264
config CMDLINE_PARTITION
265265
bool "Command line partition support" if PARTITION_ADVANCED
266-
select CMDLINE_PARSER
266+
select BLK_CMDLINE_PARSER
267267
help
268-
Say Y here if you would read the partitions table from bootargs.
268+
Say Y here if you want to read the partition table from bootargs.
269269
The format for the command line is just like mtdparts.

‎block/partitions/cmdline.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
* Copyright (C) 2013 HUAWEI
33
* Author: Cai Zhiyong <caizhiyong@huawei.com>
44
*
5-
* Read block device partition table from command line.
6-
* The partition used for fixed block device (eMMC) embedded device.
7-
* It is no MBR, save storage space. Bootloader can be easily accessed
5+
* Read block device partition table from the command line.
6+
* Typically used for fixed block (eMMC) embedded devices.
7+
* It has no MBR, so saves storage space. Bootloader can be easily accessed
88
* by absolute address of data on the block device.
99
* Users can easily change the partition.
1010
*
1111
* The format for the command line is just like mtdparts.
1212
*
13-
* Verbose config please reference "Documentation/block/cmdline-partition.txt"
13+
* For further information, see "Documentation/block/cmdline-partition.txt"
1414
*
1515
*/
1616

0 commit comments

Comments
 (0)