Changeset 2990 in MondoRescue for branches/3.0/mondo/test/test-mountlist.c
- Timestamp:
- Apr 5, 2012, 12:55:31 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mondo/test/test-mountlist.c
r2394 r2990 3 3 * 4 4 * Test program for mountlist management at restore time 5 * C n be used on host system with valgrind easier than with mondorestore5 * Can be used on host system with valgrind easier than with mondorestore 6 6 */ 7 7 #include <stdio.h> … … 12 12 #include "../mondorestore/mondorestore.h" 13 13 #include "../mondorestore/mr-externs.h" 14 15 #define RAIDTAB_TEST "/tmp/raidtab" 16 #define MOUNTLIST_TEST "/tmp/mountlist.txt" 14 17 15 18 extern void twenty_seconds_til_yikes(void); … … 68 71 69 72 setup_newt_stuff(); 70 mr_asprintf(&g_mountlist_fname, "/tmp/mountlist.txt");73 mr_asprintf(&g_mountlist_fname, MOUNTLIST_TEST); 71 74 log_it("before mountlist"); 72 75 load_mountlist(mountlist, g_mountlist_fname); … … 74 77 resize_mountlist_proportionately_to_suit_new_drives(mountlist); 75 78 log_it("after resize_mountlist_proportionately_to_suit_new_drives"); 76 load_raidtab_into_raidlist(raidlist, RAIDTAB_ FNAME);79 load_raidtab_into_raidlist(raidlist, RAIDTAB_TEST); 77 80 log_it("after load_raidtab_into_raidlist"); 78 81 edit_mountlist(g_mountlist_fname, mountlist, raidlist); … … 83 86 mr_free(flaws_str); 84 87 88 log_it("before check raidlist content"); 89 log_it("after check raidlist content"); 90 91 log_it("before create mdadm dev"); 92 create_raid_device_via_mdadm(raidlist,"/dev/md0",FALSE); 93 log_it("after create mdadm dev"); 94 85 95 mr_free(MONDO_LOGFILE); 86 96 exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.