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

Jim Meyering meyering at alioth.debian.org
Wed Aug 1 07:45:49 UTC 2007


 libparted/device.c |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 3769f0a1775773bbb9074492b72bc81b1ed33c7e
Author: Jim Meyering <jim at meyering.net>
Date:   Wed Aug 1 09:44:56 2007 +0200

    Revert "If we cannot create a new PedDisk for the device we're looking at, return NULL rather than the device path."
    The reverted change causes almost all tests to fail.
    
    This reverts commit a6f86144c0b5fd07c462e256bc7b54095c7b8e7a.

diff --git a/libparted/device.c b/libparted/device.c
index 6cee5aa..cbf5a38 100644
--- a/libparted/device.c
+++ b/libparted/device.c
@@ -189,10 +189,6 @@ ped_device_get (const char* path)
 	ped_free (normal_path);
 	if (!walk)
 		return NULL;
-
-	if (!ped_disk_new (walk))
-		return NULL;
-
 	_device_register (walk);
 	return walk;
 }



More information about the Parted-commits mailing list