[PATCH 0/3] parted: add command to create partitions specifying the size

Sascha Hauer s.hauer at pengutronix.de
Thu May 22 06:40:21 PDT 2025


So far to create partitions we have to specify both start and end of a
partition. Create a mkpart_size command to conveniently create a
partition by specifying only the size.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
Sascha Hauer (3):
      partitions: add function to find free space on partition table
      parted: align partitions to 1MiB
      parted: implement mkpart_size command

 commands/parted.c    | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 common/partitions.c  | 42 +++++++++++++++++++++++++++++++++
 include/partitions.h |  7 +++++-
 3 files changed, 111 insertions(+), 3 deletions(-)
---
base-commit: dbc28aa3aad573f6ed0199c4fb85295b95e3bd11
change-id: 20250522-parted-size-9dbf0ee60661

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list