source: MondoRescue/trunk/mondo/mondo/src/libmondo-devices.h@ 795

Last change on this file since 795 was 783, checked in by Bruno Cornec, 18 years ago
  • Massive rewrite continues for memory management.
  • main structure should now have all parameters allocated dynamically
  • new lib libmr.a + dir + build process reviewed to support it.
  • new include subdir to host external definitions of the new lib
  • code now compiles. Still one remaining link issues for mondorestore. This should allow for some tests soon.

(goal is to separate completely reviewed code and functions and provide clean interfaces)

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