Skip to content

parted: add command to create partitions specifying the size

Sascha Hauer barebox 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250522-parted-size-9dbf0ee60661

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3partitions: add function to find free space on partition tablecommon/partitions.c include/partitions.h+44 -10 replies
2/3parted: align partitions to 1MiBcommands/parted.c include/partitions.h+12 -20 replies
3/3parted: implement mkpart_size commandcommands/parted.c+55 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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.

---
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,

Signature · 1 line
Sascha Hauer <[email protected]>