Changeset 1924 in MondoRescue for branches/stable/mondo/src/common
- Timestamp:
- Apr 18, 2008, 1:41:41 AM (17 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 6 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/Makefile.am
r1056 r1924 13 13 libmondo-mountlist.c libmondo-raid.c \ 14 14 libmondo-stream.c libmondo-string.c libmondo-tools.c \ 15 libmondo-verify.c newt-specific.c \15 libmondo-verify.c newt-specific.c libmondo-cli.c \ 16 16 libmondo-archive.h libmondo-devices.h \ 17 17 libmondo-filelist.h libmondo-files.h libmondo-fork.h \ 18 18 libmondo-gui.h libmondo-mountlist.h libmondo-raid.h \ 19 19 libmondo-stream.h libmondo-string.h libmondo-tools.h \ 20 libmondo-verify.h libmondo-fifo.h \20 libmondo-verify.h libmondo-fifo.h libmondo-cli.h \ 21 21 libmondo-archive-EXT.h my-stuff.h mondostructures.h \ 22 22 libmondo-devices-EXT.h libmondo-fifo-EXT.h \ … … 25 25 libmondo-mountlist-EXT.h libmondo-raid-EXT.h \ 26 26 libmondo-string-EXT.h libmondo-tools-EXT.h \ 27 libmondo-verify-EXT.h libmondo-stream-EXT.h \27 libmondo-verify-EXT.h libmondo-stream-EXT.h libmondo-cli-EXT.h \ 28 28 newt-specific.h -
branches/stable/mondo/src/common/libmondo-devices.c
r1903 r1924 61 61 */ 62 62 bool g_restoring_live_from_cd = FALSE; 63 bool g_restoring_live_from_nfs = FALSE; 63 64 64 65 extern t_bkptype g_backup_media_type; // set by main() … … 1852 1853 } 1853 1854 } else { 1854 s z_size = 0;1855 strcpy(sz_size, "0"); 1855 1856 } 1856 1857 mr_free(comment); -
branches/stable/mondo/src/common/libmondo-filelist.c
r1903 r1924 1590 1590 mr_asprintf(&tmp2, call_program_and_get_last_line_of_output("mount | grep -Ew 'ntfs|fat|vfat|dos' | awk '{print $3}'")); 1591 1591 if (strlen(tmp2) < 1) { 1592 mr_asprintf(&tmp1," ");1592 mr_asprintf(&tmp1," "); 1593 1593 } else { 1594 1594 mr_msg(2, "Found windows FS: %s",tmp2); -
branches/stable/mondo/src/common/libmondo-mountlist.c
r1904 r1924 843 843 #if linux 844 844 sscanf(incoming, 845 "%s %s %s %s %s %s",845 "%s %s %s %s %s", 846 846 mountlist->el[items].device, 847 847 mountlist->el[items].mountpoint, … … 909 909 mountlist->el[items].format, 910 910 mountlist->el[items].size, 911 mountlist->el[items].label);911 mountlist->el[items].label); 912 912 items++; 913 913 } … … 948 948 for (i = 0; i < mountlist->entries; i++) { 949 949 fprintf(fout, 950 "%-15s %-15s %-15s %-15lld %-15s %-15s\n",950 "%-15s %-15s %-15s %-15lld %-15s\n", 951 951 mountlist->el[i].device, mountlist->el[i].mountpoint, 952 952 mountlist->el[i].format, mountlist->el[i].size, -
branches/stable/mondo/src/common/libmondo-stream.c
r1904 r1924 695 695 (void) getcwd(old_cwd, MAX_STR_LEN); 696 696 chdir(bkpinfo->tmpdir); 697 mr_asprintf(&tmp, "tar -zxf %s tmp/mondo-restore.cfg 2> /dev/null",697 mr_asprintf(&tmp, "tar -zxf %s ./tmp/mondo-restore.cfg 2> /dev/null", 698 698 outfname); 699 699 paranoid_system(tmp); -
branches/stable/mondo/src/common/libmondo-tools.c
r1903 r1924 21 21 #include "libmondo-fork-EXT.h" 22 22 #include "libmondo-raid-EXT.h" 23 #include "libmondo-devices-EXT.h" 23 24 #include <sys/socket.h> 24 25 #include <netdb.h> … … 78 79 79 80 extern bool am_I_in_disaster_recovery_mode(void); 81 82 /* Return a string containing the date */ 83 char *mr_date(void) { 84 85 time_t tcurr; 86 87 tcurr = time(NULL); 88 return(ctime(&tcurr)); 89 } 90 91 /*-----------------------------------------------------------*/ 80 92 81 93 … … 692 704 strcpy(bkpinfo->tmpdir,p); 693 705 paranoid_free(tmp); 694 695 //sprintf(bkpinfo->tmpdir, "%s/tmpfs/mondo.tmp.%d", "/tmp", (int) (random() % 32768)); // for mondorestore696 706 } 697 707 … … 711 721 memset((void *) bkpinfo, 0, sizeof(struct s_bkpinfo)); 712 722 713 /* special case for tmpdir as used eveywhere after */ 714 setup_tmpdir(NULL); 723 sensibly_set_tmpdir_and_scratchdir(); 715 724 716 725 bkpinfo->manual_tray = mr_conf->manual_tray; … … 764 773 bkpinfo->prefix = tmp; 765 774 766 bkpinfo->scratchdir[0] = '\0';767 775 bkpinfo->make_filelist = TRUE; // unless -J supplied to mondoarchive 768 776 bkpinfo->optimal_set_size = 0; … … 823 831 * - make sure afio, cdrecord, bzip2, awk, md5sum, strings, mindi, and buffer exist 824 832 * - make sure CD-ROM is unmounted 825 * - make sure /etc/modules.conf exists826 833 * - make sure user's mountlist is OK by running <tt>mindi --makemountlist</tt> 827 834 * … … 940 947 } 941 948 mr_free(tmp); 942 #ifndef __FreeBSD__943 if (!does_file_exist("/etc/modules.conf")) {944 if (does_file_exist("/etc/conf.modules")) {945 log_it("Linking /etc/modules.conf to /etc/conf.modules");946 run_program_and_log_output947 ("ln -sf /etc/conf.modules /etc/modules.conf", 5);948 } else if (does_file_exist("/etc/modprobe.d")) {949 log_it950 ("Directory /etc/modprobe.d found. mindi will use its contents.");951 } else if (does_file_exist("/etc/modprobe.conf")) {952 log_it("Linking /etc/modules.conf to /etc/modprobe.conf");953 run_program_and_log_output954 ("ln -sf /etc/modprobe.conf /etc/modules.conf", 5);955 } else {956 retval++;957 log_to_screen958 (_("Please find out what happened to /etc/modules.conf"));959 }960 }961 #endif962 949 963 950 run_program_and_log_output("cat /etc/fstab", 5);
Note:
See TracChangeset
for help on using the changeset viewer.