Changeset 2204 in MondoRescue for branches/2.2.9/mondo/test
- Timestamp:
- May 13, 2009, 12:26:33 PM (15 years ago)
- Location:
- branches/2.2.9/mondo/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/test/Makefile.am
r2202 r2204 3 3 ## The program 4 4 sbin_PROGRAMS = mrtest_mountlist 5 mrtest_mountlist_SOURCES = test-mountlist.c 5 mrtest_mountlist_SOURCES = test-mountlist.c ${top_builddir}/src/mondorestore/mondo-prep.c ${top_builddir}/src/mondorestore/mondo-rstr-newt.c ${top_builddir}/src/mondorestore/mondo-rstr-tools.c 6 6 mrtest_mountlist_LDADD = ${top_builddir}/src/common/libmondo.a @MONDORESTORE_STATIC@ -
branches/2.2.9/mondo/test/test-mountlist.c
r2202 r2204 4 4 #include "../common/libmondo.h" 5 5 #include "../mondorestore/mondorestore.h" 6 #include "../mondorestore/mr-externs.h" 6 7 7 8 extern void twenty_seconds_til_yikes(void); … … 34 35 35 36 extern char *MONDO_LOGFILE; 36 37 void free_MR_global_filenames(void) {38 }39 40 37 extern int copy_from_src_to_dest(FILE * f_orig, FILE * f_archived, 41 38 char direction); … … 44 41 45 42 struct mountlist_itself *mountlist = NULL; 43 struct raidlist_itself *raidlist; 44 46 45 asprintf(&MONDO_LOGFILE,"/tmp/mrtest-mountlist.log"); 47 46 … … 51 50 fatal_error("Cannot malloc mountlist"); 52 51 } 52 if (!(raidlist = malloc(sizeof(struct raidlist_itself)))) { 53 fatal_error("Cannot malloc raidlist"); 54 } 53 55 malloc_libmondo_global_strings(); 54 56 … … 56 58 asprintf(&g_mountlist_fname, "/tmp/mountlist.txt"); 57 59 load_mountlist(mountlist, g_mountlist_fname); 58 finish(0); 60 resize_mountlist_proportionately_to_suit_new_drives(mountlist); 61 load_raidtab_into_raidlist(raidlist, RAIDTAB_FNAME); 62 edit_mountlist(g_mountlist_fname, mountlist, raidlist); 63 exit(0); 59 64 }
Note:
See TracChangeset
for help on using the changeset viewer.