Changeset 3743


Ignore:
Timestamp:
Nov 18, 2019, 12:32:17 PM (3 months ago)
Author:
Bruno Cornec
Message:

Really place the btrfs subvol handler at the right place i.e. shared

Location:
branches/3.3/mondo/src/mondorestore
Files:
2 edited

Legend:

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

    r3734 r3743  
    576576    (void)mount_device("/proc","/proc","proc",TRUE);
    577577    (void)mount_device("/sys","/sys","sysfs",TRUE);
     578    /*  BR#852: we need to create BTRFS subvols now */
     579    /*  Creating potential btrfs subvolumes */
     580    if (does_file_exist("/tmp/create-btrfs-subvol")) {
     581        run_program_and_log_output("/tmp/create-btrfs-subvol",3);
     582    }
     583    /*  Mounting potential btrfs subvolumes */
     584    if (does_file_exist("/tmp/mount-btrfs-subvol")) {
     585        run_program_and_log_output("/tmp/mount-btrfs-subvol",3);
     586    }
    578587    run_program_and_log_output("df -m -P -T", 3);
    579588    paranoid_free(mountlist);
  • branches/3.3/mondo/src/mondorestore/mondorestore.c

    r3741 r3743  
    19731973        retval++;
    19741974        goto end_of_func;
    1975     }
    1976     /*  BR#852: we need to create BTRFS subvols now */
    1977     /*  Creating potential btrfs subvolumes */
    1978     if (does_file_exist("/tmp/create-btrfs-subvol")) {
    1979         run_program_and_log_output("/tmp/create-btrfs-subvol",3);
    1980     }
    1981     /*  Mounting potential btrfs subvolumes */
    1982     if (does_file_exist("/tmp/mount-btrfs-subvol")) {
    1983         run_program_and_log_output("/tmp/mount-btrfs-subvol",3);
    19841975    }
    19851976
Note: See TracChangeset for help on using the changeset viewer.