16 Commits

Author SHA1 Message Date
Wang Mingyu
f0db676880
ddrescue: upgrade 1.29.1 -> 1.30
Changelog:
===========
* Replace pass 5 of copying with a sweeping phase after trimming.
* New option '-N, --no-sweep' to disable reading of skipped areas.
  Reassign short name '-N' from option '--no-trim' to '--no-sweep'.
* main.cc. Make '--size=output' use the size of outfile.
  (do_rescue): Make '-x 0' extend outfile to size of infile.
* main_common.cc (strtoll_): New function accepting underscores.
* rescuebook.cc (fcopy_non_tried, rcopy_non_tried): Limit pass 2 to
  blocks adjacent to a finished block. (Delimit bad area as a whole).
  (trim_errors): Trim only edges adjacent to a finished block.
  Initial skip size now defaults to (infile_size / 32_768).
  Only retrim blocks adjacent to a non-tried or finished block.
  (update_rates): Don't force update of a_rate, c_rate, ts.
  (Rescuebook): Estimate remaining time from last 60 seconds.
* genbook.cc (format_time), loggers.cc (format_time_dhms): Add years.
* loggers.cc (Event_logger): Add finished_size, a_rate, read errors.
* ddrescuelog.cc: New option '-H, --make-test'.
* ddrescue.texi: Document rescue with lziprecover's recovery record.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-12 08:53:42 -08:00
Wang Mingyu
782325bcd2
ddrescue: upgrade 1.29 -> 1.29.1
Changelog:
============
- New option '--bad-sector-data'.
- main_common.cc (format_num3): New function.
- mapbook.cc (input_pos_error): Print pos and size aligned.
- ddrescue.texi: Document use of -p and -x with --domain-mapfile.
- block.h: Rename to mapfile.h.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-25 09:33:50 -07:00
Wang Mingyu
a2c6a0ba8d
ddrescue: upgrade 1.28 -> 1.29
License-Update: address changed to <http://fsf.org/>

Changelog:
==========
- The new option '--continue-on-errno' has been added.
- If ddrescue exits because of a fatal read error, it now prints the value of
  the variable 'errno' so that it can be used as argument to
  '--continue-on-errno'.
- When using '--ask' and '--verbose', print rescue options before asking user.
- Option '--log-reads' now records the value of errno if different from EIO.
  (The four changes above suggested by Christian Franke).
- The effect of option '-O, --reopen-on-error' has been extended to all phases.
- It has been documented in the manual that '--reopen-on-error' may be needed
  when using '--continue-on-errno'.
- A compilation error on FiwixOS 3.3 about an ambiguous call to std::abs has
  been fixed. (Reported by Jordi Sanfeliu).
- The chapter 'Syntax of command-line arguments' has been added to the manual.
- Two examples of combined use with lziprecover have been added to the manual.
  (One of them uses the new Forward Error Correction (FEC) feature of
  lziprecover).
- It has been documented in the manual that option '-b' of ddrescuelog is
  position dependent. (Reported by Winston B. E.).

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-01-14 08:52:03 -08:00
Wang Mingyu
bb0f706366
ddrescue: upgrade 1.27 -> 1.28
Changelog:
============
* main.cc: Rename option '--verify-on-error' to '--check-on-error'.
  Rename option '--verify-input-size' to '--check-input-size'.
  Remove synonym '--exit-on-error'.
* fillbook.cc (fill_areas), rescuebook.cc (do_rescue):
  Issue a final fsync to prevent early exit if kernel caches writes.
* ddrescuelog.cc (show_status): Show mapfile names at verbosity == 0.
* ddrescue.texi: Document how to create a compressed image.
* configure, Makefile.in: New variable 'MAKEINFO'.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-08 10:07:20 -08:00
Wang Mingyu
bcd1291baf ddrescue: upgrade 1.26 -> 1.27
Changelog:
==========
* command_mode.cc (do_commands): Fix flush stdout after each command.
  (Reported by Jeffrey Bosboom).
* New option '-W, --compare-before-write'.
 (Suggested by Kajetan Harald Hinner and Petr Slansky).
* main_common.cc (show_option_error):
  New function showing argument and option name.
* main.cc: Remove synonym '--direct'.
* Use 'long long' instead of 'long' for time variables.
* loggers.cc: Missing '#include <cstdlib>'.
* Fix two compiler warnings reported by Christian Franke.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-13 00:55:16 -08:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
wangmy
985385ff73 ddrescue: upgrade 1.25 -> 1.26
License-Update: delete a space at the beginning of some comments

Changelog:
=========
* mapfile.cc (write_mapfile): Check all calls to fprintf.
* Show file name in all diagnostics with a file involved.
* rescuebook.cc (copy_block): Exit with status 1 on fatal errors.
* main_common.cc (getnum): Show option name and valid range if error.
* main.cc, ddrescuelog.cc: Remove synonyms '*-logfile', '--pause'.
* ddrescuelog.cc: New option '-F, --format'.
* command_mode.cc, io.cc, loggers.cc: Missing '#include <algorithm>'.
* ddrescue.texi: Improve description of algorithm.
* check.sh: A POSIX shell is required to run the tests.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-25 10:56:04 -08:00
Pierre-Jean Texier
2d3c7ffae7 ddrescue: upgrade 1.24 -> 1.25
See changelog https://lists.gnu.org/archive/html/info-gnu/2020-03/msg00002.html

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-15 16:36:28 -07:00
Oleksandr Kravchuk
b7e70d79f8 ddrescue: update to 1.24
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-12 21:34:18 -07:00
Paul Barker
6f3368cebe ddrescue: Update to v1.22
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-11-15 16:34:05 -08:00
Paul Eggleton
7858c56203 ddrescue: add explicit do_unpack depends
* tar.lz support still wasn't merged in oe-core
  http://patchwork.openembedded.org/patch/82163/

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-01-08 11:57:53 +01:00
Koen Kooi
eaa191d469 ddrescue: update to 1.19
* License changed to GPLv2+
* Although 'configure is present, it isn't autotools.

Nota bene: this requires bitbake and oe-core support for tar.lz

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-01-08 11:57:53 +01:00
Robert Yang
05de0ca43d meta-oe: use BPN in SRC_URI
Fixed SRC_URI:
* ${PN} -> ${BPN}, use ${BP} if it was ${PN}-${PV}
* ${P} -> ${BP}

Otherwise we would meet do_fetch errors when we do the multilib, native
or nativesdk build.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-15 14:56:55 +02:00
Martin Jansa
a45830a39b recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python
  tasks).
* Some recipes were using tabs.
* Some were using 8 spaces.
* Some were using mix or different number of spaces.
* Make them consistently use 4 spaces everywhere.
* Yocto styleguide advises to use tabs (but the only reason to keep
  tabs is the need to update a lot of recipes). Lately this advice
  was also merged into the styleguide on the OE wiki.
* Using 4 spaces in both types of tasks is better because it's less
  error prone when someone is not sure if e.g.
  do_generate_toolchain_file() is Python or shell task and also allows
  to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
  potentially bad (shouldn't be used for indenting of multiline
  variable assignments and cannot be used for Python tasks).
* Don't indent closing quote on multiline variables
  we're quite inconsistent wheater it's first character on line
  under opening quote or under first non-whitespace character in
  previous line.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15 16:23:17 +02:00
Paul Eggleton
31bd3fb6a6 meta-oe: Fix erroneous use of "startline" in LIC_FILES_CHKSUM
"beginline" is the correct parameter name. Checksums have been updated
where necessary (i.e. if the beginning line was something other than the
default of 1).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-12-16 21:11:42 +01:00
Paul Eggleton
ff3e844f69 ddrescue: add from OE-Classic, update and tidy up
* Update to 1.16
* Add LIC_FILES_CHKSUM
* Add SUMMARY and extend DESCRIPTION
* Drop PRIORITY
* Drop AUTHOR (generally we don't include this)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2012-10-30 09:50:18 +01:00