linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mtd-utils 1/1] misc-utils: mtdpart: document partition of size 0
@ 2022-11-03 14:12 Brandon Maier
  2022-11-09 19:39 ` David Oberhollenzer
  0 siblings, 1 reply; 2+ messages in thread
From: Brandon Maier @ 2022-11-03 14:12 UTC (permalink / raw)
  To: MTD Mailing List; +Cc: David Oberhollenzer, Brandon Maier

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(-)

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);
-- 
2.38.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH mtd-utils 1/1] misc-utils: mtdpart: document partition of size 0
  2022-11-03 14:12 [PATCH mtd-utils 1/1] misc-utils: mtdpart: document partition of size 0 Brandon Maier
@ 2022-11-09 19:39 ` David Oberhollenzer
  0 siblings, 0 replies; 2+ messages in thread
From: David Oberhollenzer @ 2022-11-09 19:39 UTC (permalink / raw)
  To: Brandon Maier, MTD Mailing List

Applied to mtd-utils.git master.

Thanks,

David

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-09 19:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-03 14:12 [PATCH mtd-utils 1/1] misc-utils: mtdpart: document partition of size 0 Brandon Maier
2022-11-09 19:39 ` David Oberhollenzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).