source: MondoRescue/branches/2.2.10/mondo/src/common/libmondo-devices.h@ 2325

Last change on this file since 2325 was 2325, checked in by Bruno Cornec, 15 years ago

r3336@localhost: bruno | 2009-08-11 16:32:36 +0200

  • bkpinfo->media_device, bkpinfo->nfs_remote_dir, and bkpinfo->nfs_mount are now dynamically allocated
  • new interfaces for find_cdrom_device(), find_tape_device_and_size(), find_dvd_device(), find_cdrw_device(), set_dev_to_this_if_rx_OK() and read_cfg_var() which allocate the string now returned
  • Better differentiation between ISO and NFS iso file names construction
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1/*
2 * $Id: libmondo-devices.h 2325 2009-08-18 13:19:15Z 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);
9int find_and_mount_actual_cd(char *mountpoint);
10char *find_cdrom_device(bool try_to_mount);
11char *find_dvd_device();
12long get_phys_size_of_drive(char *drive);
13bool is_this_a_valid_disk_format(char *format);
14int mount_CDROM_here(char *device, const char *mountpoint);
15int find_device_in_mountlist(struct mountlist_itself *mountlist,
16 char *device);
17bool is_this_device_mounted(char *device_raw);
18char *where_is_root_mounted(void);
19char *make_vn(char *file);
20int kick_vn(char *vn);
21char which_boot_loader(char *which_device);
22
23
24
25char *find_cdrw_device();
26
27int interactively_obtain_media_parameters_from_user(bool);
28
29
30
31void make_fifo(char *store_name_here, char *stub);
32
33void insist_on_this_cd_number(
34 int cd_number_i_want);
35
36int what_number_cd_is_this();
37
38int eject_device(char *);
39
40char *list_of_NFS_devices_and_mounts();
41char *list_of_NFS_mounts_only();
42
43void sensibly_set_scratchdir();
44
45
46char *set_dev_to_this_if_rx_OK(char *dev);
47
48
49void retract_CD_tray_and_defeat_autorun(void);
50bool does_string_exist_in_first_N_blocks(char *dev, char *str, int n);
51
52int inject_device(char *dev);
53
54bool does_nonMS_partition_exist(void);
55char *resolve_softlinks_to_get_to_actual_device_file(char *incoming);
56void set_g_cdrom_and_g_dvd_to_bkpinfo_value();
57
58bool is_dev_an_NTFS_dev(char *bigfile_fname);
59
60char *which_partition_format(const char *drive);
Note: See TracBrowser for help on using the repository browser.