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

Last change on this file since 59 was 59, checked in by bcornec, 14 years ago

Trunk: indent on all source files

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1/*
2 * $Id: libmondo-devices.h 59 2005-10-10 23:34:31Z bcornec $
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(struct s_bkpinfo *bkpinfo, char *mountpoint);
10int find_cdrom_device(char *output, bool try_to_mount);
11int find_dvd_device(char *output, bool try_to_mount);
12long get_phys_size_of_drive(char *drive);
13bool is_this_a_valid_disk_format(char *format);
14int mount_CDROM_here(char *device, 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
25int find_cdrw_device(char *cdrw_device);
26
27int interactively_obtain_media_parameters_from_user(struct s_bkpinfo *,
28                                                    bool);
29
30
31
32void make_fifo(char *store_name_here, char *stub);
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_devices_and_mounts();
42char *list_of_NFS_mounts_only();
43
44void sensibly_set_tmpdir_and_scratchdir(struct s_bkpinfo *bkpinfo);
45
46
47bool set_dev_to_this_if_rx_OK(char *output, char *dev);
48
49
50void retract_CD_tray_and_defeat_autorun(void);
51bool does_string_exist_in_first_N_blocks(char *dev, char *str, int n);
52
53int inject_device(char *dev);
54
55bool does_nonMS_partition_exist(void);
56char *resolve_softlinks_to_get_to_actual_device_file(char *incoming);
57void set_g_cdrom_and_g_dvd_to_bkpinfo_value(struct s_bkpinfo *bkpinfo);
58
59bool is_dev_an_NTFS_dev(char *bigfile_fname);
60
61char *which_partition_format(const char *drive);
Note: See TracBrowser for help on using the repository browser.