Ignore:
Timestamp:
Mar 12, 2024, 3:10:24 AM (3 months ago)
Author:
Bruno Cornec
Message:

More compiler fixes

  • Fix unused vars
  • Fix FreeBSD #if alone
  • Use MDSTAT_FILE everywhere
  • Fix missing break
  • Fix some strncpy. mr_strncpy used when safe
  • Fix wrong g_isoform_header_str proto !
  • find-cd & find-dvd => find-optical
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/mondorestore/mondo-prep.c

    r3885 r3892  
    10261026    }
    10271027#else
    1028     fin = fopen("/proc/mdstat", "r");
     1028    fin = fopen(MDSTAT_FILE, "r");
    10291029    if (!fin) {
    1030         log_OS_error("/proc/mdstat");
     1030        log_OS_error(MDSTAT_FILE);
    10311031        paranoid_free(incoming);
    10321032        return (1);
     
    11271127log_msg(1, "Creating LVMs");
    11281128if (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);
    11301130    log_to_screen("Configuring LVM");
    11311131    if (!g_text_mode) {
     
    18991899log_it("Partitioning drive %s", drivename);
    19001900
    1901 #if __FreeBSD__
     1901#ifdef __FreeBSD__
    19021902    log_it("(Not opening fdisk now; that's the Linux guy's job)");
    19031903    pout_to_fdisk = NULL;
     
    19201920    if (lino < 0) {
    19211921        // device not found in mountlist
    1922 #if __FreeBSD__
     1922#ifdef __FreeBSD__
    19231923            // If this is the first partition (just as a sentinel value),
    19241924            // then see if the user has picked 'dangerously-dedicated' mode.
     
    19861986
    19871987        log_it("Wiping %s's partition table", drivename);
    1988 #if __FreeBSD__
     1988#ifdef __FreeBSD__
    19891989            // FreeBSD doesn't let you write to blk devices in <512byte chunks.
    19901990            file = open(drivename, O_WRONLY);
Note: See TracChangeset for help on using the changeset viewer.