Changeset 1075 in MondoRescue for branches/stable/mondo/src/common/libmondo-devices.c
- Timestamp:
- Jan 25, 2007, 4:18:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.