Changeset 59 in MondoRescue for trunk/mondo/mondo/common/libmondo-devices.h
- Timestamp:
- Oct 11, 2005, 1:34:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-devices.h
r30 r59 1 1 /* 2 * $Id : libmondo-devices.h,v 1.4 2004/06/17 11:57:52 hugo Exp$2 * $Id$ 3 3 */ 4 4 5 bool am_I_in_disaster_recovery_mode (void); 6 bool does_device_exist (char *device); 7 int does_partition_exist (const char *drive, int partno); 8 bool does_string_exist_in_boot_block (char *dev, char *str); 9 int find_and_mount_actual_cd (struct s_bkpinfo *bkpinfo, char *mountpoint); 10 int find_cdrom_device (char *output, bool try_to_mount); 11 int find_dvd_device (char *output, bool try_to_mount); 12 long get_phys_size_of_drive (char *drive); 13 bool is_this_a_valid_disk_format (char *format); 14 int mount_CDROM_here (char *device, char *mountpoint); 15 int find_device_in_mountlist (struct mountlist_itself *mountlist, char *device); 16 bool is_this_device_mounted (char *device_raw); 17 char *where_is_root_mounted (void); 18 char *make_vn (char *file); 19 int kick_vn (char *vn); 20 char which_boot_loader (char *which_device); 5 bool am_I_in_disaster_recovery_mode(void); 6 bool does_device_exist(char *device); 7 int does_partition_exist(const char *drive, int partno); 8 bool does_string_exist_in_boot_block(char *dev, char *str); 9 int find_and_mount_actual_cd(struct s_bkpinfo *bkpinfo, char *mountpoint); 10 int find_cdrom_device(char *output, bool try_to_mount); 11 int find_dvd_device(char *output, bool try_to_mount); 12 long get_phys_size_of_drive(char *drive); 13 bool is_this_a_valid_disk_format(char *format); 14 int mount_CDROM_here(char *device, char *mountpoint); 15 int find_device_in_mountlist(struct mountlist_itself *mountlist, 16 char *device); 17 bool is_this_device_mounted(char *device_raw); 18 char *where_is_root_mounted(void); 19 char *make_vn(char *file); 20 int kick_vn(char *vn); 21 char which_boot_loader(char *which_device); 21 22 22 23 23 24 24 int find_cdrw_device 25 int find_cdrw_device(char *cdrw_device); 25 26 26 int interactively_obtain_media_parameters_from_user(struct s_bkpinfo *, bool); 27 int interactively_obtain_media_parameters_from_user(struct s_bkpinfo *, 28 bool); 27 29 28 30 29 31 30 void make_fifo(char *store_name_here, char*stub);32 void make_fifo(char *store_name_here, char *stub); 31 33 32 void insist_on_this_cd_number (struct s_bkpinfo* bkpinfo, int cd_number_i_want); 34 void insist_on_this_cd_number(struct s_bkpinfo *bkpinfo, 35 int cd_number_i_want); 33 36 34 37 int what_number_cd_is_this(struct s_bkpinfo *bkpinfo); 35 38 36 int eject_device(char *);39 int eject_device(char *); 37 40 38 41 char *list_of_NFS_devices_and_mounts(); … … 42 45 43 46 44 bool set_dev_to_this_if_rx_OK(char *output, char *dev);47 bool set_dev_to_this_if_rx_OK(char *output, char *dev); 45 48 46 49 47 50 void retract_CD_tray_and_defeat_autorun(void); 48 bool does_string_exist_in_first_N_blocks 51 bool does_string_exist_in_first_N_blocks(char *dev, char *str, int n); 49 52 50 int inject_device(char *dev);53 int inject_device(char *dev); 51 54 52 55 bool does_nonMS_partition_exist(void); 53 char *resolve_softlinks_to_get_to_actual_device_file(char *incoming);54 void set_g_cdrom_and_g_dvd_to_bkpinfo_value(struct s_bkpinfo *bkpinfo);56 char *resolve_softlinks_to_get_to_actual_device_file(char *incoming); 57 void set_g_cdrom_and_g_dvd_to_bkpinfo_value(struct s_bkpinfo *bkpinfo); 55 58 56 59 bool is_dev_an_NTFS_dev(char *bigfile_fname);
Note:
See TracChangeset
for help on using the changeset viewer.