Ignore:
Timestamp:
Oct 23, 2008, 2:55:59 PM (15 years ago)
Author:
Bruno Cornec
Message:

Adds support for dm devices in truncate_to_drive_name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/common/libmondo-string.c

    r1687 r2052  
    862862        return partition;
    863863    }
     864    /* then see if it's a dm style device */
     865    if (c && strncmp(c, "/dm-", 5) == 0) {
     866        /* yup it's dm, return the full path */
     867        return partition;
     868    }
    864869
    865870    for (i = strlen(partition); isdigit(partition[i - 1]); i--)
Note: See TracChangeset for help on using the changeset viewer.