diff mbox series

[mtd-utils,1/1] misc-utils: mtdpart: document partition of size 0

Message ID 20221103141217.22119-1-brandon.maier@collins.com
State Accepted
Delegated to: David Oberhollenzer
Headers show
Series [mtd-utils,1/1] misc-utils: mtdpart: document partition of size 0 | expand

Commit Message

Brandon Maier Nov. 3, 2022, 2:12 p.m. UTC
If the partition size passed in to the BLKPG_ADD_PARTITION ioctl is 0,
Linux will make the partition fill to the end of the device[1]. Document
this feature in the help.

[1] https://elixir.bootlin.com/linux/v6.0.6/source/drivers/mtd/mtdpart.c#L254

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
 misc-utils/mtdpart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Oberhollenzer Nov. 9, 2022, 7:39 p.m. UTC | #1
Applied to mtd-utils.git master.

Thanks,

David
diff mbox series

Patch

diff --git a/misc-utils/mtdpart.c b/misc-utils/mtdpart.c
index ba35d87..c8cd79b 100644
--- a/misc-utils/mtdpart.c
+++ b/misc-utils/mtdpart.c
@@ -37,7 +37,7 @@  static void display_help(int status)
 "  -V, --version Output version information and exit\n"
 "\n"
 "START location and SIZE of the partition are in bytes. They should align on\n"
-"eraseblock size.\n",
+"eraseblock size. If SIZE is 0 the partition will go to end of MTD device.\n",
 	PROGRAM_NAME
 	);
 	exit(status);