Ignore:
Timestamp:
Aug 28, 2015, 2:34:47 AM (4 years ago)
Author:
Bruno Cornec
Message:
  • Change analyze-my-lvm in order to generate percentage of Extents of a VG to use to create the LV instead of a fixed size. Should improve bugs when creating LVM on a disk of different size greatly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-devices.c

    r3431 r3432  
    10911091
    10921092    if (device_raw[0] != '/' && !strstr(device_raw, ":/")) {
    1093         log_msg(1, "%s needs to have a '/' prefixed - I'll do it",
    1094                 device_raw);
     1093        log_msg(1, "%s needs to have a '/' prefixed - I'll do it", device_raw);
    10951094        mr_asprintf(tmp, "/%s", device_raw);
    10961095    } else {
     
    10991098    log_msg(1, "Is %s mounted?", tmp);
    11001099    if (!strcmp(tmp, "/proc") || !strcmp(tmp, "proc")) {
    1101         log_msg(1,
    1102                 "I don't know how the heck /proc made it into the mountlist. I'll ignore it.");
     1100        log_msg(1, "I don't know how the heck /proc made it into the mountlist. I'll ignore it.");
    11031101        mr_free(tmp);
    11041102        return(FALSE);
     
    11241122    mr_free(device_with_tab);
    11251123    paranoid_pclose(fin);
     1124
    11261125    mr_asprintf(tmp, "%s | grep -E \"^%s\" > /dev/null 2> /dev/null", SWAPLIST_COMMAND, device_with_space);
    11271126    mr_free(device_with_space);
Note: See TracChangeset for help on using the changeset viewer.