Changeset 1075 in MondoRescue for branches/stable/mondo
- Timestamp:
- Jan 25, 2007, 4:18:59 PM (18 years ago)
- Location:
- branches/stable/mondo/src
- Files:
-
- 1 deleted
- 12 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-archive.c
r1067 r1075 3 3 4 4 subroutines to handle the archiving of files 5 6 7 8 07/149 - moved all ACL, xattr stuff here from libmondo-filelist.c10 11 07/1212 - when trying to find boot loader, look for /boot's /dev, not just /'s dev13 14 07/1015 - better detection of changed files16 - added ACL, xattr support for afio17 18 06/1719 - backup with partimagehack if NTFS device; dd, if non-NTFS device20 21 06/1422 - use mondorescue.iso instead of mindi.iso23 24 04/2825 - cleaned up if/then architecture-specific stuff re: CD-R(W)s26 27 04/0328 - added star support29 30 03/1231 - modified offer_to_write_floppies() to support dual-disk boot/root thing32 33 01/20/200434 - reformat dvd twice if necessary35 36 12/01/200337 - added pause_for_N_seconds(5, "Letting DVD drive settle");38 39 11/2340 - added #define DVDRWFORMAT41 42 11/2043 - use --no-emul-boot -b isolinux.bin instead of -b mindi-boot.2880.img44 45 10/2346 - wipe DVD at start, whether or not disk is DVD-RW; this is47 just a test, to see why dvd+rw-format followed by growiosfs48 locks up the drive49 - use the singlethreaded make_afioballs_and_images_OLD()50 instead of the multithreaded make_afioballs_and_images()51 if backing up to tape52 53 10/2154 - if backing up to dvd, look for relevant tools;55 abort if missing56 57 10/1558 - UI tweaks59 60 10/1061 - eject/inject DVD after wiping it62 63 09/2764 - pause_and_ask_for_cdr() will now blank DVD if necessary65 66 09/2667 - proper reporting of media type in displayed strings68 (i.e. DVD if DVD, CD if CD, etc.)69 70 09/2571 - add DVD support72 73 09/2374 - malloc/free global strings in new subroutines - malloc_libmondo_global_strings()75 and free_libmondo_global_strings() - which are in libmondo-tools.c76 77 09/1578 - changed a bunch of char[MAX_STR_LEN]'s to char*; malloc; free;79 80 09/1481 - cosmetic bug re: call to 'which dvdrecord'82 83 09/0984 - copy `locate isolinux.bin | tail -n1` to CD before calling mkisfso85 if file is missing (in which case, bug in Mindi.pl!)86 - reduced noof_threads from 3 to 287 - fixed cosmetic bug in make_slices_and_images()88 89 09/0290 - fixed cosmetic bug in verify_data()91 92 05/01 - 08/3193 - added partimagehack hooks94 - make twice as many archives at once as before95 - fixed syntax error re: system(xxx,FALSE)96 - unmount CD-ROM before burning (necessary for RH8/9)97 - only ask for new media if sensible98 - fixed mondoarchive -Vi multi-CD verify bug (Tom Mortell)99 - use single-threaded make_afioballs_and_images() if FreeBSD100 - fixed bug on line 476 (Joshua Oreman)101 - re-enabled the pause, for people w/ weird CD-ROM drives102 - added Joshua Oreman's FreeBSD patches103 - don't listen to please_dont_eject_when_restoring104 ...after all, we're not restoring :)105 106 04/01 - 04/30107 - cleaned up archive_this_fileset()108 - decreased ARCH_THREADS from 3 to 2109 - pause_and_ask_for_cd() --- calls retract_CD_tray_and_defeat_autorun()110 - call assert() and log_OS_error() in various places111 - cleaned up code a bit112 - increased ARCH_THREADS from 2 to 3113 - misc clean-up (Tom Mortell)114 115 03/15/2003116 - fixed problem w/ multi-ISO verify cycle (Tom Mortell)117 118 11/01 - 12/31/2002119 - removed references to make_afioballs_and_images_OLD()120 - added some error-checking to make_afioballs_in_background121 - make_iso_and_go_on() now copies Mondo's autorun file to CD122 - set scratchdir dir to 1744 when burning CD123 - cleaned up code a bit124 - in call_mindi_...(), gracefully handle the user's input125 if they specify the boot loader but not the boot device126 - offer to abort if GRUB is boot loader and /dev/md* is127 the boot device (bug in grub-install)128 - if boot loader is R then write RAW as bootloader.name129 - multithreaded make_afioballs_and_images()130 - fixed slice_up_file_etc() for 0-compression users131 - line 1198: added call to is_this_file_compressed() to stop132 slice_up_file_etc() from compressing files which are133 already compressed134 - other hackery related to the above enhancement135 - afio no longer forcibly compresses all files (i.e. I dropped136 the -U following suggestions from users); let's see if137 it works :)138 139 10/01 - 10/31140 - mondoarchive (with no parameters) wasn't working141 if user said yes when asked if BurnProof drive; FIXED142 - if manual CD tray and writing to ISO's then prompt143 for each & every new CD144 - moved a lot of subroutines here145 from mondo-archive.c and mondo-floppies.c146 147 09/01 - 09/30148 - if CD not burned OK then don't try to verify149 - change 64k to TAPE_BLOCK_SIZE150 - run_program_and_log_output() now takes boolean operator to specify151 whether it will log its activities in the event of _success_152 - orig_vfy_flag_val added to write_iso_and_go_on, to restore bkpinfo->verify_data's153 value if altered by verify_cd_image()154 155 08/01 - 08/31156 - use data structure to store the fname, checksum, mods & perms of each bigfile157 ... biggiestruct :)158 - bigger tmp[]'s in a few places159 - cleaned up the (user-friendly) counting of biggiefiles a bit160 - if media_size[N]<=0 then catch it & abort, unless it's tape,161 in which case, allow it162 - cleaned up a lot of log_it() calls163 - fixed NULL filename-related bug in can_we_fit_these_files_on_media()164 - deleted can_we_fit.....() subroutine because it was causing problems165 --- moved its code into the one subroutine which called it166 - created [08/01/2002]167 5 */ 168 6 -
branches/stable/mondo/src/common/libmondo-devices.c
r1063 r1075 1 1 /* libmondo-devices.c Subroutines for handling devices 2 2 $Id$ 3 .4 5 6 01/07/20057 - sensibly_set_tmpdir_and_scratchdir() --- exclude smb and smbfs and (new) cifs8 9 10/2310 - if root mounted at '/dev/rd/' then say FALSE, not mounted on ramdisk11 just to please Fred Beondo :-p12 13 07/2514 - updated get_phys_size_of_drive() to support newer, larger drives15 16 07/1817 - better support of users who boot from LVM CD and nuke-restore non-LVM backups18 19 07/0820 - BLKGETSIZE64 instead of BLKGETIO..whatever (Joshua)21 - amended to use BLKGETSIZE if BLKGETSIZE64 missing (Hugo)22 - resort to HDIO_GETGEO if BLKGETSIZE and BLKGETSIZE63 fail23 24 25 06/2526 - added Mandrake 9.2 support to which_boot_loader()27 - cleaned up find_cdrom_device()28 29 06/2330 - rewrote resolve_softlinks_to_get_to_actual_device_file() in C31 32 06/1733 - don't use star automatically if SELINUX detected; let user do that34 35 05/0736 - usage of parted2fdisk instead of fdisk alone (ia32/ia64 compatibility)37 BCO38 39 04/1740 - replaced INTERNAL_TAPE_BLK_SIZE with bkpinfo->internal_tape_block_size41 42 04/1343 - if kernel >= 2.6 then ask for /dev entry, not SCSI node44 45 04/1246 - in mount_CDROM_...whatever, don't use bkpinfo_DONTUSETHIS to see if47 mounting a real CD device; look for /dev/ at start of $device instead48 49 04/0450 - when testing for tape drive, use INTERNAL_TAPE_BLK_SIZE, not TAPE_BLOCK_SIZE51 52 04/0353 - don't eject/retract drive if ISO54 55 02/23/200456 - changed strstr() to strncmp() in a few places57 58 12/11/200359 - if we can't find the DVD using dvdrecord then try it w/cdrecord60 61 11/1562 - changed a few []s to char*s63 - better support of multiple CD-ROM drives64 65 11/1466 - better find_cdrom_device(), to cope w/ multiple CD writers67 68 10/2669 - call 'mt -f %s offline' to eject tape drive in eject_device()70 71 10/2572 - ask user to confirm which NFS share to mount73 - improved which_boot_loader()74 75 10/2276 - tweaked find_cdrom_device() and find_cdrw_device()77 - created find_dvd_device()78 79 10/2180 - changed "/mnt/cdrom" to MNT_CDROM81 82 09/2883 - interactive gui no longer asks dvd's speed84 85 09/2686 - interactive gui now supports dvd87 88 09/2389 - malloc/free global strings in new subroutines - malloc_libmondo_global_strings()90 and free_libmondo_global_strings() - which are in libmondo-tools.c91 92 09/2193 - ask for CD size when backing up interactively94 - offer to exclude NFS shares if they're present95 96 09/2097 - exclude /dev/shm from sensibly_*()98 99 09/18100 - less verbose logging when insisting on CD #n101 102 09/09103 - added resolve_softlinks_to_get_to_actual_device_file()104 105 09/05106 - rewrote inisist_on_this_cd_number() and what_number_cd_is_this()107 108 09/02109 - is_this_a_valid_disk_format() -- treat ntfs (a.k.a. type 7) as recognized format110 just in case user's backup includes a partimagehack-imaged drive111 112 08/01 - 08/31113 - better boot-time tape detection114 - remove backup-time, erroneous, "remove floppy" msg115 - working on am_I_in_disaster_recovery_mode()116 - interactively_obtain_...() - pause & ask user to remove CD/floppy117 118 06/01 - 07/31119 - in which_boot_loader(), also search /dev/cciss for boot loader120 - fixed calls to popup_and_get_string()121 - fixed bug in get_phys_size_of_drive()122 - fixed bug in where_is_root_mounted()123 - commented out a spurious assert()124 125 05/01 - 05/31126 - superior get_phys_size_of_drive() (Joshua Oreman)127 - fixed call to inject_device() --- Andree L.128 - find_cdrom_device() now may, if asked to, mount drive if possible,129 to test that it has a CD in it; it then unmounts130 - mount_CDROM_here() now calls retract_cd_and_defeat_autorun() as well131 - fixed support for subdir-within-NFS-mount132 - cleaned up some FreeBSD-specific stuff133 - added Joshua Oreman's FreeBSD patches134 - mount_CDROM_here() --- mkdir -p mountpt135 - add older drive support to get_phys_size_of_drive()136 137 04/01 - 04/30138 - made which_boot_loader() more friendly towards Red Hat 9139 - find_and_mount_actual_cd() retracts all CD trays140 - added lots of log_OS_error()'s and assert()'s141 - fix ISO support in interactively_restore_...()142 - made find_cdrom_device() skip dmesg if second-stage string is empty143 - in find_cdrw_device(), find cdrecord before dvdrecord144 - fixed am_i_in_disaster_recovery_mode()145 - fixed insist_on_this_cd_number()146 147 03/01 - 03/31148 - more work on find_cdrom_device()149 - find_cdrom_device() --- if nonexistent/not found then150 make sure to return '' as dev str and 1 as res151 - cleaner find_cdrom_device(), to find DVD instead of CD-ROM152 as last resort153 - fix insist_on_this_cd_number()154 - add user the speed of CD writer, if writing155 - if root is /dev/root then assume not a ramdisk156 157 01/07 - 02/28158 - fixed find_cdrom_device (Stan Benoit)159 - if root is at /dev/root/root then LVM (not ramdisk)160 - fix am_I_in_disaster_recovery_mode() to recognize that /dev/rd/cp*161 entries are not ramdisks but RAID disks162 - find_cdrw_device() no longer complains to stderr if no cdrecord163 164 01/02/2003165 - sensibly_set_tmpdir_and_scratchdir() --- exclude smb and smbfs166 167 12/01/2002168 - don't ask for isodir path if in disaster recovery mode169 170 11/01 - 11/30171 - added g_restoring_live_from_cd;172 - handle_incoming_parameters() will sensibly set tmpdir and scratchdir173 - properly wipe spurious scratchdir and tmpdir174 - modified sensibly_...() to use tmp.mondo.* and mondo.scratch.*175 instead of mondo.tmpdir.* and mondo.scratchdir.*176 - line 861,912: set media_size[0] to 1999 as well as 1 thru N177 - chmod 700, not 770, in make_fifo()178 - sensibly_set_tmpdir_and_scratchdir() will now prefix a '/' to the179 strings if it is missing180 181 10/01 - 10/31182 - changed find_cdrom_device() to ignore DVD drives in the hd[a-d] search;183 consequently, the subroutine will try scd0, sr0, etc. afterwards184 - commented code185 - fixed obscure bug in find_and_mount_actual_cd()186 - code which sensibly configures tmpdir,scratchdir is now sep. sub.187 - changed sort -s to sort -n <-- sensibly...()188 189 09/01 - 09/30190 - added list_of_NFS_devices_and_mounts()191 - try /dev/st0 if no tape specified at all192 - change '64k' to TAPE_BLOCK_SIZE193 - improved find_cdrom_device()194 - if cdrecord not found then find_cdrom_device() returns 1195 - if disaster recovery mode then don't ask for CD-ROM's /dev entry;196 assume /dev/cdrom197 - if restoring data then ask for CD-ROM's /dev entry (not its SCSI node)198 - run_program_and_log_output() now takes boolean operator to specify199 whether it will log its activities in the event of _success_200 - changed sort -n +4 to sort -s +4 (Troff)201 - ask if user's kernel is sane; if 'no' then use FAILSAFE202 - ask user to confirm the tape/CD device name203 - if restoring (not archiving) then don't try to find CD-ROM's SCSI204 node; try to find its /dev entry instead205 - better detection of biggest partition206 207 08/01 - 08/31208 - fixed verify bug --- CD#1 was being verified again & again & ...209 - detect boot loader + device; if not detectible then _ask_210 - if run interactively, assume tape size is irrelevant & don't ask211 for it; Mondo should handle end-of-tape gracefully now212 - worked on handling unknowng media size213 - added interactively_obtain_media_parameters_from_user()214 - when trying to mount CD-ROM, find_and_mount_actual_cd() will215 now call find_cdrom_device() to try to find the /dev entry first216 - fixed serious bug in zero_out_a_device()217 - cleaned up some log_it() calls218 - fixed minor bug in find_cdrom_device()219 - better at distinguishing between live filesystem and ramdisk220 221 07/24/2002222 - created223 3 */ 224 4 -
branches/stable/mondo/src/common/libmondo-fifo.c
r941 r1075 1 1 /* libmondo-fifo.c 2 2 $Id$ 3 4 5 04/176 - replaced INTERNAL_TAPE_BLK_SIZE with bkpinfo->internal_tape_block_size7 8 04/04/20049 - ps wax is now ps wwax10 11 09/10/200312 - p75 is now p80 in outopening tape call13 - negotiate largest buffer possible when opening tape drive14 - fall back to dd if buffer fails15 16 09/0917 - better logging for tape users18 - working on try_hard_to_fwrite(), try_hard_to_fread()19 - replaced internal w/ EXTERNAL 'buffer' exe.20 21 08/3022 - tweaked error msgs in try_hard_to_fwrite()23 24 08/0225 - updated is_incoming_block_valid() to make it26 return end-of-tape if >300 flotsam blocks27 28 05/0229 - when logging tape errors, don't repeat self30 31 04/2432 - added lots of log_OS_error()'s and assert()'s33 34 04/2235 - copy_file_from_here_to_there() --- added a bit of fault tolerance;36 if write fails, retry a few times before reporting error37 38 04/07/200339 - line 866 --- set block_size used by internal buffer to 32768;40 was INTERNAL_TAPE_BLK_SIZE/241 42 10/01 - 11/30/200243 - is_incoming_block_valid() --- always make44 checksums %65536, just in case int size is45 odd (GRRR, ArkLinux)46 - disabled rotor-related superfluous warnings47 - added INTERNAL_TAPE_BLK_SIZE48 - do_sem() now returns int explicitly49 - changed internal_block_size50 - some irregularities (e.g. bad 'type'-ing) found by Kylix; fixed by Hugo51 52 09/01 - 09/3053 - change 64k to TAPE_BLOCK_SIZE54 - added internal_block_size; set it to TAPE_BLOCK_SIZE*255 - if data is flowing FROM tape TO hard disk then set the threshold to 10 (not 75)56 - lots of multitape-related fixes57 - finally caught & fixed the 'won't finish unzipping last bigfile' bug58 - added WIFEXITED() after waitpid(), to improve multi-tape support59 60 08/01 - 08/3161 - trying to catch & stop 'won't finish unzipping last bigfile' bug by62 changing the copy_file_rom_here_to_there code63 - changed % threshold from 95 back to 7564 - don't insist on full 256K write of last block to tape65 - if >25 secs go by & all data (AFAIK) has been copied thru by FIFO wrapper66 and g_tape_stream is _still_ not closed then shrug shoulders & pthread_exit67 anyway...68 - change fprintf()'s to log_it()'s69 - added a header+footer to each block as it is read/written to/from tape70 by copy_file_from_here_to_there71 - wrote workaround to allow >2GB of archives w/buffering72 - changed % threshold from 75 to 9573 - added calls to set_signals(); 'buffer' was killing mondoarchive as74 it terminated75 - cleaned up struct-passing, to improve reliability and eliminate76 some race conditions77 - changed some forks to pthreads78 - added some comments79 - created libfifo{.c,.h,-EXT.h}80 - copied core of 'buffer' here81 - added some other, Mondo-specific functions82 - hacked 'buffer' into user-friendliness83 3 */ 84 4 -
branches/stable/mondo/src/common/libmondo-filelist.c
r1056 r1075 1 1 /* libmondo-filelist.c 2 2 $Id$ 3 4 - for subroutines which manipulate the filelist5 6 7 01/11/20058 - change time_of_last_full_backup = to st_mtime to allow manipulation of9 - /var/cache/mondo-archive/difflevel.010 - Conor Daly <conor.daly@met.ie>11 12 10/0113 - don't try to sort non-existent file; return 0 instead14 15 09/1416 - dropped 'sort -o' (busybox doesn't support); use 'sort > ' instead17 18 08/0219 - add \ in front of [, ], ? or * when generating filelist subset20 21 07/2722 - sort filelists after creating them23 24 07/1425 - disabled ACL, xattr stuff; moved it to libmondo-archive.c26 - max sane size for a file is now 32MB27 28 07/1029 - added ACL and xattr support for afio users30 31 07/0532 - exclude /dev/shm from backup (Roberto Alsina)33 34 06/0935 - exclude /media/floppy or SuSE 9.1 freezes :(36 37 01/18/200438 - exclude /sys as well as /proc39 40 10/18/200341 - load_filelist() --- make sure you add the paths42 leading to the file, e.g. if you add /usr/lib/thingy.so43 then add /usr, /usr/lib first44 - rewritten load_filelist(), save_filelist(),45 - add_string_at_node(), find_string_at_node(),46 - save_filelist_entries_in_common()47 48 09/2749 - line 1269 had one too many '%s's50 51 09/2652 - fix newt* to be enclosed in #ifndef _XWIN53 - added superior progress display to mondo_makefilelist()54 55 09/1856 - call locate w/ 2> /dev/null at end of str57 58 09/1659 - replaced mondo-makefilelist with C subroutine60 61 06/0662 - fixed silly bug in load_filelist() which stopped63 funny German filenames from being handled properly64 65 05/1966 - misc clean-up (Steve Hindle)67 68 05/0469 - added Herman Kuster's multi-level bkp patch70 71 04/2672 - maximum max_set_size_for_a_file = maxsetsizeK*273 - maximum is also 32MB74 75 04/2476 - added lots of assert()'s and log_OS_error()'s77 78 04/2279 - added lots of asserts() and log_OS_errors()'s80 81 04/0782 - cleaned up code a bit83 84 04/0485 - max_sane_size_for_a_file = maxsetsizeK*2 (was *8)86 87 01/02/200388 - tell mondo-makefilelist that it's a custom catalog (if it is)89 90 10/01 - 10/31/200291 - don't make large .bz2 or .tbz files into biggiefiles92 - max_sane_size_for_a_file = maxsetsizeK*8, or 64MB93 ...whichever is smaller94 95 08/01 - 08/3196 - if last filelist is <=2 bytes long then delete it97 - max_sane_size_for_a_file = maxsetsizeK98 (was SLICESIZE*4 or something)99 - cleaned up some log_it() calls100 101 07/26102 - started103 3 */ 104 4 -
branches/stable/mondo/src/common/libmondo-files.c
r1002 r1075 1 1 /* libmondo-files.c file manipulation 2 2 $Id$ 3 .4 5 6 04/16/047 - find_home_of_exe() really does return NULL now if file not found8 9 03/22/0410 - added mode_of_file()11 12 10/02/0313 - cleaned up grab_percentage_from_last_line_of_file()14 15 09/1816 - added int make_grub_install_scriptlet()17 18 09/1619 - cleaned up mkisofs feedback window20 21 09/1222 - fixed Teuton-hostile bug in size_of_all_biggiefiles_K()23 24 09/0525 - added size_of_partition_in_mountlist_K()26 - size_of_all_biggiefiles_K() now calls get_phys_size_of_drive(fname)27 28 07/0229 - fixed calls to popup_and_get_string()30 31 05/1932 - added CP_BIN33 34 05/0535 - added Joshua Oreman's FreeBSD patches36 37 05/0438 - find_home_of_exe() now returns NULL if file not found39 40 04/2641 - if >4 media est'd, say one meeeellion42 43 04/2544 - fixed minor bug in find_home_of_exe()45 46 04/2447 - added lots of assert()'s and log_OS_error()'s48 49 04/0750 - fix find_home_of_exe()51 - cleaned up code a bit52 53 03/2754 - copy_mondo_and_mindi_stuff --- if _homedir_/payload.tgz exists then untar it to CD55 56 01/14/200357 - if backup media type == nfs then don't estimate no. of media reqd58 59 11/25/200260 - don't log/echo estimated # of media required if >=5061 62 10/01 - 11/0963 - chmod uses 0x, not decimal :)64 - added is_this_file_compressed()65 - replace convoluted grep with wc (KP)66 67 09/01 - 09/3068 - only show "number of media" estimate if no -x69 - run_program_and_log_output() now takes boolean operator to specify70 whether it will log its activities in the event of _success_71 72 08/01 - 08/3173 - handle unknown media sizes74 - cleaned up some log_it() calls75 76 07/2477 - created78 3 */ 79 4 -
branches/stable/mondo/src/common/libmondo-fork.c
r797 r1075 1 1 /* libmondo-fork.c 2 2 $Id$ 3 4 - subroutines for handling forking/pthreads/etc.5 6 7 01/20/20068 - replaced partimagehack with ntfsclone9 10 06/20/200411 - create fifo /var/log/partimagehack-debug.log and empty it12 to keep ramdisk from filling up13 14 04/13/200415 - >= should be <= g_loglevel16 17 11/15/200318 - changed a few []s to char*s19 20 10/1221 - rewrote partimagehack handling (multiple fifos, chunks, etc.)22 23 10/1124 - partimagehack now has debug level of N (set in my-stuff.h)25 26 10/0827 - call to partimagehack when restoring will now log errors to /var/log/....log28 29 10/0630 - cleaned up logging a bit31 32 09/3033 - line 735 - missing char* cmd in sprintf()34 35 09/2836 - added run_external_binary_with_percentage_indicator()37 - rewritten eval_call_to_make_ISO()38 39 09/1840 - call mkstemp instead of mktemp41 42 09/1343 - major NTFS hackage44 45 09/1246 - paranoid_system("rm -f /tmp/ *PARTIMAGE*") before calling partimagehack47 48 09/1149 - forward-ported unbroken feed_*_partimage() subroutines50 from early August 200351 52 09/0853 - detect & use partimagehack if it exists54 55 09/0556 - finally finished partimagehack hack :)57 58 07/0459 - added subroutines to wrap around partimagehack60 61 04/2762 - don't echo (...res=%d...) at end of log_it()63 unnecessarily64 - replace newtFinished() and newtInit() with65 newtSuspend() and newtResume()66 67 04/2468 - added some assert()'s and log_OS_error()'s69 70 04/0971 - cleaned up run_program_and_log_output()72 73 04/0774 - cleaned up code a bit75 - let run_program_and_log_output() accept -1 (only log if _no error_)76 77 01/02/200378 - in eval_call_to_make_ISO(), append output to MONDO_LOGFILE79 instead of a temporary stderr text file80 81 12/1082 - patch by Heiko Schlittermann to handle % chars in issue.net83 84 11/1885 - if mkisofs in eval_call_to_make_ISO() returns an error then return it,86 whether ISO was created or not87 88 10/3089 - if mkisofs in eval_call_to_make_ISO() returns an error then find out if90 the output (ISO) file has been created; if it has then return 0 anyway91 92 08/01 - 09/3093 - run_program_and_log_output() now takes boolean operator to specify94 whether it will log its activities in the event of _success_95 - system() now includes 2>/dev/null96 - enlarged some tmp[]'s97 - added run_program_and_log_to_screen() and run_program_and_log_output()98 99 07/24100 - created101 3 */ 102 4 -
branches/stable/mondo/src/common/libmondo-mountlist.c
r541 r1075 1 1 /* libmondo-mountlist.c subroutines for handling mountlist 2 2 $Id$ 3 4 5 6 08/017 - when evaluating mountlist, skip drive entirely if it does not exist8 9 07/1410 - always exclude /devpts, /proc, /sys from mountlist11 12 06/29/200413 - changed some char[] to *char14 - drivelist is struct now, not char[][]15 16 10/19/200317 - format_device() --- contract /dev/md/N to /dev/mdN to18 overcome devfs problems19 20 06/1121 - added support for 5th column in mountlist.txt, for labels22 23 05/0824 - added save_mountlist_to_disk() and load_mountlist()25 and misc other funcs from mondorestore.c26 27 05/0528 - added Joshua Oreman's FreeBSD patches29 30 04/2431 - added some assert()'s32 33 04/2334 - cleaned up evaluate_drive_within_mountlist() a bit35 36 01/15/200337 - added code for LVM (Brian Borgeson)38 39 10/19/200240 - added some comments41 42 07/24/200243 - created44 3 */ 45 4 -
branches/stable/mondo/src/common/libmondo-raid.c
r1056 r1075 1 1 /* libmondo-raid.c subroutines for handling RAID 2 2 $Id$ 3 .4 5 6 06/297 - added create_raidtab_from_mdstat()8 - changed char[MAX_STR_LEN] to char*9 10 10/21/200311 - get_next_raidtab_line() --- correctly handle multiple spaces12 between label and value13 14 07/0315 - line 447 - changed assert()16 17 05/0818 - cleaned up some FreeBSd-specific stuff19 20 05/0521 - added Joshua Oreman's FreeBSD patches22 23 04/2524 - added a bunch of RAID utilities from mondorestore/mondo-restore.c25 26 04/24/200327 - added some assert()'s and log_OS_error()'s28 29 10/19/200230 - added some comments31 32 07/2433 - created34 3 */ 35 4 -
branches/stable/mondo/src/common/libmondo-stream.c
r955 r1075 4 4 ...tools for talking to tapes, Monitas streams, etc. 5 5 6 7 07/108 - added ACL and XATTR support9 10 04/1711 - added bkpinfo->internal_tape_block_size12 - fixed bug in set_tape_block_size_with_mt()13 14 03/2515 - call 'mt' when opening tape in/out, to set block size to 32K16 17 02/06/200418 - only eject_device() at end of closein_tape() --- not closeout_tape()19 20 10/26/200321 - call eject_device() at end of closein_tape() and closeout_tape()22 23 09/2524 - added docu-header to each subroutine25 26 09/2027 - working on multi-tape code28 - friendlier message in insist_on_this_tape_number()29 - delay is now 5s30 31 09/1032 - adding multi-tape support33 - adding 'back catalog' of previous archives, so that we may resume34 from point of end-of-tape (approx.)35 36 09/0837 - cleaned up insist_on_this_tape_number() --- 10s delay for same tape now38 39 08/2740 - improved find_tape_device_and_size() --- tries /dev/osst*41 42 05/0543 - added Joshua Oreman's FreeBSD patches44 45 04/2446 - added lots of assert()'s and log_OS_error()'s47 48 04/06/200349 - use find_home_of_exe() instead of which50 51 12/13/200252 - cdrecord -scanbus call was missing 2> /dev/null53 54 11/2455 - disabled fatal_error("Bad marker")56 57 10/2958 - replaced convoluted grep wih wc (KP)59 60 09/0761 - removed g_end_of_tape_reached62 - lots of multitape-related fixes63 64 08/01 - 08/3165 - write 16MB of zeroes to end of tape when closing(out)66 - compensate for 'buffer' and its distortion of speed of writing/reading67 when writing/reading data disks at start of tape68 - rewrote lots of multitape stuff69 - wrote workaround to allow >2GB of archives w/buffering70 - do not close/reopen tape when starting to read/write from71 new tape: no need! 'buffer' handles all that; we're writing72 to/reading from a FIFO, so no need to close/reopen when new tape73 - write 8MB of zeroes at end of tape, just in case74 - re-enable various calls to *_evalcall_form75 - added g_end_of_tape_reached76 - fixed bugs in start_to_[read|write]_[to|from]_next_tape77 - added internal buffering, replacing the external 'buffer' exe78 - wait 10 seconds (after user inserts new tape), to79 let tape stabilize in drive80 - added insist_on_this_tape_number()81 - worked on find_tape_device_and_size()82 - cleaned up some log_it() calls83 - added find_tape_device_and_size()84 - replaced using_cdstream with backup_media_type85 - replace *_from_tape with *_from_stream86 - replace *_to_stream with *_to_stream87 88 07/01 - 07/3189 - leave 32MB at end of tape, to avoid overrunning90 - started [07/24/2002]91 6 */ 92 7 -
branches/stable/mondo/src/common/libmondo-tools.c
r1061 r1075 1 1 /* libmondo-tools.c misc tools 2 2 $Id$ 3 .4 5 6 06/287 - abort if RAID partitions found but /etc/raidtab not found8 9 06/2510 - don't insist on ms-sys; recommend it11 - don't fatal_error if can't open log file12 13 06/1414 - call mindi -V before calling mindi --makemountlist15 16 04/0917 - lots of malloc'd char*'s instead of char[]'s in post_param_config'n18 19 04/0220 - better sanity-checking, re: /etc/modules.conf21 22 02/1523 - abort if Windows dir but no ms-sys or parted24 25 02/0826 - missing ramdisk/initrd support is nonfatal now (but stupid)27 28 01/1629 - added g_kernel_version and get_kernel_version()30 31 01/08/200432 - fixed /boot mounter thingy33 34 11/14/200335 - if <50MB free in /root, softlink /root/images/mindi to36 /home/root/images/mindi as a workaround37 38 10/2339 - streaming backups now generate 4MB sets; CDs, 8MB sets40 41 10/2142 - better at finding your /boot in order to mount it, if nec.43 - link /etc/modules.conf to /etc/conf.modules if former44 is missing but latter is not45 - changed "/mnt/cdrom" to MNT_CDROM46 - changed "/mnt/floppy" to MNT_FLOPPY47 48 10/1349 - added stop_magicdev_if_necessary()50 - added restart_magicdev_if_necessary()51 52 10/0253 - don't eject if bkpinfo->please_dont_eject is TRUE54 55 09/2856 - fixed segfault in mount_..._necessary57 58 09/2659 - ask for cmp (or create workaround if possible)60 61 09/2562 - add DVD support63 64 09/2465 - don't overwrite existing media-dev value in bkpinfo IF it's66 a tape device AND it's already populated by /dev/{something}67 ...This helps w/ weird tape drives68 69 09/2370 - malloc/free global strings in new subroutines - malloc_libmondo_global_strings()71 and free_libmondo_global_strings() - which are in libmondo-tools.c72 73 09/1874 - added stop_autofs_if_necessary() and restart_autofs_if_necessary()75 76 09/1377 - added log_debug_msg()78 - turned log_it() into a macro79 80 09/1081 - reduced PPCFG_RAMDISK to 150m (was 200m)82 - max set size is now 8MB (was 6)83 - added 'buffer' to requisite tools84 85 08/2986 - typical set size is now 5MB87 88 07/2289 - increased PPCFG* to 200m90 91 05/0792 - changed grep -m1 to grep | head -n1 for Debian users93 - pre_param_...() also mkdir -p /mnt/cdrom, just in case94 95 05/0596 - cleaner logging of call to dd if=<tape> of=/dev/null97 - added Joshua Oreman's FreeBSD patches98 99 05/04100 - added Herman Kuster's multi-level bkp patch101 102 05/02103 - log_it() --- "Message repeated N times" (if it was)104 105 04/24106 - added lots of assert()'s and log_OS_error()'s107 - reset_bkpinfop() --- reset all media_size[] array108 - increased tmpfs ramdisk to size=100m109 110 04/22111 - post_param_configuration() --- store iso-dev and isodir112 113 04/05114 - re-enable tmpfs ramdisk/mountpt _but_ make sure size=80m115 - in post_param_configuration(), use cdrecord in preference116 to dvdrecord now117 118 03/27119 - disabled tmpfs ramdisk/mountpt120 121 01/02/2003122 - bkpinfo->makefilelist = TRUE123 124 12/10/2002125 - added g_loglevel126 - fixed minor bug in clean_up_KDE_desktop_if_necessary()127 - log versions of newt, slang, ncurses128 - isodir defaults to / if disaster recovery129 130 11/28131 - unmount all CD devices at start132 - added clean_up_KDE_desktop_if_necessary()133 134 11/20135 - don't use lilo.conf.anaconda; abort instead136 - mount/unmount /boot partition for Gentoo 1.2 users137 138 11/13139 - call mindi --makemountlist as part of testing sanity of distro140 141 11/08142 - added a couple of chmod 700's (one for scratchdir, one for tmpdir)143 to post_param_configuration()144 145 10/01 - 10/31146 - added checking of / and /root's free space to some_basic_sanity_checks()147 - moved some subroutines here from common/libmondo-archive148 149 09/01 - 09/30150 - don't write log_it()'s string to stdout, even if text mode151 - tell user the kernel is bad if it has no ramdisk support but allow152 it if they want to use the failsafe kernel for booting153 - run_program_and_log_output() now takes boolean operator to specify154 whether it will log its activities in the event of _success_155 - if mkfs.vfat not found but mkfs.msdos found then create a softlink156 from the former to the latter157 158 08/01 - 08/31159 - if /etc/lilo.conf not found not /etc/lilo.conf.anaconda found160 then create a softlink from the former to the latter, to work161 around RH7.3's b0rken LILO support162 - handle unknown media size163 164 07/27165 - created166 3 */ 167 4 -
branches/stable/mondo/src/common/libmondo-verify.c
r1003 r1075 1 /*************************************************************************** 2 libmondo-verify.c - description 3 ----------------- 4 5 begin: Fri Apr 19 16:40:35 EDT 2002 6 copyright : (C) 2002 Mondo Hugo Rabson 7 email : Hugo Rabson <hugorabson@msn.com> 8 edited by : by Stan Benoit 4/2002 9 email : troff@nakedsoul.org 10 cvsid : $Id$ 11 ***************************************************************************/ 12 13 /*************************************************************************** 14 * * 15 * This program is free software; you can redistribute it and/or modify * 16 * it under the terms of the GNU General Public License as published by * 17 * the Free Software Foundation; either version 2 of the License, or * 18 * (at your option) any later version. * 19 * * 20 ***************************************************************************/ 21 /* mondo-verify 22 23 24 07/07 25 - added star verify support 26 27 04/04/2004 28 - added star support 29 30 10/23/2003 31 - changed "ISO #n" to "<media descriptor> #n" 32 33 10/01 34 - working on biggiefile verification (CDs) 35 36 09/16 37 - fixed bug in CD biggie verif'n 38 39 09/15 40 - state explicitly that we do not verify disk images 41 42 09/13 43 - working on verify_all_slices_on_CD() 44 45 09/01 46 - write list of changed biggiefiles (streaming only) to changed.files 47 48 05/05 49 - exclude /dev/ * from list of changed files 50 - add Joshua Oreman's FreeBSD patches 51 52 04/24/2003 53 - added lots of assert()'s and log_OS_error()'s 54 55 09/01 - 09/30/2002 56 - run_program_and_log_output() now takes boolean operator to specify 57 whether it will log its activities in the event of _success_ 58 - eject_device() added 59 - cleaned up 'changed file' feedback a little bit 60 61 08/01 - 08/31 62 - make sure to prefix bkpinfo->restore_path to local biggiefile fname when 63 comparing it to the archived copy of biggiefile; otherwise, biggiefile 64 not found & checksum missing & so on 65 - exclude "incheckentry xwait()" from changed.files 66 - cleaned up some log_it() calls 67 68 07/01 - 07/31 69 - renamed libmondo-verify.c 70 - say 'bigfile' not 'biggiefile' 71 - exclude /dev/ * from changed.files 72 73 01/01 - 06/30 74 - remove /tmp/changed.files.* dead files 75 - don't pclose() tape after calling closein_tape(): the latter does it already 76 - fixed bug in verify_cd_image()'s CD-mounting code 77 - don't write to screen "old cksum.. curr cksum.." 78 - changed the gawks to awks for the benefit of Debian 79 - handles files >2GB in size 80 - fixed bug in /tmp/changed.files-generator 81 - re-enabled a lot of CD-verification code 82 - afioballs are saved in %s/tmpfs/ now (%s=tmpdir) 83 - changed some labels to make them more user-friendly 84 - don't chdir() anywhere before verifying stuff 85 - changed files are now detected by verify_tape_backup() and listed in 86 /tmp/changed.files 87 - replaced &> with > .. 2> 88 - still implementing improved tape support 89 90 91 Started late Dec, 2001 92 93 ----------------------------------------------------------------------------- 1 /* 2 * $Id$ 94 3 */ 95 96 4 97 5 /** -
branches/stable/mondo/src/common/newt-specific.c
r928 r1075 4 4 subroutines which do display-type things 5 5 and use the newt library to do them 6 .7 8 10/029 - tell user not to bother mailing list unless snapshot10 11 07/0912 - finish() calls g_erase_tmpdir_and_scratchdir to erase13 tmpdir and scratchdir at end14 15 06/2516 - tried to fix newtFinished() segfault17 18 04/13/200419 - lots of char[]'s are now *char's20 21 10/09/200322 - allow DVD option for text-mode which_backup_type() too23 24 09/2825 - log_to_screen() now takes printf-like parameters26 27 09/2628 - b5 now means dvd (was udev)29 30 09/1631 - echo fatal error to screen before exiting32 - working on fatal_error()33 - swapped g_blurb2 and g_blurb3 in a few places to fix a GUI problem;34 it shouldn't have worked! :) I think there's a mem-leak somewhere35 36 09/1337 - changed some '\n' occurrences to '\r\n'38 39 09/0940 - fixed silly bug in log_to_screen()41 42 07/0243 - modified popup_and_get_string()44 45 05/0346 - cleaned up fatal_error()47 48 04/3049 - fixed popup_changelist_*()50 51 04/2752 - replace newtFinished() and newtInit() with53 newtSuspend() and newtResume()54 55 04/2556 - after comparing, popup the changelist for the user57 - moved the relevant code from compare_to_cds() into58 compare_mode(), so that tape users may benefit too59 60 04/2461 - added lots of assert()'s and log_OS_error()'s62 - cleaned up a few uninitialized strings (valgrind)63 64 04/2265 - line 1181 - 'read from' (not 'restoring from')66 67 03/15/200368 - fixed potentially infinite loop in log_to_screen (Tom Mortell)69 70 12/04/200271 - changed "Pick file" to "Non-matching files"72 73 11/2874 - finish() now unregisters Mondo's pid75 76 10/2877 - unmount tmpfs if fatal_error78 79 10/0480 - more XMondo-related work81 - added some =NULL's in a few places82 83 09/01 - 09/3084 - write log_to_screen()'s string to stdout if in text mode85 - update_progress_form_FULL(), update_evalcall_form(),86 popup_and_*(), ask_me_yes_or_no() now write87 XMondo-friendly info to stdout if in text mode88 - if fatal error then popup and say what the fatal error is89 - run_program_and_log_output() now takes boolean operator to specify90 whether it will log its activities in the event of _success_91 - added popup_changelist_from_file(char*source_file, char*topic, void*call_if_entry_selected(void*));92 93 08/0794 - added some functions to let user choose backup dev + format95 96 07/2797 - created98 6 */ 99 7
Note:
See TracChangeset
for help on using the changeset viewer.