Ignore:
Timestamp:
Oct 23, 2008, 2:55:59 PM (12 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-mountlist.c

    r1909 r2052  
    1 /* libmondo-mountlist.c                            subroutines for handling mountlist
     1/* subroutines for handling mountlist
    22   $Id$
    3 
    4 
    5 
    6 08/01
    7 - when evaluating mountlist, skip drive entirely if it does not exist
    8 
    9 07/14
    10 - always exclude /devpts, /proc, /sys from mountlist
    11    
    12 06/29/2004
    13 - changed some char[] to *char
    14 - drivelist is struct now, not char[][]
    15 
    16 10/19/2003
    17 - format_device() --- contract /dev/md/N to /dev/mdN to
    18   overcome devfs problems
    19 
    20 06/11
    21 - added support for 5th column in mountlist.txt, for labels
    22 
    23 05/08
    24 - added save_mountlist_to_disk() and load_mountlist()
    25   and misc other funcs from mondorestore.c
    26 
    27 05/05
    28 - added Joshua Oreman's FreeBSD patches
    29 
    30 04/24
    31 - added some assert()'s
    32 
    33 04/23
    34 - cleaned up evaluate_drive_within_mountlist() a bit
    35 
    36 01/15/2003
    37 - added code for LVM (Brian Borgeson)
    38 
    39 10/19/2002
    40 - added some comments
    41 
    42 07/24/2002
    43 - created
    443*/
    454
     
    786745        }
    787746
    788 /*
    789       for (i = strlen (drive); isdigit (drive[i - 1]); i--);
    790       drive[i] = '\0';
    791       if (get_phys_size_of_drive (drive) <= 0 && drive[i - 1] == 'p')
    792     {
    793       i--;
    794       drive[i] = '\0';
    795     }
    796       for (j = 0; j < noof_drives && strcmp (drivelist[j], drive) != 0; j++);
    797 */
    798 
    799747        sprintf(tmp,
    800748                "Putting %s with size %lli in list of drives",
Note: See TracChangeset for help on using the changeset viewer.