From 2e842e056c618f5a71e1fa8cf135f2ad0248f069 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 10 May 2010 13:00:20 +0200 Subject: [PATCH] libparted: fail (don't just warn) upon failure to inform kernel of... partition change(s). * libparted/arch/linux.c (_disk_sync_part_table): Throw an error, not merely a warning. When this fails, it indicates that the kernel has not been informed, and that must translate to an error, since doing otherwise would violate the contract of ped_disk_commit_to_os. Suggested by Hans De Goede. --- libparted/arch/linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c index 73a8e6f..38f4e31 100644 --- a/libparted/arch/linux.c +++ b/libparted/arch/linux.c @@ -2550,7 +2550,7 @@ _disk_sync_part_table (PedDisk* disk) else { bad_part_list[strlen (bad_part_list) - 2] = 0; if (ped_exception_throw ( - PED_EXCEPTION_WARNING, + PED_EXCEPTION_ERROR, PED_EXCEPTION_IGNORE_CANCEL, _("Partition(s) %s on %s have been written, but we have " "been unable to inform the kernel of the change, " -- 2.11.0