Changeset 128 in MondoRescue for branches/2.05/mondo/mondo/common/my-stuff.h
- Timestamp:
- Nov 19, 2005, 2:27:41 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.05/mondo/mondo/common/my-stuff.h
r126 r128 207 207 #if defined(DEBUG) && !__cplusplus 208 208 int count; 209 char trace_log[255]; /*buffer for logging */209 char trace_log[255]; /*buffer for logging */ 210 210 char *trace_log_ptr; 211 #endif 211 #endif /* DEBUG */ 212 212 213 213 #define IA64_BOOT_SIZE "8192" /* Should be coherent with mindi */ … … 240 240 #undef assert 241 241 242 extern void _mondo_assert_fail (const char *file, const char *function, int line, const char *exp); 242 extern void _mondo_assert_fail(const char *file, const char *function, 243 int line, const char *exp); 243 244 244 245 /** … … 251 252 #endif 252 253 253 #define CRC_M16 0xA001 ///< Mask for crc16.254 #define CRC_MTT 0x1021 ///< Mask for crc-ccitt.255 256 #define FALSE 0 ///< The ubiquitous FALSE macro.257 #define TRUE 1 ///< The even more ubiquitous TRUE macro.258 259 #define SCREEN_LENGTH 25 260 #define NOOF_ERR_LINES 6 254 #define CRC_M16 0xA001 ///< Mask for crc16. 255 #define CRC_MTT 0x1021 ///< Mask for crc-ccitt. 256 257 #define FALSE 0 ///< The ubiquitous FALSE macro. 258 #define TRUE 1 ///< The even more ubiquitous TRUE macro. 259 260 #define SCREEN_LENGTH 25 ///< The default size of the screen. 261 #define NOOF_ERR_LINES 6 ///< The number of lines of log output to keep at the bottom of the screen. 261 262 #define ARBITRARY_MAXIMUM 500 ///< The maximum number of items showing at once in the mountlist or filelist editor. 262 #define MAX_TAPECATALOG_ENTRIES 4096 263 #define MAX_STR_LEN 380 ///< The maximum length of almost all @p char buffers in Mondo.263 #define MAX_TAPECATALOG_ENTRIES 4096 ///< The maximum number of entries in the tape catalog. 264 #define MAX_STR_LEN 380 ///< The maximum length of almost all @p char buffers in Mondo. 264 265 #define MAXIMUM_RAID_DEVS 32 ///< The maximum number of RAID devices in the raidlist. 265 #define MAXIMUM_ADDITIONAL_RAID_VARS 32 266 #define MAXIMUM_DISKS_PER_RAID_DEV 32 267 268 #define RAIDTAB_FNAME "/etc/raidtab" 269 270 #define BLK_START_OF_BACKUP 1 271 #define BLK_START_OF_TAPE 2 272 #define BLK_START_AFIOBALLS 10 273 #define BLK_STOP_AFIOBALLS 19 274 #define BLK_START_AN_AFIO_OR_SLICE 20 275 #define BLK_STOP_AN_AFIO_OR_SLICE 29 276 #define BLK_START_BIGGIEFILES 30 277 #define BLK_STOP_BIGGIEFILES 39 278 #define BLK_START_A_NORMBIGGIE 40 279 #define BLK_START_A_PIHBIGGIE 41 280 #define BLK_START_EXTENDED_ATTRIBUTES 45 281 #define BLK_STOP_EXTENDED_ATTRIBUTES 46 266 #define MAXIMUM_ADDITIONAL_RAID_VARS 32 ///< The maximum number of additional RAID variables per RAID device in the raidlist. 267 #define MAXIMUM_DISKS_PER_RAID_DEV 32 ///< The maximum number of disks per RAID device in the raidtab. 268 269 #define RAIDTAB_FNAME "/etc/raidtab" ///< The filename of the raidtab file, at least on Linux. 270 271 #define BLK_START_OF_BACKUP 1 ///< Marker block: start a backup. 272 #define BLK_START_OF_TAPE 2 ///< Marker block: start a tape. 273 #define BLK_START_AFIOBALLS 10 ///< Marker block: start the afioball section. 274 #define BLK_STOP_AFIOBALLS 19 ///< Marker block: stop the afioball section. 275 #define BLK_START_AN_AFIO_OR_SLICE 20 ///< Marker block: start an afioball or a slice. 276 #define BLK_STOP_AN_AFIO_OR_SLICE 29 ///< Marker block: stop an afioball or a slice. 277 #define BLK_START_BIGGIEFILES 30 ///< Marker block: start the biggiefile section. 278 #define BLK_STOP_BIGGIEFILES 39 ///< Marker block: stop the biggiefile section. 279 #define BLK_START_A_NORMBIGGIE 40 ///< Marker block: start a normal biggiefile. 280 #define BLK_START_A_PIHBIGGIE 41 ///< Marker block: start a partimagehack'd biggiefile 281 #define BLK_START_EXTENDED_ATTRIBUTES 45 ///< Marker block: start xattr/acl info 282 #define BLK_STOP_EXTENDED_ATTRIBUTES 46 ///< Marker block: stop xattr/acl info 282 283 #define BLK_START_EXAT_FILE 47 283 284 #define BLK_STOP_EXAT_FILE 48 284 #define BLK_STOP_A_BIGGIE 59 285 #define BLK_START_FILE 80 286 #define BLK_STOP_FILE 89 287 #define BLK_END_OF_TAPE 100 288 #define BLK_END_OF_BACKUP 101 289 #define BLK_ABORTED_BACKUP 102 285 #define BLK_STOP_A_BIGGIE 59 ///< Marker block: stop a biggiefile. 286 #define BLK_START_FILE 80 ///< Marker block: start a file (non-afio or slice). 287 #define BLK_STOP_FILE 89 ///< Marker block: stop a file (non-afio or slice). 288 #define BLK_END_OF_TAPE 100 ///< Marker block: end of tape. 289 #define BLK_END_OF_BACKUP 101 ///< Marker block: end of backup. 290 #define BLK_ABORTED_BACKUP 102 ///< Marker block: backup was aborted. 290 291 291 292 /// The external tape blocksize. 292 293 #ifdef EXTTAPE 293 294 #define TAPE_BLOCK_SIZE (long)EXTTAPE 294 295 #else 295 296 #endif 297 298 #define DEFAULT_INTERNAL_TAPE_BLOCK_SIZE 32768// Nov 2003?299 300 301 302 303 #define SLICE_SIZE 4096 ///< The size of a slice of a biggiefile.296 #define TAPE_BLOCK_SIZE 131072L /* was 8192; 06/2002-->65536; 11/2002-->131072 */ 297 #endif 298 299 #define DEFAULT_INTERNAL_TAPE_BLOCK_SIZE 32768 // Nov 2003? 300 301 302 303 304 #define SLICE_SIZE 4096 ///< The size of a slice of a biggiefile. 304 305 305 306 … … 349 350 /** 350 351 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image. 351 */// -b images/mindi-boot.2880.img352 */// -b images/mindi-boot.2880.img 352 353 #define MONDO_GROWISOFS_REGULAR_ELILO "growisofs -speed=1 -use-the-force-luke -no-emul-boot -b images/mindi-boot.2880.img -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 353 354 354 355 /** 355 356 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image. 356 */// -b images/mindi-boot.2880.img357 */// -b images/mindi-boot.2880.img 357 358 #define MONDO_GROWISOFS_REGULAR_LILO "growisofs -speed=1 -no-emul-boot -b isolinux.bin -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 358 359 … … 460 461 /** @def CP_BIN The GNU @c cp binary to use. */ 461 462 #ifdef __FreeBSD__ 462 463 464 465 466 467 468 469 463 #define VANILLA_SCSI_CDROM "/dev/cd0" 464 #define VANILLA_SCSI_TAPE "/dev/sa0" 465 #define DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE "/dev/vinum/" 466 #define RAID_DEVICE_STUB DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE 467 #define SANE_FORMATS "swap image msdosfs nfs ntfs raid lvm ffs ufs ext2fs" 468 #define ALT_TAPE "/dev/ast0" 469 #define MKE2FS_OR_NEWFS "newfs" 470 #define CP_BIN "gcp" 470 471 #else 471 472 473 474 475 476 477 478 472 #define VANILLA_SCSI_CDROM "/dev/scd0" 473 #define VANILLA_SCSI_TAPE "/dev/st0" 474 #define DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE "/dev/md" 475 #define RAID_DEVICE_STUB DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE 476 #define SANE_FORMATS "swap image vfat ext2 ext3 xfs vfs jfs reiserfs dos minix coda nfs ntfs hpfs raid lvm" 477 #define ALT_TAPE "/dev/ht0" 478 #define MKE2FS_OR_NEWFS "mke2fs" 479 #define CP_BIN "cp" 479 480 #endif 480 481 … … 496 497 */ 497 498 #define AFIOBALL_FNAME_RAW_SZ (bkpinfo->use_star)?"%s/tmpfs/%ld.star.%s":"%s/tmpfs/%ld.afio.%s" 498 #define ARCH_THREADS 2 499 #define ARCH_BUFFER_NUM (ARCH_THREADS*4) 500 #define FORTY_SPACES " " 501 #define PPCFG_RAMDISK_SIZE 250 499 #define ARCH_THREADS 2 ///< The number of simultaneous threads running afio in the background. 500 #define ARCH_BUFFER_NUM (ARCH_THREADS*4) // Number of permissible queued afio files 501 #define FORTY_SPACES " " ///< 40 spaces. 502 #define PPCFG_RAMDISK_SIZE 250 ///< Size of the tmpfs, in megabytes, to attempt to mount (to speed up Mondo). 502 503 503 504 #define DO_MBR_PLEASE "/tmp/DO-MBR-PLEASE" … … 514 515 #define log_msg(level, format, args...) log_debug_msg(level, __FILE__, __FUNCTION__, __LINE__, format, ## args) 515 516 516 #define DEFAULT_DVD_DISK_SIZE 4380 517 518 #define DEFAULT_DEBUG_LEVEL 4 519 520 #define SZ_PARTIMAGE_VOLSIZE "1048576" 517 #define DEFAULT_DVD_DISK_SIZE 4380 ///< The default size (in MB) of a DVD disk, unless the user says otherwise. 518 519 #define DEFAULT_DEBUG_LEVEL 4 ///< By default, don't log messages with a loglevel higher than this. 520 521 #define SZ_PARTIMAGE_VOLSIZE "1048576" // was 4096 521 522 #define PARTIMAGE_PARAMS "-z0 -V" SZ_PARTIMAGE_VOLSIZE " -o -b -d -g1" 522 523 … … 524 525 #define MNT_FLOPPY "/mnt/floppy" 525 526 526 #define FREELOADER 527 #define FREELOADER // You're not a paying customer 527 528 #define DEFAULT_MR_LOGLEVEL 4 528 529 529 #endif 530 #endif /* _MY_STUFF_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.