Ignore:
Timestamp:
Oct 5, 2011, 1:20:58 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Uses the -d option of the mount command to avoid leaving loop devices in use. Probably provoked by the usage of a more recent busybox, but anyway that option doesn't hurt, and does nothing for non-loop devices. Should fix the problems reported on the ML with NFS and more than 8 ISO images (8 being the default number of loop devices available)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/mondorestore/mondo-rstr-tools.c

    r2847 r2878  
    304304    return (1);
    305305}
    306 paranoid_system("umount " MNT_CDROM " 2> /dev/null");   /* just in case */
     306paranoid_system("umount -d " MNT_CDROM " 2> /dev/null");    /* just in case */
    307307
    308308if (is_this_device_mounted(g_isodir_device)) {
     
    681681        if (does_file_exist(MNT_CDROM "/archives/filelist.0")) {
    682682            bkpinfo->backup_media_type = cdr;
    683             run_program_and_log_output("umount " MNT_CDROM, 1);
     683            run_program_and_log_output("umount -d " MNT_CDROM, 1);
    684684            log_it
    685685                ("Re-jigging configuration AGAIN. CD-R, not ISO.");
     
    22542254        }
    22552255    }
    2256     run_program_and_log_output("umount " MNT_CDROM, FALSE);
     2256    run_program_and_log_output("umount -d " MNT_CDROM, FALSE);
    22572257    if (!does_file_exist(cfg_file)) {
    22582258        log_it("%s",cfg_file);
Note: See TracChangeset for help on using the changeset viewer.