Changeset 2462 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-files.c
- Timestamp:
- Oct 20, 2009, 4:07:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-files.c
r2406 r2462 705 705 706 706 /** 707 * Determine the size (in KB) of @p dev in the mountlist in <tt>tmpdir</tt>/mountlist.txt.707 * Determine the size (in KB) of @p dev in the mountlist in mountlist.txt. 708 708 * @param tmpdir The tempdir where the mountlist is stored. 709 709 * @param dev The device to search for. … … 717 717 long file_len_K; 718 718 719 mr_asprintf(mountlist, "%s/mountlist.txt", tmpdir);720 mr_asprintf(command, "grep \"%s \" %s/mountlist.txt | head -n1 | awk '{print $4}'", dev, tmpdir);719 mr_asprintf(mountlist, "%s/mountlist.txt", MINDI_CACHE); 720 mr_asprintf(command, "grep \"%s \" %s/mountlist.txt | head -n1 | awk '{print $4}'", dev, MINDI_CACHE); 721 721 mr_free(mountlist); 722 722 … … 992 992 * Copy the files that Mondo/Mindi need to run to the scratchdir or tempdir. 993 993 * Currently this includes: copy Mondo's home directory to scratchdir, 994 * copy LAST-FILELIST-NUMBER to scratchdir, copypost-nuke.tgz (if it exists) to tmpdir,994 * copy post-nuke.tgz (if it exists) to tmpdir, 995 995 * and run "hostname > scratchdir/HOSTNAME". 996 996 * @param bkpinfo The backup information structure. Fields used: … … 1020 1020 if (res) { 1021 1021 fatal_error("Failed to copy Mondo's stuff to scratchdir"); 1022 }1023 1024 mr_asprintf(command, "cp -f %s/LAST-FILELIST-NUMBER %s", bkpinfo->tmpdir, bkpinfo->scratchdir);1025 res = run_program_and_log_output(command, FALSE);1026 mr_free(command);1027 1028 if (res) {1029 fatal_error("Failed to copy LAST-FILELIST-NUMBER to scratchdir");1030 1022 } 1031 1023
Note:
See TracChangeset
for help on using the changeset viewer.