7fc0182f62
- tests: Add a libparted test for ped_partition_set_system on msdos - parted: Add display of GPT UUIDs in JSON output - Add no_automount flag support - increase xfs size to 300M
31 lines
906 B
Diff
31 lines
906 B
Diff
From 9b0a83a747b28bd1b778bdd32616e6f7ea88c84d Mon Sep 17 00:00:00 2001
|
|
From: "Brian C. Lane" <bcl@redhat.com>
|
|
Date: Fri, 13 May 2022 10:02:06 -0700
|
|
Subject: [PATCH 04/13] parted: Reset the filesystem type when changing the
|
|
id/uuid
|
|
|
|
Without this the print command keeps showing the type selected with
|
|
mkpart, which doesn't match the id/uuid set by the user. So rescan the
|
|
partition for a filesystem.
|
|
---
|
|
parted/parted.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/parted/parted.c b/parted/parted.c
|
|
index b8a4acf..96da30d 100644
|
|
--- a/parted/parted.c
|
|
+++ b/parted/parted.c
|
|
@@ -991,6 +991,9 @@ do_type (PedDevice** dev, PedDisk** diskp)
|
|
|
|
free (input);
|
|
|
|
+ // Reset the fs_type based on the filesystem, if it exists
|
|
+ part->fs_type = ped_file_system_probe (&part->geom);
|
|
+
|
|
if (!ped_disk_commit (*diskp))
|
|
goto error;
|
|
return 1;
|
|
--
|
|
2.37.3
|
|
|