From a4bfc6ca5a01f2cef94fb6a147024e8b52101b6e Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Wed, 30 Mar 2005 13:34:00 +0000 Subject: [PATCH] Fix an issue with the size of dump maps appearing when the filesystem has been resized since the previous incremental dump. --- restore/symtab.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/restore/symtab.c b/restore/symtab.c index 4a2e1ab..b69259a 100644 --- a/restore/symtab.c +++ b/restore/symtab.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: symtab.c,v 1.24 2005/01/14 13:04:07 stelian Exp $"; + "$Id: symtab.c,v 1.25 2005/03/30 13:34:00 stelian Exp $"; #endif /* not lint */ /* @@ -712,8 +712,10 @@ initsymtable(char *filename) panic("initsymtable called from command %c\n", command); break; } - resizemaps(maxino, hdr.maxino); - maxino = hdr.maxino; + if (hdr.maxino > maxino) { + resizemaps(maxino, hdr.maxino); + maxino = hdr.maxino; + } entrytblsize = hdr.entrytblsize; entry = (struct entry **) (base + tblsize - (entrytblsize * sizeof(struct entry *))); -- 2.39.2