]> www.infradead.org Git - mtd-utils.git/commitdiff
misc-utils: mtdpart: document partition of size 0
authorBrandon Maier <brandon.maier@collins.com>
Thu, 3 Nov 2022 14:12:17 +0000 (09:12 -0500)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 7 Nov 2022 07:28:49 +0000 (08:28 +0100)
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>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
misc-utils/mtdpart.c

index ba35d87f0d985e9d069b5dcf400e1ce931a47798..c8cd79bb69c37d70c5f5c190a2e66b95dd327926 100644 (file)
@@ -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);