[rear-devel] [rear/rear] 616cd1: Removed 2>/dev/null redirections where possible

Johannes Meixner noreply at github.com
Fri Oct 18 13:55:08 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: 616cd11566490af12acc53259ee4e805170547b3
      https://github.com/rear/rear/commit/616cd11566490af12acc53259ee4e805170547b3
  Author: Johannes Meixner <jsmeix at suse.de>
  Date:   2019-10-15 (Tue, 15 Oct 2019)

  Changed paths:
    M usr/share/rear/backup/RSYNC/GNU/Linux/610_start_selinux.sh
    M usr/share/rear/backup/RSYNC/GNU/Linux/620_force_autorelabel.sh
    M usr/share/rear/backup/RSYNC/default/450_calculate_req_space.sh
    M usr/share/rear/backup/RSYNC/default/500_make_rsync_backup.sh
    M usr/share/rear/backup/RSYNC/default/700_copy_backup_log.sh
    M usr/share/rear/layout/save/GNU/Linux/200_partition_layout.sh
    M usr/share/rear/output/RSYNC/default/900_copy_result_files.sh
    M usr/share/rear/prep/NETFS/default/400_automatic_exclude_recreate.sh
    M usr/share/rear/verify/NBU/default/390_request_point_in_time_restore_parameters.sh
    M usr/share/rear/verify/TSM/default/390_request_point_in_time_restore_parameters.sh
    M usr/share/rear/verify/default/020_cciss_scsi_engage.sh

  Log Message:
  -----------
  Removed 2>/dev/null redirections where possible


  Commit: ef4bd2e42c08c563747b32c075561c6d2c9b0af7
      https://github.com/rear/rear/commit/ef4bd2e42c08c563747b32c075561c6d2c9b0af7
  Author: Johannes Meixner <jsmeix at suse.de>
  Date:   2019-10-15 (Tue, 15 Oct 2019)

  Changed paths:
    M usr/share/rear/layout/prepare/GNU/Linux/100_include_partition_code.sh
    M usr/share/rear/layout/save/GNU/Linux/230_filesystem_layout.sh

  Log Message:
  -----------
  Removed &>/dev/null redirections where possible


  Commit: bd51a4c001dfa1b9934c1e15c3716056fdf8d6cc
      https://github.com/rear/rear/commit/bd51a4c001dfa1b9934c1e15c3716056fdf8d6cc
  Author: Johannes Meixner <jsmeix at suse.de>
  Date:   2019-10-16 (Wed, 16 Oct 2019)

  Changed paths:
    M usr/share/rear/verify/TSM/default/390_request_point_in_time_restore_parameters.sh

  Log Message:
  -----------
  Added FIXME question to verify/TSM/default/390_request_point_in_time_restore_parameters.sh


  Commit: 7f82b89030eff11252dea262ae157c1cb849c0fc
      https://github.com/rear/rear/commit/7f82b89030eff11252dea262ae157c1cb849c0fc
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2019-10-18 (Fri, 18 Oct 2019)

  Changed paths:
    M usr/share/rear/backup/RSYNC/GNU/Linux/610_start_selinux.sh
    M usr/share/rear/backup/RSYNC/GNU/Linux/620_force_autorelabel.sh
    M usr/share/rear/backup/RSYNC/default/450_calculate_req_space.sh
    M usr/share/rear/backup/RSYNC/default/500_make_rsync_backup.sh
    M usr/share/rear/backup/RSYNC/default/700_copy_backup_log.sh
    M usr/share/rear/layout/prepare/GNU/Linux/100_include_partition_code.sh
    M usr/share/rear/layout/save/GNU/Linux/200_partition_layout.sh
    M usr/share/rear/layout/save/GNU/Linux/230_filesystem_layout.sh
    M usr/share/rear/output/RSYNC/default/900_copy_result_files.sh
    M usr/share/rear/prep/NETFS/default/400_automatic_exclude_recreate.sh
    M usr/share/rear/verify/NBU/default/390_request_point_in_time_restore_parameters.sh
    M usr/share/rear/verify/TSM/default/390_request_point_in_time_restore_parameters.sh
    M usr/share/rear/verify/default/020_cciss_scsi_engage.sh

  Log Message:
  -----------
  Merge pull request #2252 from jsmeix/remove_dev_null_redirection_where_possible_issue1395

Removed 2>/dev/null redirection where possible:
Some general cleanup for ReaR 2.6. in all scripts
by removing '2>/dev/null' where it makes sense
and replacing '&>/dev/null' by '1>/dev/null' where it makes sense
or also removing '&>/dev/null' where that seems to be better,
see https://github.com/rear/rear/issues/1395 
By the way 390_request_point_in_time_restore_parameters.sh
and 390_request_point_in_time_restore_parameters.sh
have been somewhat overhauled but both scripts
still abort 'rear recover' when the user did an invalid input,
see https://github.com/rear/rear/issues/2253


Compare: https://github.com/rear/rear/compare/84d74a3646c9...7f82b89030ef


More information about the rear-devel mailing list