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

Last change on this file since 1770 was 1663, checked in by Bruno Cornec, 17 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: 1.6 KB
Line 
1/*
2 * $Id: libmondo-devices.h 1663 2007-09-27 10:21:18Z bruno $
3 */
4
5#ifndef LIBMONDO_DEVICES_H
6# define LIBMONDO_DEVICES_H
7
8bool am_I_in_disaster_recovery_mode(void);
9bool does_device_exist(char *device);
10int does_partition_exist(const char *drive, int partno);
11bool does_string_exist_in_boot_block(char *dev, char *str);
12int find_and_mount_actual_cd(char *mountpoint);
13int find_cdrom_device(char *output, bool try_to_mount);
14int find_dvd_device(char *output, bool try_to_mount);
15long get_phys_size_of_drive(char *drive);
16bool is_this_a_valid_disk_format(char *format);
17int mount_CDROM_here(char *device, char *mountpoint);
18int find_device_in_mountlist(struct mountlist_itself *mountlist,
19 char *device);
20bool is_this_device_mounted(char *device_raw);
21char *where_is_root_mounted(void);
22char *make_vn(char *file);
23int kick_vn(char *vn);
24char which_boot_loader(char *which_device);
25
26
27
28int find_cdrw_device(char *cdrw_device);
29
30int interactively_obtain_media_parameters_from_user(bool);
31
32void insist_on_this_cd_number(
33 int cd_number_i_want);
34
35int what_number_cd_is_this();
36
37int eject_device(char *);
38
39char *list_of_NFS_mounts_only(void);
40
41void sensibly_set_tmpdir_and_scratchdir();
42
43
44bool set_dev_to_this_if_rx_OK(char *output, char *dev);
45
46
47void retract_CD_tray_and_defeat_autorun(void);
48bool does_string_exist_in_first_N_blocks(char *dev, char *str, int n);
49
50int inject_device(char *dev);
51
52bool does_nonMS_partition_exist(void);
53char *resolve_softlinks_to_get_to_actual_device_file(char *incoming);
54void set_g_cdrom_and_g_dvd_to_bkpinfo_value();
55
56bool is_dev_an_NTFS_dev(char *bigfile_fname);
57
58char *which_partition_format(const char *drive);
59
60#endif /* LIBMONDO_DEVICES_H */
Note: See TracBrowser for help on using the repository browser.