mondo  3.3.0
About: Mondo (like Mindi part of MondoRescue, a disaster recovery suite for Linux/FreeBSD) is responsible for carrying out the actual backups and and restores
  Fossies Dox: mondo-3.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Verification Functions

Functions for verifying data while booted from the hard drive (as opposed to a "compare", which is done while booted from CD/Tape). More...

Collaboration diagram for Verification Functions:

Modules

 Low-Level Verification Functions
 

Functions

int verify_data ()
 Verify the user's data. More...
 
int verify_usb_image ()
 Verify the USB device. More...
 
int verify_cd_image ()
 Verify the CD indicated by g_current_media_number. More...
 
int verify_tape_backups ()
 Verify all backups on tape. More...
 

Detailed Description

Functions for verifying data while booted from the hard drive (as opposed to a "compare", which is done while booted from CD/Tape).

Function Documentation

◆ verify_cd_image()

int verify_cd_image ( )

Verify the CD indicated by g_current_media_number.

Locals.

Parameters
bkpinfoThe backup information structure. Fields used:
  • bkpinfo->isodir
  • bkpinfo->prefix
  • bkpinfo->manual_cd_tray
  • bkpinfo->media_device
  • bkpinfo->netfs_remote_dir
  • bkpinfo->tmpdir
  • bkpinfo->verify_data
Returns
0 for success (even if differences are found), nonzero for failure.

Definition at line 1005 of file libmondo-verify.c.

References assert, bkpinfo, does_file_exist(), eject_device(), FALSE, fatal_error(), find_and_mount_actual_cd(), g_current_media_number, s_bkpinfo::isodir, kick_vn(), log_it, log_msg, log_to_screen(), make_vn(), s_bkpinfo::manual_cd_tray, s_bkpinfo::media_device, mr_asprintf, mr_free, s_bkpinfo::netfs_remote_dir, s_bkpinfo::please_dont_eject, popup_and_OK(), s_bkpinfo::prefix, run_program_and_log_output(), s_bkpinfo::tmpdir, verify_afioballs_on_CD(), verify_all_slices_on_CD(), and s_bkpinfo::verify_data.

Referenced by verify_data(), and write_iso_and_go_on().

◆ verify_data()

◆ verify_tape_backups()

int verify_tape_backups ( )

Verify all backups on tape.

This should be done after the backup process has already closed the tape.

Parameters
bkpinfoThe backup information structure. Passed to various helper functions.
Returns
0 for success (even if thee were differences), nonzero for failure.

Definition at line 1139 of file libmondo-verify.c.

References assert, bkpinfo, closein_tape(), count_lines_in_file(), diffs, does_file_exist(), FALSE, length_of_file(), log_msg, log_to_screen(), MONDO_CACHE, MONDO_LOGFILE, mr_asprintf, mr_free, openin_tape(), paranoid_system, run_program_and_log_output(), s_bkpinfo::tmpdir, s_bkpinfo::use_star, verify_afioballs_from_stream(), and verify_biggiefiles_from_stream().

Referenced by compare_to_cdstream(), compare_to_tape(), and verify_data().

◆ verify_usb_image()

int verify_usb_image ( )

Verify the USB device.

Parameters
bkpinfoThe backup information structure. Fields used:
  • bkpinfo->media_device
  • bkpinfo->tmpdir
  • bkpinfo->verify_data
Returns
0 for success (even if differences are found), nonzero for failure.

Definition at line 903 of file libmondo-verify.c.

References assert, bkpinfo, does_file_exist(), FALSE, is_this_device_mounted(), kick_vn(), log_it, log_msg, log_to_screen(), s_bkpinfo::media_device, mr_asprintf, mr_free, paranoid_free, run_program_and_log_output(), s_bkpinfo::tmpdir, verify_afioballs_on_CD(), verify_all_slices_on_CD(), and s_bkpinfo::verify_data.

Referenced by write_iso_and_go_on().