Changeset 3736 in MondoRescue


Ignore:
Timestamp:
Nov 18, 2019, 1:47:33 AM (4 years ago)
Author:
Bruno Cornec
Message:

create and mount btrfs subvolumes if any

File:
1 edited

Legend:

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

    r3703 r3736  
    796796mr_free(tmp);
    797797
     798/*  BR#852: we need to create BTRFS subvols now */
     799if ((res) && (strcmp(format, "btrfs") == 0)) {
     800    /*  Creating potential btrfs subvolumes */
     801    if (does_file_exist("/tmp/create-btrfs-subvol")) {
     802        run_program_and_log_output("/tmp/create-btrfs-subvol",3);
     803    }
     804    /*  Mounting potential btrfs subvolumes */
     805    if (does_file_exist("/tmp/mount-btrfs-subvol")) {
     806        run_program_and_log_output("/tmp/mount-btrfs-subvol",3);
     807    }
     808}
     809
    798810/*  BR#836: we need to do it a second time if -m wasn't working in that version for XFS */
    799811if ((res) && (strcmp(format, "xfs") == 0)) {
     
    964976if (g_partition_table_locked_up > 0) {
    965977    if (retval > 0 && !interactively) {
    966 //123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
     978                     //123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789
    967979        log_to_screen("Partition table locked up %d times. At least one 'mkfs' (format) command", g_partition_table_locked_up);
    968980        log_to_screen("failed. I think these two events are related. Sometimes, fdisk's ioctl() call");
Note: See TracChangeset for help on using the changeset viewer.