[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Jim Meyering meyering at alioth.debian.org
Mon May 10 11:10:50 UTC 2010


 libparted/arch/linux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2e842e056c618f5a71e1fa8cf135f2ad0248f069
Author: Jim Meyering <meyering at redhat.com>
Date:   Mon May 10 13:00:20 2010 +0200

    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.

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, "



More information about the Parted-commits mailing list