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)  

my-stuff.h File Reference
#include <getopt.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/ioctl.h>
#include <sys/sem.h>
#include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stddef.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <signal.h>
#include <newt.h>
#include <ctype.h>
#include <string.h>
#include <pthread.h>
#include <assert.h>
Include dependency graph for my-stuff.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HAVE_MALLOC   1
 
#define STAR_ACL_SZ   "-xattr -acl"
 
#define bool   int
 Create the illusion of a Boolean type. More...
 
#define TRUE   1
 The even more ubiquitous TRUE macro. More...
 
#define FALSE   0
 The ubiquitous FALSE macro. More...
 
#define _MY_STUFF_H_
 
#define __USE_FILE_OFFSET64
 
#define __USE_LARGEFILE64
 
#define IA64_BOOT_SIZE   "16384" /* Should be coherent with mindi */
 
#define STD_PREFIX   "mondorescue" /* Should be coherent with mindi */
 
#define MINDI_CACHE_REL   "var/cache/mindi" /* Should be coherent with mindi */
 The location where mindi media images are stored. More...
 
#define MINDI_CACHE   "/"MINDI_CACHE_REL
 
#define MINDI_LOGFILE   "/var/log/mindi.log"
 
#define MINDI_RUNFILE   "/var/log/mindi.run"
 
#define MONDO_CACHE   "/var/cache/mondo"
 The location where mondo changed info are stored. More...
 
#define MDSTAT_FILE   "/proc/mdstat"
 The RAID kernel proc file. More...
 
#define CMDLINE   "/proc/cmdline"
 
#define assert(exp)   ((exp)?((void)0):_mondo_assert_fail(__FILE__, __FUNCTION__, __LINE__, #exp))
 An assert macro that calls _mondo_assert_fail() when it fails. More...
 
#define CRC_M16   0xA001
 Mask for crc16. More...
 
#define CRC_MTT   0x1021
 Mask for crc-ccitt. More...
 
#define FALSE   0
 The ubiquitous FALSE macro. More...
 
#define TRUE   1
 The even more ubiquitous TRUE macro. More...
 
#define SCREEN_LENGTH   25
 The default size of the screen. More...
 
#define NOOF_ERR_LINES   6
 The number of lines of log output to keep at the bottom of the screen. More...
 
#define ARBITRARY_MAXIMUM   2000
 The maximum number of items showing at once in the mountlist or filelist editor. More...
 
#define MAX_TAPECATALOG_ENTRIES   16384
 The maximum number of entries in the tape catalog. More...
 
#define MAX_MOUNTLIST_ENTRIES   8192
 The maximum number of entries in the mountlist. More...
 
#define MAX_STR_LEN   512
 The maximum length of almost all char buffers in Mondo. More...
 
#define MAXIMUM_RAID_DEVS   32
 Note: Make this divisible by eight to avoid aligment issues on 64bit platforms like ia64. More...
 
#define MAXIMUM_ADDITIONAL_RAID_VARS   32
 The maximum number of additional RAID variables per RAID device in the raidlist. More...
 
#define MAXIMUM_DISKS_PER_RAID_DEV   1024
 The maximum number of disks per RAID device in the raidtab. More...
 
#define RAIDTAB_FNAME   "/etc/raidtab"
 The filename of the raidtab file, at least on Linux. More...
 
#define BLK_START_OF_BACKUP   1
 Marker block: start a backup. More...
 
#define BLK_START_OF_TAPE   2
 Marker block: start a tape. More...
 
#define BLK_START_AFIOBALLS   10
 Marker block: start the afioball section. More...
 
#define BLK_STOP_AFIOBALLS   19
 Marker block: stop the afioball section. More...
 
#define BLK_START_AN_AFIO_OR_SLICE   20
 Marker block: start an afioball or a slice. More...
 
#define BLK_STOP_AN_AFIO_OR_SLICE   29
 Marker block: stop an afioball or a slice. More...
 
#define BLK_START_BIGGIEFILES   30
 Marker block: start the biggiefile section. More...
 
#define BLK_STOP_BIGGIEFILES   39
 Marker block: stop the biggiefile section. More...
 
#define BLK_START_A_NORMBIGGIE   40
 Marker block: start a normal biggiefile. More...
 
#define BLK_START_A_PIHBIGGIE   41
 Marker block: start a ntfsprog'd biggiefile. More...
 
#define BLK_START_EXTENDED_ATTRIBUTES   45
 Marker block: start xattr/acl info. More...
 
#define BLK_STOP_EXTENDED_ATTRIBUTES   46
 Marker block: stop xattr/acl info. More...
 
#define BLK_START_EXAT_FILE   47
 
#define BLK_STOP_EXAT_FILE   48
 
#define BLK_STOP_A_BIGGIE   59
 Marker block: stop a biggiefile. More...
 
#define BLK_START_FILE   80
 Marker block: start a file (non-afio or slice). More...
 
#define BLK_STOP_FILE   89
 Marker block: stop a file (non-afio or slice). More...
 
#define BLK_END_OF_TAPE   100
 Marker block: end of tape. More...
 
#define BLK_END_OF_BACKUP   101
 Marker block: end of backup. More...
 
#define BLK_ABORTED_BACKUP   102
 Marker block: backup was aborted. More...
 
#define TAPE_BLOCK_SIZE   131072L /* was 8192; 06/2002-->65536; 11/2002-->131072 */
 The external tape blocksize. More...
 
#define DEFAULT_INTERNAL_TAPE_BLOCK_SIZE   32768
 
#define SLICE_SIZE   4096
 The size of a slice of a biggiefile. More...
 
#define IS_THIS_A_STREAMING_BACKUP(x)   (x == tape || x == udev || x == cdstream)
 Determine whether x (t_bkptype) is a streaming backup. More...
 
#define MONDO_MKISOFS_CMD   "mkisofs"
 
#define MONDO_GENISOIMAGE_CMD   "genisoimage"
 
#define MONDO_XORRISO_CMD   "xorriso -as mkisofs"
 
#define MONDO_MKISOFS   " -J -r -v -p MondoRescue -publisher http://www.mondorescue.org -A MondoRescue -V _CD#_ "
 
#define MONDO_MKISOFS_CMS   " -b syslinux/isolinux.bin -c syslinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table "
 
#define MONDO_UEFI_PREFIX   " -b EFI/isolinux.bin -c EFI/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot "
 
#define MONDO_MKISOFS_UEFI   "-efi-boot images/mindi-bootroot.img -no-emul-boot "
 
#define MONDO_MKISOFS_REGULAR_SYSLINUX   MONDO_MKISOFS
 mkisofs command to generate a bootable CD using isolinux, except for -o option and the directory to image. More...
 
#define MONDO_MKISOFS_REGULAR_LILO   MONDO_MKISOFS_REGULAR_SYSLINUX
 mkisofs command to generate a bootable CD using LILO, except for -o option and the directory to image. More...
 
#define MONDO_MKISOFS_REGULAR_ELILO   MONDO_MKISOFS"-no-emul-boot -b images/mindi-bootroot.img -c images/boot.cat "
 mkisofs command to generate a bootable CD using ELILO, except for -o option and the directory to image. More...
 
#define MONDO_TMPISOS   "temporary.iso"
 The stub name of the temporary ISO image to create, burn, and remove. More...
 
#define MONDO_GROWISOFS_REGULAR_SYSLINUX   "growisofs -use-the-force-luke "MONDO_MKISOFS_REGULAR_SYSLINUX
 growisofs command to generate a bootable DVD using isolinux, except for the directory to image. More...
 
#define MONDO_GROWISOFS_REGULAR_ELILO   "growisofs -use-the-force-luke "MONDO_MKISOFS_REGULAR_ELILO
 growisofs command to generate a bootable DVD using LILO, except for the directory to image. More...
 
#define MONDO_GROWISOFS_REGULAR_LILO   "growisofs "MONDO_MKISOFS_REGULAR_SYSLINUX
 growisofs command to generate a bootable DVD using LILO, except for the directory to image. More...
 
#define MONDO_GROWISOFS_NONBOOT   "growisofs -use-the-force-luke "MONDO_MKISOFS
 growisofs command to generate a nonbootable DVD, except for the directory to image. More...
 
#define WELCOME_STRING   "W E L C O M E T O M O N D O R E S C U E"
 Welcome string displayed at the top of the newt interface. More...
 
#define MAX_TAPECAT_FNAME_LEN   32
 The maximum length of a filename in the tape catalog. More...
 
#define assert_string_is_neither_NULL_nor_zerolength(x)   {assert(x!=NULL);assert(x[0]!='\0');}
 Assert that (x != NULL) and (x[0] != '\0'). More...
 
#define log_OS_error(x)   {log_msg(0, "%s (%s)", x, strerror(errno));}
 Log the file, line, Mondo error message, and OS error message (errno). More...
 
#define assert_pointer_is_not_NULL(x)   {assert(x!=NULL);}
 Assert that (x != NULL). More...
 
#define paranoid_close(x)   {if(close(x)) {log_msg(5, "close err");} x=-999; }
 close() x and log a message if it fails. More...
 
#define paranoid_fclose(x)   {if(fclose(x)) {log_msg(5, "fclose err");} x=NULL; }
 fclose() x and log a message if it fails. More...
 
#define paranoid_pclose(x)   {if(pclose(x)) {log_msg(5, "pclose err");} x=NULL; }
 pclose() x and log a message if it fails. More...
 
#define paranoid_system(x)   {if(system(x)) log_msg(4, x); }
 Run the command x and log it if it fails. More...
 
#define paranoid_free(x)   {if (x != NULL) free(x); x=NULL;}
 Free x and set it to NULL. More...
 
#define paranoid_MR_finish(x)   {free_MR_global_filenames (); finish(x); }
 Free variables and call finish(x). More...
 
#define MALLOC_CHECK_   1
 Yes, we want malloc() to help us fix bugs. More...
 
#define malloc_string(x)   { x = (char *)malloc(MAX_STR_LEN); if (!x) { fatal_error("Unable to malloc"); } x[0] = x[1] = '\0'; }
 Malloc x to be MAX_STR_LEN bytes and call fatal_error() if we're out of memory. More...
 
#define MNT_RESTORING   "/mnt/RESTORING"
 Path to the location the hard drive is mounted on during a restore. More...
 
#define VANILLA_SCSI_CDROM   "/dev/scd0"
 
#define VANILLA_SCSI_TAPE   "/dev/st0"
 
#define VANILLA_USB_DEVICE   "/dev/hda"
 
#define DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE   "/dev/md"
 
#define RAID_DEVICE_STUB   DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE
 
#define ALT_TAPE   "/dev/ht0"
 
#define MKE2FS_OR_NEWFS   "mke2fs"
 
#define CP_BIN   "cp"
 
#define FILELIST_FNAME_RAW_SZ   "%s/filelist.%ld"
 The template for a filelist filename. More...
 
#define XATTR_LIST_FNAME_RAW_SZ   "%s/xattr_list.%ld.gz"
 
#define XATTR_BIGGLST_FNAME_RAW_SZ   "%s/xattr_list.big.gz"
 
#define ACL_LIST_FNAME_RAW_SZ   "%s/acl_list.%ld.gz"
 
#define ACL_BIGGLST_FNAME_RAW_SZ   "%s/acl_list.big.gz"
 
#define BIGGIEMAXSIZE   64L*1024L
 
#define AFIOBALL_FNAME_RAW_SZ   (bkpinfo->use_star)?"%s/tmpfs/%ld.star.%s":"%s/tmpfs/%ld.afio.%s"
 The template for an afioball filename. More...
 
#define ARCH_THREADS   2
 The number of simultaneous threads running afio in the background. More...
 
#define ARCH_BUFFER_NUM   (ARCH_THREADS*4)
 
#define FORTY_SPACES   " "
 40 spaces. More...
 
#define DO_MBR_PLEASE   "/tmp/DO-MBR-PLEASE"
 
#define MONDO_MNTLISTCHG   "/tmp/mountlist.changed"
 
#define log_it(format, args...)   log_debug_msg(2, __FILE__, __FUNCTION__, __LINE__, format, ## args)
 Compatibility define to change log_it() calls to log_debug_msg() calls. More...
 
#define log_msg(level, format, args...)   log_debug_msg(level, __FILE__, __FUNCTION__, __LINE__, format, ## args)
 Macro to log a message along with file, line, and function information. More...
 
#define DEFAULT_DVD_DISK_SIZE   4480
 The default size (in MB) of a DVD disk, unless the user says otherwise. More...
 
#define DEFAULT_DEBUG_LEVEL   4
 By default, don't log messages with a loglevel higher than this. More...
 
#define SZ_NTFSPROG_VOLSIZE   "1048576"
 
#define NTFSPROG_PARAMS   "-z0 -V" SZ_NTFSPROG_VOLSIZE " -o -b -d -g1"
 
#define MNT_CDROM   "/mnt/cdrom"
 
#define DEFAULT_MR_LOGLEVEL   4
 

Functions

void _mondo_assert_fail (const char *file, const char *function, int line, const char *exp)
 Assertion handler. More...
 

Detailed Description

The main header file for Mondo.

Definition in file my-stuff.h.

Macro Definition Documentation

◆ __USE_FILE_OFFSET64

#define __USE_FILE_OFFSET64

Definition at line 43 of file my-stuff.h.

◆ __USE_LARGEFILE64

#define __USE_LARGEFILE64

Definition at line 46 of file my-stuff.h.

◆ _MY_STUFF_H_

#define _MY_STUFF_H_

Definition at line 26 of file my-stuff.h.

◆ ACL_BIGGLST_FNAME_RAW_SZ

#define ACL_BIGGLST_FNAME_RAW_SZ   "%s/acl_list.big.gz"

Definition at line 335 of file my-stuff.h.

◆ ACL_LIST_FNAME_RAW_SZ

#define ACL_LIST_FNAME_RAW_SZ   "%s/acl_list.%ld.gz"

Definition at line 334 of file my-stuff.h.

◆ AFIOBALL_FNAME_RAW_SZ

#define AFIOBALL_FNAME_RAW_SZ   (bkpinfo->use_star)?"%s/tmpfs/%ld.star.%s":"%s/tmpfs/%ld.afio.%s"

The template for an afioball filename.

The first argument (s) is the tempdir and the second (d) is the filelist number.

Definition at line 342 of file my-stuff.h.

◆ ALT_TAPE

#define ALT_TAPE   "/dev/ht0"

Definition at line 320 of file my-stuff.h.

◆ ARBITRARY_MAXIMUM

#define ARBITRARY_MAXIMUM   2000

The maximum number of items showing at once in the mountlist or filelist editor.

Definition at line 120 of file my-stuff.h.

◆ ARCH_BUFFER_NUM

#define ARCH_BUFFER_NUM   (ARCH_THREADS*4)

Definition at line 344 of file my-stuff.h.

◆ ARCH_THREADS

#define ARCH_THREADS   2

The number of simultaneous threads running afio in the background.

Definition at line 343 of file my-stuff.h.

◆ assert

#define assert (   exp)    ((exp)?((void)0):_mondo_assert_fail(__FILE__, __FUNCTION__, __LINE__, #exp))

An assert macro that calls _mondo_assert_fail() when it fails.

Definition at line 109 of file my-stuff.h.

◆ assert_pointer_is_not_NULL

#define assert_pointer_is_not_NULL (   x)    {assert(x!=NULL);}

Assert that (x != NULL).

Definition at line 250 of file my-stuff.h.

◆ assert_string_is_neither_NULL_nor_zerolength

#define assert_string_is_neither_NULL_nor_zerolength (   x)    {assert(x!=NULL);assert(x[0]!='\0');}

Assert that (x != NULL) and (x[0] != '\0').

Definition at line 240 of file my-stuff.h.

◆ BIGGIEMAXSIZE

#define BIGGIEMAXSIZE   64L*1024L

Definition at line 337 of file my-stuff.h.

◆ BLK_ABORTED_BACKUP

#define BLK_ABORTED_BACKUP   102

Marker block: backup was aborted.

Definition at line 151 of file my-stuff.h.

◆ BLK_END_OF_BACKUP

#define BLK_END_OF_BACKUP   101

Marker block: end of backup.

Definition at line 150 of file my-stuff.h.

◆ BLK_END_OF_TAPE

#define BLK_END_OF_TAPE   100

Marker block: end of tape.

Definition at line 149 of file my-stuff.h.

◆ BLK_START_A_NORMBIGGIE

#define BLK_START_A_NORMBIGGIE   40

Marker block: start a normal biggiefile.

Definition at line 140 of file my-stuff.h.

◆ BLK_START_A_PIHBIGGIE

#define BLK_START_A_PIHBIGGIE   41

Marker block: start a ntfsprog'd biggiefile.

Definition at line 141 of file my-stuff.h.

◆ BLK_START_AFIOBALLS

#define BLK_START_AFIOBALLS   10

Marker block: start the afioball section.

Definition at line 134 of file my-stuff.h.

◆ BLK_START_AN_AFIO_OR_SLICE

#define BLK_START_AN_AFIO_OR_SLICE   20

Marker block: start an afioball or a slice.

Definition at line 136 of file my-stuff.h.

◆ BLK_START_BIGGIEFILES

#define BLK_START_BIGGIEFILES   30

Marker block: start the biggiefile section.

Definition at line 138 of file my-stuff.h.

◆ BLK_START_EXAT_FILE

#define BLK_START_EXAT_FILE   47

Definition at line 144 of file my-stuff.h.

◆ BLK_START_EXTENDED_ATTRIBUTES

#define BLK_START_EXTENDED_ATTRIBUTES   45

Marker block: start xattr/acl info.

Definition at line 142 of file my-stuff.h.

◆ BLK_START_FILE

#define BLK_START_FILE   80

Marker block: start a file (non-afio or slice).

Definition at line 147 of file my-stuff.h.

◆ BLK_START_OF_BACKUP

#define BLK_START_OF_BACKUP   1

Marker block: start a backup.

Definition at line 132 of file my-stuff.h.

◆ BLK_START_OF_TAPE

#define BLK_START_OF_TAPE   2

Marker block: start a tape.

Definition at line 133 of file my-stuff.h.

◆ BLK_STOP_A_BIGGIE

#define BLK_STOP_A_BIGGIE   59

Marker block: stop a biggiefile.

Definition at line 146 of file my-stuff.h.

◆ BLK_STOP_AFIOBALLS

#define BLK_STOP_AFIOBALLS   19

Marker block: stop the afioball section.

Definition at line 135 of file my-stuff.h.

◆ BLK_STOP_AN_AFIO_OR_SLICE

#define BLK_STOP_AN_AFIO_OR_SLICE   29

Marker block: stop an afioball or a slice.

Definition at line 137 of file my-stuff.h.

◆ BLK_STOP_BIGGIEFILES

#define BLK_STOP_BIGGIEFILES   39

Marker block: stop the biggiefile section.

Definition at line 139 of file my-stuff.h.

◆ BLK_STOP_EXAT_FILE

#define BLK_STOP_EXAT_FILE   48

Definition at line 145 of file my-stuff.h.

◆ BLK_STOP_EXTENDED_ATTRIBUTES

#define BLK_STOP_EXTENDED_ATTRIBUTES   46

Marker block: stop xattr/acl info.

Definition at line 143 of file my-stuff.h.

◆ BLK_STOP_FILE

#define BLK_STOP_FILE   89

Marker block: stop a file (non-afio or slice).

Definition at line 148 of file my-stuff.h.

◆ bool

#define bool   int

Create the illusion of a Boolean type.

Definition at line 20 of file my-stuff.h.

◆ CMDLINE

#define CMDLINE   "/proc/cmdline"

Definition at line 95 of file my-stuff.h.

◆ CP_BIN

#define CP_BIN   "cp"

Definition at line 322 of file my-stuff.h.

◆ CRC_M16

#define CRC_M16   0xA001

Mask for crc16.

Definition at line 112 of file my-stuff.h.

◆ CRC_MTT

#define CRC_MTT   0x1021

Mask for crc-ccitt.

Definition at line 113 of file my-stuff.h.

◆ DEFAULT_DEBUG_LEVEL

#define DEFAULT_DEBUG_LEVEL   4

By default, don't log messages with a loglevel higher than this.

Definition at line 362 of file my-stuff.h.

◆ DEFAULT_DVD_DISK_SIZE

#define DEFAULT_DVD_DISK_SIZE   4480

The default size (in MB) of a DVD disk, unless the user says otherwise.

Definition at line 360 of file my-stuff.h.

◆ DEFAULT_INTERNAL_TAPE_BLOCK_SIZE

#define DEFAULT_INTERNAL_TAPE_BLOCK_SIZE   32768

Definition at line 160 of file my-stuff.h.

◆ DEFAULT_MR_LOGLEVEL

#define DEFAULT_MR_LOGLEVEL   4

Definition at line 369 of file my-stuff.h.

◆ DO_MBR_PLEASE

#define DO_MBR_PLEASE   "/tmp/DO-MBR-PLEASE"

Definition at line 346 of file my-stuff.h.

◆ DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE

#define DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE   "/dev/md"

Definition at line 318 of file my-stuff.h.

◆ FALSE [1/2]

#define FALSE   0

The ubiquitous FALSE macro.

Definition at line 115 of file my-stuff.h.

◆ FALSE [2/2]

#define FALSE   0

The ubiquitous FALSE macro.

Definition at line 115 of file my-stuff.h.

◆ FILELIST_FNAME_RAW_SZ

#define FILELIST_FNAME_RAW_SZ   "%s/filelist.%ld"

The template for a filelist filename.

The first argument (s) is the tempdir and the second (d) is the filelist number.

Definition at line 330 of file my-stuff.h.

◆ FORTY_SPACES

#define FORTY_SPACES   " "

40 spaces.

Definition at line 345 of file my-stuff.h.

◆ HAVE_MALLOC

#define HAVE_MALLOC   1

Definition at line 5 of file my-stuff.h.

◆ IA64_BOOT_SIZE

#define IA64_BOOT_SIZE   "16384" /* Should be coherent with mindi */

Definition at line 70 of file my-stuff.h.

◆ IS_THIS_A_STREAMING_BACKUP

#define IS_THIS_A_STREAMING_BACKUP (   x)    (x == tape || x == udev || x == cdstream)

Determine whether x (t_bkptype) is a streaming backup.

Definition at line 175 of file my-stuff.h.

◆ log_it

#define log_it (   format,
  args... 
)    log_debug_msg(2, __FILE__, __FUNCTION__, __LINE__, format, ## args)

Compatibility define to change log_it() calls to log_debug_msg() calls.

Definition at line 353 of file my-stuff.h.

◆ log_msg

#define log_msg (   level,
  format,
  args... 
)    log_debug_msg(level, __FILE__, __FUNCTION__, __LINE__, format, ## args)

Macro to log a message along with file, line, and function information.

Definition at line 358 of file my-stuff.h.

◆ log_OS_error

#define log_OS_error (   x)    {log_msg(0, "%s (%s)", x, strerror(errno));}

Log the file, line, Mondo error message, and OS error message (errno).

Definition at line 245 of file my-stuff.h.

◆ MALLOC_CHECK_

#define MALLOC_CHECK_   1

Yes, we want malloc() to help us fix bugs.

Definition at line 285 of file my-stuff.h.

◆ malloc_string

#define malloc_string (   x)    { x = (char *)malloc(MAX_STR_LEN); if (!x) { fatal_error("Unable to malloc"); } x[0] = x[1] = '\0'; }

Malloc x to be MAX_STR_LEN bytes and call fatal_error() if we're out of memory.

Definition at line 290 of file my-stuff.h.

◆ MAX_MOUNTLIST_ENTRIES

#define MAX_MOUNTLIST_ENTRIES   8192

The maximum number of entries in the mountlist.

Definition at line 122 of file my-stuff.h.

◆ MAX_STR_LEN

#define MAX_STR_LEN   512

The maximum length of almost all char buffers in Mondo.

Definition at line 123 of file my-stuff.h.

◆ MAX_TAPECAT_FNAME_LEN

#define MAX_TAPECAT_FNAME_LEN   32

The maximum length of a filename in the tape catalog.

Definition at line 235 of file my-stuff.h.

◆ MAX_TAPECATALOG_ENTRIES

#define MAX_TAPECATALOG_ENTRIES   16384

The maximum number of entries in the tape catalog.

Definition at line 121 of file my-stuff.h.

◆ MAXIMUM_ADDITIONAL_RAID_VARS

#define MAXIMUM_ADDITIONAL_RAID_VARS   32

The maximum number of additional RAID variables per RAID device in the raidlist.

Definition at line 127 of file my-stuff.h.

◆ MAXIMUM_DISKS_PER_RAID_DEV

#define MAXIMUM_DISKS_PER_RAID_DEV   1024

The maximum number of disks per RAID device in the raidtab.

Definition at line 128 of file my-stuff.h.

◆ MAXIMUM_RAID_DEVS

#define MAXIMUM_RAID_DEVS   32

Note: Make this divisible by eight to avoid aligment issues on 64bit platforms like ia64.

The maximum number of RAID devices in the raidlist.

Definition at line 126 of file my-stuff.h.

◆ MDSTAT_FILE

#define MDSTAT_FILE   "/proc/mdstat"

The RAID kernel proc file.

Definition at line 89 of file my-stuff.h.

◆ MINDI_CACHE

#define MINDI_CACHE   "/"MINDI_CACHE_REL

Definition at line 77 of file my-stuff.h.

◆ MINDI_CACHE_REL

#define MINDI_CACHE_REL   "var/cache/mindi" /* Should be coherent with mindi */

The location where mindi media images are stored.

Definition at line 76 of file my-stuff.h.

◆ MINDI_LOGFILE

#define MINDI_LOGFILE   "/var/log/mindi.log"

Definition at line 78 of file my-stuff.h.

◆ MINDI_RUNFILE

#define MINDI_RUNFILE   "/var/log/mindi.run"

Definition at line 79 of file my-stuff.h.

◆ MKE2FS_OR_NEWFS

#define MKE2FS_OR_NEWFS   "mke2fs"

Definition at line 321 of file my-stuff.h.

◆ MNT_CDROM

#define MNT_CDROM   "/mnt/cdrom"

Definition at line 367 of file my-stuff.h.

◆ MNT_RESTORING

#define MNT_RESTORING   "/mnt/RESTORING"

Path to the location the hard drive is mounted on during a restore.

Definition at line 295 of file my-stuff.h.

◆ MONDO_CACHE

#define MONDO_CACHE   "/var/cache/mondo"

The location where mondo changed info are stored.

Definition at line 84 of file my-stuff.h.

◆ MONDO_GENISOIMAGE_CMD

#define MONDO_GENISOIMAGE_CMD   "genisoimage"

Definition at line 179 of file my-stuff.h.

◆ MONDO_GROWISOFS_NONBOOT

#define MONDO_GROWISOFS_NONBOOT   "growisofs -use-the-force-luke "MONDO_MKISOFS

growisofs command to generate a nonbootable DVD, except for the directory to image.

Definition at line 225 of file my-stuff.h.

◆ MONDO_GROWISOFS_REGULAR_ELILO

#define MONDO_GROWISOFS_REGULAR_ELILO   "growisofs -use-the-force-luke "MONDO_MKISOFS_REGULAR_ELILO

growisofs command to generate a bootable DVD using LILO, except for the directory to image.

Definition at line 215 of file my-stuff.h.

◆ MONDO_GROWISOFS_REGULAR_LILO

#define MONDO_GROWISOFS_REGULAR_LILO   "growisofs "MONDO_MKISOFS_REGULAR_SYSLINUX

growisofs command to generate a bootable DVD using LILO, except for the directory to image.

Definition at line 220 of file my-stuff.h.

◆ MONDO_GROWISOFS_REGULAR_SYSLINUX

#define MONDO_GROWISOFS_REGULAR_SYSLINUX   "growisofs -use-the-force-luke "MONDO_MKISOFS_REGULAR_SYSLINUX

growisofs command to generate a bootable DVD using isolinux, except for the directory to image.

Definition at line 210 of file my-stuff.h.

◆ MONDO_MKISOFS

#define MONDO_MKISOFS   " -J -r -v -p MondoRescue -publisher http://www.mondorescue.org -A MondoRescue -V _CD#_ "

Definition at line 181 of file my-stuff.h.

◆ MONDO_MKISOFS_CMD

#define MONDO_MKISOFS_CMD   "mkisofs"

Definition at line 178 of file my-stuff.h.

◆ MONDO_MKISOFS_CMS

#define MONDO_MKISOFS_CMS   " -b syslinux/isolinux.bin -c syslinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table "

Definition at line 182 of file my-stuff.h.

◆ MONDO_MKISOFS_REGULAR_ELILO

#define MONDO_MKISOFS_REGULAR_ELILO   MONDO_MKISOFS"-no-emul-boot -b images/mindi-bootroot.img -c images/boot.cat "

mkisofs command to generate a bootable CD using ELILO, except for -o option and the directory to image.

Definition at line 200 of file my-stuff.h.

◆ MONDO_MKISOFS_REGULAR_LILO

#define MONDO_MKISOFS_REGULAR_LILO   MONDO_MKISOFS_REGULAR_SYSLINUX

mkisofs command to generate a bootable CD using LILO, except for -o option and the directory to image.

Definition at line 195 of file my-stuff.h.

◆ MONDO_MKISOFS_REGULAR_SYSLINUX

#define MONDO_MKISOFS_REGULAR_SYSLINUX   MONDO_MKISOFS

mkisofs command to generate a bootable CD using isolinux, except for -o option and the directory to image.

Definition at line 190 of file my-stuff.h.

◆ MONDO_MKISOFS_UEFI

#define MONDO_MKISOFS_UEFI   "-efi-boot images/mindi-bootroot.img -no-emul-boot "

Definition at line 185 of file my-stuff.h.

◆ MONDO_MNTLISTCHG

#define MONDO_MNTLISTCHG   "/tmp/mountlist.changed"

Definition at line 347 of file my-stuff.h.

◆ MONDO_TMPISOS

#define MONDO_TMPISOS   "temporary.iso"

The stub name of the temporary ISO image to create, burn, and remove.

Definition at line 205 of file my-stuff.h.

◆ MONDO_UEFI_PREFIX

#define MONDO_UEFI_PREFIX   " -b EFI/isolinux.bin -c EFI/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot "

Definition at line 183 of file my-stuff.h.

◆ MONDO_XORRISO_CMD

#define MONDO_XORRISO_CMD   "xorriso -as mkisofs"

Definition at line 180 of file my-stuff.h.

◆ NOOF_ERR_LINES

#define NOOF_ERR_LINES   6

The number of lines of log output to keep at the bottom of the screen.

Definition at line 119 of file my-stuff.h.

◆ NTFSPROG_PARAMS

#define NTFSPROG_PARAMS   "-z0 -V" SZ_NTFSPROG_VOLSIZE " -o -b -d -g1"

Definition at line 365 of file my-stuff.h.

◆ paranoid_close

#define paranoid_close (   x)    {if(close(x)) {log_msg(5, "close err");} x=-999; }

close() x and log a message if it fails.

Definition at line 255 of file my-stuff.h.

◆ paranoid_fclose

#define paranoid_fclose (   x)    {if(fclose(x)) {log_msg(5, "fclose err");} x=NULL; }

fclose() x and log a message if it fails.

Definition at line 260 of file my-stuff.h.

◆ paranoid_free

#define paranoid_free (   x)    {if (x != NULL) free(x); x=NULL;}

Free x and set it to NULL.

Definition at line 275 of file my-stuff.h.

◆ paranoid_MR_finish

#define paranoid_MR_finish (   x)    {free_MR_global_filenames (); finish(x); }

Free variables and call finish(x).

Definition at line 280 of file my-stuff.h.

◆ paranoid_pclose

#define paranoid_pclose (   x)    {if(pclose(x)) {log_msg(5, "pclose err");} x=NULL; }

pclose() x and log a message if it fails.

Definition at line 265 of file my-stuff.h.

◆ paranoid_system

#define paranoid_system (   x)    {if(system(x)) log_msg(4, x); }

Run the command x and log it if it fails.

Definition at line 270 of file my-stuff.h.

◆ RAID_DEVICE_STUB

#define RAID_DEVICE_STUB   DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE

Definition at line 319 of file my-stuff.h.

◆ RAIDTAB_FNAME

#define RAIDTAB_FNAME   "/etc/raidtab"

The filename of the raidtab file, at least on Linux.

Definition at line 130 of file my-stuff.h.

◆ SCREEN_LENGTH

#define SCREEN_LENGTH   25

The default size of the screen.

Definition at line 118 of file my-stuff.h.

◆ SLICE_SIZE

#define SLICE_SIZE   4096

The size of a slice of a biggiefile.

Definition at line 165 of file my-stuff.h.

◆ STAR_ACL_SZ

#define STAR_ACL_SZ   "-xattr -acl"

Definition at line 9 of file my-stuff.h.

◆ STD_PREFIX

#define STD_PREFIX   "mondorescue" /* Should be coherent with mindi */

Definition at line 71 of file my-stuff.h.

◆ SZ_NTFSPROG_VOLSIZE

#define SZ_NTFSPROG_VOLSIZE   "1048576"

Definition at line 364 of file my-stuff.h.

◆ TAPE_BLOCK_SIZE

#define TAPE_BLOCK_SIZE   131072L /* was 8192; 06/2002-->65536; 11/2002-->131072 */

The external tape blocksize.

Definition at line 157 of file my-stuff.h.

◆ TRUE [1/2]

#define TRUE   1

The even more ubiquitous TRUE macro.

Definition at line 116 of file my-stuff.h.

◆ TRUE [2/2]

#define TRUE   1

The even more ubiquitous TRUE macro.

Definition at line 116 of file my-stuff.h.

◆ VANILLA_SCSI_CDROM

#define VANILLA_SCSI_CDROM   "/dev/scd0"

Definition at line 315 of file my-stuff.h.

◆ VANILLA_SCSI_TAPE

#define VANILLA_SCSI_TAPE   "/dev/st0"

Definition at line 316 of file my-stuff.h.

◆ VANILLA_USB_DEVICE

#define VANILLA_USB_DEVICE   "/dev/hda"

Definition at line 317 of file my-stuff.h.

◆ WELCOME_STRING

#define WELCOME_STRING   "W E L C O M E T O M O N D O R E S C U E"

Welcome string displayed at the top of the newt interface.

Definition at line 230 of file my-stuff.h.

◆ XATTR_BIGGLST_FNAME_RAW_SZ

#define XATTR_BIGGLST_FNAME_RAW_SZ   "%s/xattr_list.big.gz"

Definition at line 333 of file my-stuff.h.

◆ XATTR_LIST_FNAME_RAW_SZ

#define XATTR_LIST_FNAME_RAW_SZ   "%s/xattr_list.%ld.gz"

Definition at line 332 of file my-stuff.h.