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/common/libmondo-devices.c

    r2866 r2878  
    15211521
    15221522        /* Now we need to umount the current media to have the next mounted after */
    1523         run_program_and_log_output("umount " MNT_CDROM, FALSE);
     1523        run_program_and_log_output("umount -d " MNT_CDROM, FALSE);
    15241524        log_msg(3, "Mounting next media %d",cd_number_i_want);
    15251525        g_current_media_number = cd_number_i_want;
     
    15351535            if (is_this_device_mounted(MNT_CDROM)) {
    15361536                res =
    1537                     run_program_and_log_output("umount " MNT_CDROM, FALSE);
     1537                    run_program_and_log_output("umount -d " MNT_CDROM, FALSE);
    15381538            } else {
    15391539                res = 0;
Note: See TracChangeset for help on using the changeset viewer.