From 1c7584f9fa6f0801e9770d6645a1743e30e71b01 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Thu, 23 Jul 2009 12:37:41 +0000 Subject: [PATCH] - restore multivol backups correctly --- dump-rh507948.patch | 11 +++++++++++ dump.spec | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 dump-rh507948.patch diff --git a/dump-rh507948.patch b/dump-rh507948.patch new file mode 100644 index 0000000..863dab7 --- /dev/null +++ b/dump-rh507948.patch @@ -0,0 +1,11 @@ +diff -up dump-0.4b42/restore/tape.c.rh507948 dump-0.4b42/restore/tape.c +--- dump-0.4b42/restore/tape.c.rh507948 2009-07-23 14:28:17.998903816 +0200 ++++ dump-0.4b42/restore/tape.c 2009-07-23 14:29:27.058903991 +0200 +@@ -474,7 +474,6 @@ getvol(long nextvol) + if (nextvol == 1) { + tapesread = 0; + gettingfile = 0; +- tpblksread = 0; + blksread = 0; + } + if (pipein) { diff --git a/dump.spec b/dump.spec index 789679f..982de49 100644 --- a/dump.spec +++ b/dump.spec @@ -7,7 +7,7 @@ Summary: Programs for backing up and restoring ext2/ext3 filesystems Name: dump Epoch: 1 Version: 0.4 -Release: 0.1.%{PREVER}%{?dist} +Release: 0.2.%{PREVER}%{?dist} License: BSD Group: Applications/Archiving URL: http://dump.sourceforge.net/ @@ -23,6 +23,8 @@ Requires: rmt Obsoletes: dump-static Provides: dump-static +Patch0: dump-rh507948.patch + %description The dump package contains both dump and restore. Dump examines files in a filesystem, determines which ones need to be backed up, and @@ -47,6 +49,8 @@ restoring files from a backup), and tar (an archiving program). %prep %setup -q -n dump-%{VERSION} +%patch0 -p1 -b .rh507948 + for i in THANKS MAINTAINERS COPYRIGHT CHANGES; do iconv -f iso-8859-1 -t utf-8 $i -o $i.new touch -r $i $i.new @@ -118,6 +122,9 @@ rm -rf %{buildroot} %{_mandir}/man8/rmt.8* %changelog +* Thu Jul 23 2009 Adam Tkac 0.4-0.2.b42 +- restore multivol backups correctly + * Mon Jun 22 2009 Adam Tkac 0.4-0.1.b42 - update to 0.4b42 - patches merged