Changeset 2878 in MondoRescue for branches/2.2.9/mondo/src/common
- Timestamp:
- Oct 5, 2011, 1:20:58 AM (13 years ago)
- Location:
- branches/2.2.9/mondo/src/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-devices.c
r2866 r2878 1521 1521 1522 1522 /* 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); 1524 1524 log_msg(3, "Mounting next media %d",cd_number_i_want); 1525 1525 g_current_media_number = cd_number_i_want; … … 1535 1535 if (is_this_device_mounted(MNT_CDROM)) { 1536 1536 res = 1537 run_program_and_log_output("umount " MNT_CDROM, FALSE);1537 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 1538 1538 } else { 1539 1539 res = 0; -
branches/2.2.9/mondo/src/common/libmondo-verify.c
r2380 r2878 1026 1026 verify_all_slices_on_CD(mountpoint); 1027 1027 1028 mr_asprintf(&tmp1, "umount %s", mountpoint);1028 mr_asprintf(&tmp1, "umount -d %s", mountpoint); 1029 1029 #ifdef __FreeBSD__ 1030 1030 ret += system(tmp1); … … 1150 1150 #ifdef __FreeBSD__ 1151 1151 ret = 0; 1152 sprintf(command, "umount %s", mountpoint);1152 sprintf(command, "umount -d %s", mountpoint); 1153 1153 ret += system(command); 1154 1154 ret += kick_vn(mddevice); 1155 1155 if (ret) 1156 1156 #else 1157 sprintf(command, "umount %s", mountpoint);1157 sprintf(command, "umount -d %s", mountpoint); 1158 1158 if (system(command)) 1159 1159 #endif … … 1166 1166 } 1167 1167 if (!does_file_exist(fname)) { 1168 sprintf(command, "umount %s", bkpinfo->media_device);1168 sprintf(command, "umount -d %s", bkpinfo->media_device); 1169 1169 run_program_and_log_output(command, 2); 1170 1170 if (!bkpinfo->please_dont_eject -
branches/2.2.9/mondo/src/common/newt-specific.c
r2771 r2878 349 349 chdir("/"); 350 350 if (g_selfmounted_isodir) { 351 sprintf(command, "umount %s", g_selfmounted_isodir);351 sprintf(command, "umount -d %s", g_selfmounted_isodir); 352 352 run_program_and_log_output(command, 5); 353 353 sprintf(command, "rmdir %s", g_selfmounted_isodir); … … 406 406 407 407 chdir("/"); 408 run_program_and_log_output("umount " MNT_CDROM, FALSE);408 run_program_and_log_output("umount -d " MNT_CDROM, FALSE); 409 409 if (g_selfmounted_isodir) { 410 mr_asprintf(&command, "umount %s", g_selfmounted_isodir);410 mr_asprintf(&command, "umount -d %s", g_selfmounted_isodir); 411 411 run_program_and_log_output(command, 1); 412 412 paranoid_free(command);
Note:
See TracChangeset
for help on using the changeset viewer.