953543a358
- parted: Reset the filesystem type when changing the id/uuid (bcl) - libparted: add swap flag for DASD label (aschnell) - parted: add type command (aschnell) - maint: post-release administrivia (bcl)
31 lines
904 B
Diff
31 lines
904 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 4/5] 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.35.3
|
|
|