rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rdiff-backup-users] fails on powerpc with some files


From: David Bélanger
Subject: [rdiff-backup-users] fails on powerpc with some files
Date: Mon, 12 Jul 2004 16:52:21 -0400
User-agent: Mutt/1.3.28i

Hi,

I tried to register twice on librsync list but it didn't want to accept my
confirmation...

Anyway, I was having a lot of UpdateErrors with rdiff-backup on
Gentoo Linux/powerpc.  On x86, works great.  Simply touching the
file (i.e. changing its timestamps) can lead to these errors.

When I added a fprintf to help debugging, I found that the addition
of the fprintf "solves" magically the problem.

I relaxed the optimization and even try with -O0 but I never
got it able to work.  I tried with both gcc 3.3.3 and 3.4.  I will
probably install gcc 2.95 to try out...

Any clue?


bash-2.05b# diff -u buf.c.orig buf.c.fprintf
--- buf.c.orig  2004-07-11 17:34:56.000000000 -0400
+++ buf.c.fprintf       2004-07-11 17:34:56.000000000 -0400
@@ -206,6 +206,8 @@
     int        got;
     FILE       *f = (FILE *) arg;

+    fprintf(stderr, "yo\n");
+
     if (fseek(f, pos, SEEK_SET)) {
         rs_log(RS_LOG_ERR, "seek failed: %s", strerror(errno));
         return RS_IO_ERROR;


David

---

David Bélanger
Graduate Student
School of Computer Science
McGill University
Office: MC226

Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt





reply via email to

[Prev in Thread] Current Thread [Next in Thread]