Changeset 162


Ignore:
Timestamp:
Dec 8, 2005, 11:43:46 AM (13 years ago)
Author:
andree
Message:

Avoid overwriting the already correctly determined disk size by moving
the relevant code inside the if clause that checks the validity of the
previously calculated disk size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/libmondo-devices.c

    r147 r162  
    950950    if (outvalB <= 0) {
    951951        log_msg(1, "Error getting size of %s: %s", drive, strerror(errno));
    952     }
    953952#if linux
    954953    fileid = open(drive, O_RDONLY);
     
    979978    }
    980979#endif
    981 
     980    }
    982981// OLDER DISKS will give ridiculously low value for outvalB (so outvalA is returned) :)
    983982// NEWER DISKS will give sane value for outvalB (close to outvalA, in other words) :)
Note: See TracChangeset for help on using the changeset viewer.