[parted-devel] [PATCH 0/3] Add commands to set disk and partition UUID on GPT

Arvin Schnell aschnell at suse.de
Tue Nov 17 09:50:12 GMT 2026


Hi,

here is the latest version of the patch set to add commands to set the
disk and partition UUID on GPT. The test cases are added together in a
separate last patch since they test both commands. Hope that addesses
all previous issues.

Regards,
  Arvin

Arvin Schnell (3):
  Add command disk_uuid to set UUID of disk on GPT.
  Add command uuid to set UUID of partition on GPT.
  Added tests for setting disk and partition uuid.

 doc/C/parted.8                       |   8 ++
 doc/parted.texi                      |  40 +++++++++
 include/parted/disk.in.h             |   6 ++
 libparted/disk.c                     |  34 ++++++++
 libparted/labels/gpt.c               |  40 +++++++++
 parted/command.c                     |   2 +-
 parted/command.h                     |   2 +-
 parted/parted.c                      | 125 ++++++++++++++++++++++++++-
 parted/ui.c                          |   3 +-
 tests/Makefile.am                    |   2 +
 tests/t0920-uuid-gpt.sh              |  90 +++++++++++++++++++
 tests/t0921-uuid-gpt-reproducible.sh |  44 ++++++++++
 12 files changed, 392 insertions(+), 4 deletions(-)
 create mode 100755 tests/t0920-uuid-gpt.sh
 create mode 100755 tests/t0921-uuid-gpt-reproducible.sh

-- 
Arvin Schnell, <aschnell at suse.com>
Senior Software Engineer, Research & Development

SUSE Software Solutions Germany GmbH
Frankenstr. 146
90461 Nürnberg
Germany

Geschäftsführer: Stefan Gaiser, Jochen Jaser, Abhinav Puri
(HRB 36809, AG Nürnberg)



More information about the parted-devel mailing list