Changeset 3892 in MondoRescue for branches/3.3/mondo/src/mondorestore/mondo-prep.c
- Timestamp:
- Mar 12, 2024, 3:10:24 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mondo/src/mondorestore/mondo-prep.c
r3885 r3892 1026 1026 } 1027 1027 #else 1028 fin = fopen( "/proc/mdstat", "r");1028 fin = fopen(MDSTAT_FILE, "r"); 1029 1029 if (!fin) { 1030 log_OS_error( "/proc/mdstat");1030 log_OS_error(MDSTAT_FILE); 1031 1031 paranoid_free(incoming); 1032 1032 return (1); … … 1127 1127 log_msg(1, "Creating LVMs"); 1128 1128 if (does_file_exist("/tmp/i-want-my-lvm")) { 1129 wait_until_software_raids_are_prepped( "/proc/mdstat",100);1129 wait_until_software_raids_are_prepped(100); 1130 1130 log_to_screen("Configuring LVM"); 1131 1131 if (!g_text_mode) { … … 1899 1899 log_it("Partitioning drive %s", drivename); 1900 1900 1901 #if __FreeBSD__1901 #ifdef __FreeBSD__ 1902 1902 log_it("(Not opening fdisk now; that's the Linux guy's job)"); 1903 1903 pout_to_fdisk = NULL; … … 1920 1920 if (lino < 0) { 1921 1921 // device not found in mountlist 1922 #if __FreeBSD__1922 #ifdef __FreeBSD__ 1923 1923 // If this is the first partition (just as a sentinel value), 1924 1924 // then see if the user has picked 'dangerously-dedicated' mode. … … 1986 1986 1987 1987 log_it("Wiping %s's partition table", drivename); 1988 #if __FreeBSD__1988 #ifdef __FreeBSD__ 1989 1989 // FreeBSD doesn't let you write to blk devices in <512byte chunks. 1990 1990 file = open(drivename, O_WRONLY);
Note:
See TracChangeset
for help on using the changeset viewer.