From de5696285a0d17a77c2dee683eeb3dd6b6b90651 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Feb 10 2010 14:45:09 +0000 Subject: - improve patch for multivol backup issues --- diff --git a/dump-rh507948.patch b/dump-rh507948.patch index 863dab7..7089e7b 100644 --- a/dump-rh507948.patch +++ b/dump-rh507948.patch @@ -9,3 +9,40 @@ diff -up dump-0.4b42/restore/tape.c.rh507948 dump-0.4b42/restore/tape.c blksread = 0; } if (pipein) { +@@ -3264,11 +3263,14 @@ ReReadInodeFromTape(dump_ino_t theino) + cntloop++; + gethead(&spcl); + } while (!(spcl.c_inumber == theino && spcl.c_type == TS_INODE && spcl.c_date == dumpdate)); ++ ++ tpblksread = spcl.c_tapea + spcl.c_volume; + #ifdef DEBUG_QFA + fprintf(stderr, "DEBUG: %ld reads\n", cntloop); + fprintf(stderr, "DEBUG: bufsize %ld\n", bufsize); + fprintf(stderr, "DEBUG: ntrec %ld\n", ntrec); +- fprintf(stderr, "DEBUG: %ld reads\n", cntloop); ++ fprintf(stderr, "DEBUG: tapea %d\n", spcl.c_tapea); ++ fprintf(stderr, "DEBUG: tpblksread %ld\n", tpblksread); + #endif + findinode(&spcl); + noresyncmesg = 0; +--- dump-0.4b39/restore/restore.c 2004-12-15 12:00:01.000000000 +0100 ++++ dump-0.4b39/restore/restore.c.rh507948 2010-02-02 16:50:03.817507952 +0100 +@@ -880,14 +880,15 @@ createfiles(void) + Vprintf(stdout, "Extract requested files\n"); + curfile.action = SKIP; + #ifdef USE_QFA +- if (tapeposflag) +- curfile.ino = 0; +- else ++ if (!tapeposflag) { + #endif + if (volinfo[1] == ROOTINO) + curfile.ino = 0; + else + getvol((long)1); ++#ifdef USE_QFA ++ } ++#endif + skipmaps(); + skipdirs(); + first = lowerbnd(ROOTINO); diff --git a/dump.spec b/dump.spec index 5ca906a..6c2f5a9 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.3.%{PREVER}%{?dist} +Release: 0.4.%{PREVER}%{?dist} License: BSD Group: Applications/Archiving URL: http://dump.sourceforge.net/ @@ -60,6 +60,9 @@ done %build autoreconf -fiv +export CFLAGS="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \ +-Wmissing-prototypes -Wno-char-subscripts" + # XXX --enable-kerberos needs krcmd %configure --disable-static \ --enable-transselinux \ @@ -72,8 +75,7 @@ autoreconf -fiv --with-mangrp=root \ --with-manmode=0644 -make OPT="$RPM_OPT_FLAGS -Wall -Wpointer-arith -Wstrict-prototypes \ - -Wmissing-prototypes -Wno-char-subscripts" %{?_smp_mflags} +make %{?_smp_mflags} %install rm -rf %{buildroot} @@ -122,6 +124,9 @@ rm -rf %{buildroot} %{_mandir}/man8/rmt.8* %changelog +* Wed Feb 10 2010 Adam Tkac 0.4-0.4.b42 +- improve patch for multivol backup issues + * Fri Jul 24 2009 Fedora Release Engineering - 1:0.4-0.3.b42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild