c6a1bfceda
- tests: Set optimal blocks to 64 for scsi_debug devices (bcl) - tests: t3310-flags.sh: Add tests for remaining table types (mike.fleetwood) - tests: t3310-flags.sh: Add test for dvh table flags (mike.fleetwood) - tests: t3310-flags.sh: Add test for mac table flags (mike.fleetwood) - libparted: Remove commented local variable from bsd_partition_set_flag() (mike.fleetwood) - libparted: Fix to report success when setting lvm flag on bsd table (mike.fleetwood) - tests: t3310-flags.sh: Add test for bsd table flags (mike.fleetwood) - tests: t3310-flags.sh: Stop excluding certain flags from being tested (mike.fleetwood) - tests: t3310-flags.sh: Query libparted for all flags to be tested (mike.fleetwood) - libparted: only IEC units are treated as exact (petr.uzel) - docs: Improve partition description in parted.texi (gareth.randall) - Add support for NVMe devices (petr.uzel) - libparted/dasd: correct the offset where the first partition begins (dongdwdw)
34 lines
990 B
Diff
34 lines
990 B
Diff
From fa15f7d65ad76872f9019f34dd2a1db0f678b0f9 Mon Sep 17 00:00:00 2001
|
|
From: Mike Fleetwood <mike.fleetwood@googlemail.com>
|
|
Date: Sat, 1 Oct 2016 16:40:19 +0100
|
|
Subject: [PATCH 48/53] libparted: Fix to report success when setting lvm flag
|
|
on bsd table
|
|
|
|
bsd_partition_set_flag() was falling through in the lvm flag case and
|
|
returning failure. Fix this by adding missing return 1 (success) like
|
|
for the other flags.
|
|
|
|
Found as a result of this bug reported by Timo Riikonen:
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=769831
|
|
|
|
Signed-off-by: Brian C. Lane <bcl@redhat.com>
|
|
---
|
|
libparted/labels/bsd.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/libparted/labels/bsd.c b/libparted/labels/bsd.c
|
|
index a8525a4..23daea8 100644
|
|
--- a/libparted/labels/bsd.c
|
|
+++ b/libparted/labels/bsd.c
|
|
@@ -488,6 +488,7 @@ bsd_partition_set_flag (PedPartition* part, PedPartitionFlag flag, int state)
|
|
bsd_data->raid = 0;
|
|
}
|
|
bsd_data->lvm = state;
|
|
+ return 1;
|
|
default:
|
|
;
|
|
}
|
|
--
|
|
2.7.4
|
|
|