Changeset 1967 in MondoRescue for branches/2.2.6/mondo/src/mondorestore/mondorestore.c
- Timestamp:
- May 29, 2008, 5:40:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/mondorestore/mondorestore.c
r1966 r1967 3160 3160 finish(res); 3161 3161 } 3162 3162 3163 3163 if ((argc > 1 && strcmp(argv[argc - 1], "--live-from-cd") == 0) && (!bkpinfo->disaster_recovery)) { 3164 3164 g_restoring_live_from_cd = TRUE; … … 3205 3205 3206 3206 // BCO:To be reviewed 3207 if (argc > 1 3208 && (strcmp(argv[1], "--compare") == 0 3209 || strcmp(argv[1], "--nuke") == 0)) { 3207 if ((bkpinfo->restore_mode == compare) || (bkpinfo->restore_mode == nuke)) { 3210 3208 if (bkpinfo->backup_media_type == nfs 3211 3209 && !is_this_device_mounted(bkpinfo->nfs_mount)) { … … 3227 3225 3228 3226 3229 if ( argc == 2 && strcmp(argv[1], "--nuke") == 0) {3227 if (bkpinfo->restore_mode == nuke) { 3230 3228 iamhere("nuking"); 3231 3229 retval += nuke_mode(mountlist, raidlist); 3232 } else if ( argc == 2 && strcmp(argv[1], "--interactive") == 0) {3230 } else if (bkpinfo->restore_mode == interactive) { 3233 3231 iamhere("catchall"); 3234 3232 retval += catchall_mode(mountlist, raidlist); 3235 } else if ( argc == 2 && strcmp(argv[1], "--compare") == 0) {3233 } else if (bkpinfo->restore_mode == compare) { 3236 3234 iamhere("compare"); 3237 3235 retval += compare_mode(mountlist, raidlist); 3238 } else if ( argc == 2 && strcmp(argv[1], "--iso") == 0) {3236 } else if (bkpinfo->restore_mode == isoonly) { 3239 3237 iamhere("iso"); 3240 3238 retval = iso_mode(mountlist, raidlist, FALSE); 3241 } else if ( argc == 2 && strcmp(argv[1], "--mbr") == 0) {3239 } else if (bkpinfo->restore_mode == mbr) { 3242 3240 iamhere("mbr"); 3243 3241 retval = mount_all_devices(mountlist, TRUE); … … 3249 3247 log_to_screen("Failed to write Master Boot Record"); 3250 3248 } 3251 } else if ( argc == 2 && strcmp(argv[1], "--isonuke") == 0) {3249 } else if (bkpinfo->restore_mode == isonuke) { 3252 3250 iamhere("isonuke"); 3253 3251 retval = iso_mode(mountlist, raidlist, TRUE); 3254 } else if (argc != 1) {3255 log_to_screen("Invalid paremeters");3256 paranoid_MR_finish(1);3257 3252 } else { 3258 3253 iamhere("catchall (no mode specified in command-line call");
Note:
See TracChangeset
for help on using the changeset viewer.