From: Stelian P. <st...@po...> - 2003-04-10 08:01:01
|
On Wed, Apr 09, 2003 at 03:11:39PM -0700, Trent Piepho wrote: > The dump -W or -w modes no longer appear to work with dump 0.4b33. I've > traced it down to changing dump to look in /etc/mtab before /etc/fstab. Easy to correct such a bug when you tracked it down so precisely. Thanks. The following patch, already in CVS should fix this issue. Stelian. Index: optr.c =================================================================== RCS file: /cvsroot/dump/dump/dump/optr.c,v retrieving revision 1.36 diff -u -r1.36 optr.c --- optr.c 30 Mar 2003 15:40:36 -0000 1.36 +++ optr.c 10 Apr 2003 07:56:53 -0000 @@ -460,6 +460,12 @@ quit("Cannot access %s\n", tabfs->mnt_fsname); if (tabbuf.st_rdev == buf.st_rdev) { free(new); + /* Copy passno and freq from /etc/fstab because + * /etc/mtab does always have them as 0 0 */ + if (!tabfs->mnt_passno) + tabfs->mnt_passno = fs->mnt_passno; + if (!tabfs->mnt_freq) + tabfs->mnt_freq = fs->mnt_freq; return NULL; } } -- Stelian Pop <st...@po...> |