Changeset 3753 in MondoRescue for branches/3.3/mondo/src/common


Ignore:
Timestamp:
Nov 30, 2019, 1:45:07 AM (4 years ago)
Author:
Bruno Cornec
Message:

Remove floppy support

Location:
branches/3.3/mondo/src/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/common/libmondo-filelist.c

    r3728 r3753  
    15671567        mr_free(tmp1);
    15681568
    1569         mr_asprintf(exclude_paths, MONDO_CACHE"|%s|%s|%s|.|..|"MNT_CDROM"|"MNT_FLOPPY"|/media|/tmp|/selinux|/proc|/sys|/run|/dev/shm|"MINDI_CACHE, tmp2, (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
     1569        mr_asprintf(exclude_paths, MONDO_CACHE"|%s|%s|%s|.|..|"MNT_CDROM"|/media|/tmp|/selinux|/proc|/sys|/run|/dev/shm|"MINDI_CACHE, tmp2, (tmpdir[0] == '/' && tmpdir[1] == '/') ? (tmpdir + 1) : tmpdir, (scratchdir[0] == '/' && scratchdir[1] == '/') ? (scratchdir + 1) : scratchdir);
    15701570        if (excp != NULL) {
    15711571            mr_strcat(exclude_paths,"|%s",excp);
  • branches/3.3/mondo/src/common/libmondo-tools.c

    r3665 r3753  
    4444 */
    4545bool g_remount_cdrom_at_end,    ///< TRUE if we unmounted the CD-ROM and should remount it when done with the backup.
    46  g_remount_floppy_at_end;       ///< TRUE if we unmounted the floppy and should remount it when done with the backup.
    4746bool g_cd_recovery = FALSE;             ///< TRUE if we're making an "autonuke" backup.
    4847double g_kernel_version;
     
    11001099        run_program_and_log_output("mount " MNT_CDROM, FALSE);
    11011100    }
    1102     if (g_remount_floppy_at_end) {
    1103         run_program_and_log_output("mount " MNT_FLOPPY, FALSE);
    1104     }
    11051101}
    11061102
     
    11141110        g_remount_cdrom_at_end = TRUE;
    11151111        run_program_and_log_output("umount " MNT_CDROM, FALSE);
    1116     }
    1117     if (run_program_and_log_output
    1118         ("mount | grep floppy | grep super", FALSE) == 0) {
    1119         g_remount_floppy_at_end = TRUE;
    1120         run_program_and_log_output("umount " MNT_FLOPPY, FALSE);
    11211112    }
    11221113}
Note: See TracChangeset for help on using the changeset viewer.