source: MondoRescue/branches/stable/mondo/src/common/libmondo-devices-EXT.h @ 1663

Last change on this file since 1663 was 1663, checked in by Bruno Cornec, 12 years ago
  • Fix bug #197 (based on an initial patch of Scott Cummings)
  • Fix a bug where df was using locale to print messages and wasn't filtered correctly
  • mkdtemp checked in configure
  • reset_bkpinfo called as early as possible by both main program.
  • It creates a tmpdir cleanly with mkdtemp in setup_tmpdir subfunction, which takes in account TMPIR and TMP env var. Remains to see what tmpfs does and tests
  • configure.in should also be filtered.
  • Remove g_bkpinfo_DONTUSETHIS
  • remove bkpinfo also from header files
  • Render bkpinfo global (potential issue on thread, but should not be a problem as that structure is indeed static during archive)
  • Apply patch from Andree Leidenfrost, modified a bit to use bkpinfo->tmpdir instead of /tmp or MINDI_CACHE when appropriate. Fix security issues in mondo. Thanks al ot Andree for catching all those issues.
  • /tmp => /var/log for mondorestore.log in mindi
  • Update linux terminfo to fix a color issue (Andree Leidenfrost)
  • Removes useless log file (Andree Leidenfrost)
  • replace vi with find_my_editor during restore (Andree Leidenfrost)
  • sync in bg in mindi (VMWare issue to look at)
  • mindi/mindi-busybox have a different version than mondo for pb
  • PB-SUF also added to spec file
  • Fix a bug for pb build (omission of PB-SUF declaration)

(merge -r1631:1662 $SVN_M/branches/2.2.5)

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1/*
2 * $Id: libmondo-devices-EXT.h 1663 2007-09-27 10:21:18Z bruno $
3 */
4
5extern bool am_I_in_disaster_recovery_mode(void);
6extern bool does_device_exist(char *device);
7extern int does_partition_exist(const char *drive, int partno);
8extern bool does_string_exist_in_boot_block(char *dev, char *str);
9extern int find_and_mount_actual_cd(
10                                    char *mountpoint);
11extern int find_cdrom_device(char *output, bool try_to_mount);
12extern int find_dvd_device(char *output, bool try_to_mount);
13extern long get_phys_size_of_drive(char *drive);
14extern bool is_this_a_valid_disk_format(char *format);
15extern bool is_this_device_mounted(char *device_raw);
16extern int find_device_in_mountlist(struct mountlist_itself *mountlist,
17                                    char *device);
18extern int mount_CDROM_here(char *device, char *mountpoint);
19extern long long size_of_specific_device_in_mountlist(struct
20                                                      mountlist_itself
21                                                      *mountlist,
22                                                      char *device);
23extern char *where_is_root_mounted(void);
24extern char *make_vn(char *file);
25extern int kick_vn(char *vn);
26extern char which_boot_loader(char *which_device);
27
28
29
30extern int find_cdrw_device(char *cdrw_device);
31
32
33extern int interactively_obtain_media_parameters_from_user(bool);
34extern void insist_on_this_cd_number(
35                                     int cd_number_i_want);
36
37
38extern int what_number_cd_is_this();
39
40
41extern int eject_device(char *);
42
43extern char *list_of_NFS_mounts_only(void);
44
45extern void sensibly_set_tmpdir_and_scratchdir();
46
47
48extern bool set_dev_to_this_if_rx_OK(char *, char *);
49
50extern void retract_CD_tray_and_defeat_autorun(void);
51
52extern bool does_string_exist_in_first_N_blocks(char *dev, char *str,
53                                                int n);
54
55extern int inject_device(char *dev);
56extern bool does_nonMS_partition_exist(void);
57extern char *resolve_softlinks_to_get_to_actual_device_file(char
58                                                            *incoming);
59
60extern void set_g_cdrom_and_g_dvd_to_bkpinfo_value();
61
62extern bool is_dev_an_NTFS_dev(char *bigfile_fname);
63
64extern char *which_partition_format(const char *drive);
65extern char *bkptype_to_string(t_bkptype bt);
Note: See TracBrowser for help on using the repository browser.