Changeset 2087 in MondoRescue for branches/2.2.8/mondo/src


Ignore:
Timestamp:
Dec 14, 2008, 3:50:37 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Adds ext4 support
Location:
branches/2.2.8/mondo/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mondo/src/include/my-stuff.h

    r2030 r2087  
    322322#define DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE  "/dev/md"
    323323#define RAID_DEVICE_STUB    DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE
    324 #define SANE_FORMATS        "swap image vfat ext2 ext3 xfs vfs jfs reiserfs vmfs dos minix coda nfs ntfs hpfs raid lvm cifs ocfs ocfs2"
     324#define SANE_FORMATS        "swap image vfat ext2 ext3 ext4 xfs vfs jfs reiserfs vmfs dos minix coda nfs ntfs hpfs raid lvm cifs ocfs ocfs2"
    325325#define ALT_TAPE        "/dev/ht0"
    326326#define MKE2FS_OR_NEWFS "mke2fs"
  • branches/2.2.8/mondo/src/mondorestore/mondo-prep.c

    r2052 r2087  
    20702070               || strcmp(format, "reiserfs") == 0
    20712071               || strcmp(format, "ext3") == 0
     2072               || strcmp(format, "ext4") == 0
    20722073               || strcmp(format, "xfs") == 0
    20732074               || strcmp(format, "jfs") == 0) {
     
    23972398    } else if (strcmp(format, "ext3") == 0) {
    23982399        strcpy(program, "mkfs -t ext3 -F -q");
     2400    } else if (strcmp(format, "ext4") == 0) {
     2401        strcpy(program, "mkfs -t ext4 -F -q");
    23992402    } else if (strcmp(format, "minix") == 0) {
    24002403        strcpy(program, "mkfs.minix");
  • branches/2.2.8/mondo/src/mondorestore/mondo-rstr-tools.c

    r2049 r2087  
    535535            update_progress_form(tmp);
    536536            strcpy(format, mountlist->el[lino].format);
    537             /* BERLIOS: removed as it doen't make sens to not mount ext3 partitions as ext3
    538             if (!strcmp(format, "ext3")) {
    539                 strcpy(format, "ext2");
    540             }
    541             */
    542537            res = mount_device(mountlist->el[lino].device,
    543538                       mountlist->el[lino].mountpoint,
  • branches/2.2.8/mondo/src/mondorestore/mondorestore.c

    r2079 r2087  
    644644    /*  if (restore_some || restore_all || */
    645645    if (ask_me_yes_or_no
    646         ("Label/Identify your ext2 and ext3 partitions if necessary?")) {
     646        ("Label/Identify your ext2/ext3/ext4 partitions if necessary?")) {
    647647        mvaddstr_and_log_it(g_currentY, 0,
    648                             "Using tune2fs to identify your ext2,3 partitions");
     648                            "Using tune2fs to identify your ext2,3,4 partitions");
    649649        if (does_file_exist("/tmp/fstab.new")) {
    650650            strcpy(fstab_fname, "/tmp/fstab.new");
  • branches/2.2.8/mondo/src/restore-scripts/mondo/hack-fstab

    r1755 r2087  
    2222    label=`echo "$incoming"      | cut -d' ' -f5`
    2323    original_fstab_line=`grep " $mountpoint " $old_fstab | grep -v "#" | tr -s ' ' ' '`
    24     if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
     24    if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] || [ "$format" = "ext4" ]; then
    2525        if [ "`echo "$original_fstab_line" | grep "LABEL="`" != "" ] ; then
    2626            device="LABEL=$label"
  • branches/2.2.8/mondo/src/restore-scripts/mondo/label-partitions-as-necessary

    r2066 r2087  
    2727        LogIt "Not labeling ($mountpt) as anything because ($label) is not a label"
    2828    else
    29         if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then
     29        if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] || [ "$format" = "ext4" ]; then
    3030            command="tune2fs $opttun $label $mountpt"
    3131            LogIt "Running $command"
Note: See TracChangeset for help on using the changeset viewer.