[rear-devel] [rear/rear] 2f0f57: Implement get_partition_number() to allow for easy...

Dag Wieers dag at wieers.com
Sat Jun 29 01:02:40 CEST 2013


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: 2f0f572debc29c6380a4ebc69808e367867c66a3
      https://github.com/rear/rear/commit/2f0f572debc29c6380a4ebc69808e367867c66a3
  Author: Dag Wieers <dag at wieers.com>
  Date:   2013-06-28 (Fri, 28 Jun 2013)

  Changed paths:
    M usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh
    M usr/share/rear/lib/layout-functions.sh

  Log Message:
  -----------
  Implement get_partition_number() to allow for easy testing and trap problems

This function now traps when the partition number is not a number or spans more than two characters. Since Relax-and-Recover does not support more than 9 partitions we are not creating another artificial limit. However if we find a better way to get the partition number from inconsistent devices (those that add a partition number directly to a trailing number), I am all for that.

This pull-request relates to #183


  Commit: 9b2530dfbb04743271ed2216d4c21526f9db6af1
      https://github.com/rear/rear/commit/9b2530dfbb04743271ed2216d4c21526f9db6af1
  Author: Dag Wieers <dag at wieers.com>
  Date:   2013-06-28 (Fri, 28 Jun 2013)

  Changed paths:
    M usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh
    M usr/share/rear/lib/layout-functions.sh

  Log Message:
  -----------
  Merge pull request #265 from dagwieers/get_partition_number

Implement get_partition_number() to allow for easy testing and trap problems


Compare: https://github.com/rear/rear/compare/56cd9e6238ce...9b2530dfbb04


More information about the rear-devel mailing list