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

Jim Meyering meyering at alioth.debian.org
Fri Jan 29 09:41:28 UTC 2010


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

New commits:
commit 222ebd75668c2a08349df81e0794fbb52cdf8c9d
Author: Hans de Goede <hdegoede at redhat.com>
Date:   Mon Jan 11 11:59:27 2010 +0100

    linux: remove PED_DEVICE_FILE check from _device_set_sector_size
    
    _device_set_sector_size is never called for devices with a type of
    PED_DEVICE_FILE.
    * libparted/arch/linux.c (_device_set_sector_size): Remove
    PED_DEVICE_FILE check.

diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index b14c9ca..f3b54f0 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -674,8 +674,7 @@ _device_set_sector_size (PedDevice* dev)
 
 #if defined __s390__ || defined __s390x__
         /* Return PED_SECTOR_SIZE_DEFAULT for DASDs. */
-        if (dev->type == PED_DEVICE_DASD
-            || dev->type == PED_DEVICE_FILE) {
+        if (dev->type == PED_DEVICE_DASD) {
                 arch_specific->real_sector_size = dev->sector_size;
                 dev->sector_size = PED_SECTOR_SIZE_DEFAULT;
         }



More information about the Parted-commits mailing list