| 1 | /*
|
|---|
| 2 | * $Id: libmondo-devices.h 1156 2007-02-13 01:04:40Z bruno $
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef LIBMONDO_DEVICES_H
|
|---|
| 6 | # define LIBMONDO_DEVICES_H
|
|---|
| 7 |
|
|---|
| 8 | bool am_I_in_disaster_recovery_mode(void);
|
|---|
| 9 | bool does_device_exist(char *device);
|
|---|
| 10 | int does_partition_exist(const char *drive, int partno);
|
|---|
| 11 | bool does_string_exist_in_boot_block(char *dev, char *str);
|
|---|
| 12 | int find_and_mount_actual_cd(struct s_bkpinfo *bkpinfo, char *mountpoint);
|
|---|
| 13 | int find_cdrom_device(char *output, bool try_to_mount);
|
|---|
| 14 | int find_dvd_device(char *output, bool try_to_mount);
|
|---|
| 15 | long get_phys_size_of_drive(char *drive);
|
|---|
| 16 | bool is_this_a_valid_disk_format(char *format);
|
|---|
| 17 | int mount_CDROM_here(char *device, char *mountpoint);
|
|---|
| 18 | int find_device_in_mountlist(struct mountlist_itself *mountlist,
|
|---|
| 19 | char *device);
|
|---|
| 20 | bool is_this_device_mounted(char *device_raw);
|
|---|
| 21 | char *where_is_root_mounted(void);
|
|---|
| 22 | char *make_vn(char *file);
|
|---|
| 23 | int kick_vn(char *vn);
|
|---|
| 24 | char which_boot_loader(char *which_device);
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | int find_cdrw_device(char *cdrw_device);
|
|---|
| 29 |
|
|---|
| 30 | int interactively_obtain_media_parameters_from_user(struct s_bkpinfo *,
|
|---|
| 31 | bool);
|
|---|
| 32 |
|
|---|
| 33 | void insist_on_this_cd_number(struct s_bkpinfo *bkpinfo,
|
|---|
| 34 | int cd_number_i_want);
|
|---|
| 35 |
|
|---|
| 36 | int what_number_cd_is_this(struct s_bkpinfo *bkpinfo);
|
|---|
| 37 |
|
|---|
| 38 | int eject_device(char *);
|
|---|
| 39 |
|
|---|
| 40 | char *list_of_NFS_mounts_only(void);
|
|---|
| 41 |
|
|---|
| 42 | void sensibly_set_tmpdir_and_scratchdir(struct s_bkpinfo *bkpinfo);
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | bool set_dev_to_this_if_rx_OK(char *output, char *dev);
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 | void retract_CD_tray_and_defeat_autorun(void);
|
|---|
| 49 | bool does_string_exist_in_first_N_blocks(char *dev, char *str, int n);
|
|---|
| 50 |
|
|---|
| 51 | int inject_device(char *dev);
|
|---|
| 52 |
|
|---|
| 53 | bool does_nonMS_partition_exist(void);
|
|---|
| 54 | char *resolve_softlinks_to_get_to_actual_device_file(char *incoming);
|
|---|
| 55 | void set_g_cdrom_and_g_dvd_to_bkpinfo_value(struct s_bkpinfo *bkpinfo);
|
|---|
| 56 |
|
|---|
| 57 | bool is_dev_an_NTFS_dev(char *bigfile_fname);
|
|---|
| 58 |
|
|---|
| 59 | char *which_partition_format(const char *drive);
|
|---|
| 60 |
|
|---|
| 61 | #endif /* LIBMONDO_DEVICES_H */
|
|---|