[git commit] fdisk_sun: fix corrupted partition data with blank disk

Denys Vlasenko vda.linux at googlemail.com
Sun Feb 10 23:22:48 UTC 2013

commit: http://git.busybox.net/busybox/commit/?id=1bd5ca2f530f11e27a1ae13bba592d9f725ce341
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

After creating Sun disk label for the first time for a blank disk,
the partition table appears corrupted because current_label_type will
never get set to a proper type. Fix this by calling check_sun_label()
after BusyBox has created the label.

Signed-off-by: Aaro Koskinen <aaro.koskinen at iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
 util-linux/fdisk_sun.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c
index e7fcc06..d11c540 100644
--- a/util-linux/fdisk_sun.c
+++ b/util-linux/fdisk_sun.c
@@ -348,6 +348,7 @@ create_sunlabel(void)
+	check_sun_label();

More information about the busybox-cvs mailing list