From eb1636e90af5ef5100ca165552b34596ba9aa1a0 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Wed, 4 Jun 2008 19:27:47 +0000 Subject: [PATCH] Fix QFA file generation. --- CHANGES | 9 ++++++++- dump/tape.c | 5 +++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index fcbde06..f7c414b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.292 2008/05/05 09:25:27 stelian Exp $ +$Id: CHANGES,v 1.293 2008/06/04 19:27:47 stelian Exp $ Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx) ===================================================================== @@ -41,6 +41,13 @@ Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx) Thanks to Aaron S. Hawley for the patch. +10. Fix the QFA generation when extended attributes are backuped + along with the inodes. Prior to this fix, the entries for + some inodes may get corrupted (duplicated entries or incorrect + ones), making the QFA file unusable for repositionning in + restore. Many thanks to Kenneth Porter + for the bug report and the testing of the fix. + Changes between versions 0.4b40 and 0.4b41 (released January 2, 2006) ===================================================================== diff --git a/dump/tape.c b/dump/tape.c index ebee4d8..3e41622 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.89 2005/08/20 21:00:48 stelian Exp $"; + "$Id: tape.c,v 1.90 2008/06/04 19:27:48 stelian Exp $"; #endif /* not lint */ #include @@ -1310,7 +1310,8 @@ doslave(int cmd, if ((spclptr->c_magic == NFS_MAGIC) && (spclptr->c_type == TS_INODE) && (spclptr->c_date == gThisDumpDate) && - !(spclptr->c_dinode.di_mode & S_IFDIR) + !(spclptr->c_dinode.di_mode & S_IFDIR) && + !(spclptr->c_flags & DR_EXTATTRIBUTES) ) { foundone = 1; /* if (cntntrecs >= maxntrecs) { only write every maxntrecs amount of data */ -- 2.39.5