Changeset 1919 in MondoRescue for branches/2.2.6/mondo/src
- Timestamp:
- Apr 17, 2008, 1:50:50 AM (16 years ago)
- Location:
- branches/2.2.6/mondo/src/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/libmondo-devices.c
r1917 r1919 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/2.2.6/mondo/src/common/libmondo-tools.c
r1917 r1919 996 996 strcpy(bkpinfo->tmpdir,p); 997 997 paranoid_free(tmp); 998 999 //sprintf(bkpinfo->tmpdir, "%s/tmpfs/mondo.tmp.%d", "/tmp", (int) (random() % 32768)); // for mondorestore1000 998 } 1001 999 -
branches/2.2.6/mondo/src/common/newt-specific.c
r1899 r1919 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.