- improve patch for multivol backup issues

This commit is contained in:
Adam Tkac 2010-02-10 14:45:09 +00:00
parent e258b823bd
commit de5696285a
2 changed files with 45 additions and 3 deletions

View File

@ -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);

View File

@ -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 <atkac redhat com> 0.4-0.4.b42
- improve patch for multivol backup issues
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.4-0.3.b42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild