source: trunk/mondo/src/common/libmondo-devices.h @ 1106

Last change on this file since 1106 was 1106, checked in by bruno, 12 years ago

merge -r1082:1105 $SVN_M/branches/stable

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1/*
2 * $Id: libmondo-devices.h 1106 2007-02-07 22:55:11Z 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);
12bool find_and_mount_actual_cd(struct s_bkpinfo *bkpinfo, char *mountpoint);
13char *find_cdrom_device(bool try_to_mount);
14char *find_dvd_device(void);
15long get_phys_size_of_drive(char *drive);
16bool is_this_a_valid_disk_format(char *format);
17int find_device_in_mountlist(struct mountlist_itself *mountlist,
18                             char *device);
19bool is_this_device_mounted(char *device_raw);
20char *where_is_root_mounted(void);
21char *make_vn(char *file);
22int kick_vn(char *vn);
23char which_boot_loader(char *which_device);
24
25
26
27char *find_cdrw_device(void);
28
29int interactively_obtain_media_parameters_from_user(struct s_bkpinfo *,
30                                                    bool);
31
32
33
34void insist_on_this_cd_number(struct s_bkpinfo *bkpinfo,
35                              int cd_number_i_want);
36
37int what_number_cd_is_this(struct s_bkpinfo *bkpinfo);
38
39int eject_device(char *);
40
41char *list_of_NFS_mounts_only(void);
42
43void sensibly_set_tmpdir_and_scratchdir(struct s_bkpinfo *bkpinfo);
44
45
46bool set_dev_to_this_if_rx_OK(char *output, 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(struct s_bkpinfo *bkpinfo);
57
58bool is_dev_an_NTFS_dev(char *bigfile_fname);
59
60char *which_partition_format(const char *drive);
61char *bkptype_to_string(t_bkptype bt);
62
63#endif /* LIBMONDO_DEVICES_H */
Note: See TracBrowser for help on using the repository browser.