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-verify.c

    r2380 r2878  
    10261026    verify_all_slices_on_CD(mountpoint);
    10271027
    1028     mr_asprintf(&tmp1, "umount %s", mountpoint);
     1028    mr_asprintf(&tmp1, "umount -d %s", mountpoint);
    10291029#ifdef __FreeBSD__
    10301030    ret += system(tmp1);
     
    11501150#ifdef __FreeBSD__
    11511151    ret = 0;
    1152     sprintf(command, "umount %s", mountpoint);
     1152    sprintf(command, "umount -d %s", mountpoint);
    11531153    ret += system(command);
    11541154    ret += kick_vn(mddevice);
    11551155    if (ret)
    11561156#else
    1157     sprintf(command, "umount %s", mountpoint);
     1157    sprintf(command, "umount -d %s", mountpoint);
    11581158    if (system(command))
    11591159#endif
     
    11661166    }
    11671167    if (!does_file_exist(fname)) {
    1168         sprintf(command, "umount %s", bkpinfo->media_device);
     1168        sprintf(command, "umount -d %s", bkpinfo->media_device);
    11691169        run_program_and_log_output(command, 2);
    11701170        if (!bkpinfo->please_dont_eject
Note: See TracChangeset for help on using the changeset viewer.