4.2BSD restore(8)

ed at mtxinu.UUCP ed at mtxinu.UUCP
Thu Apr 24 17:25:57 AEST 1986


In article <801 at oliveb.UUCP> jerry at oliveb.UUCP (Jerry Aguirre) writes:
>I have also noticed that after a restore all the files marked as
>changed and will go on the next dump.  The 4.2BSD restore works on the
>mounted file system.  This simplifies the dump code and partial
>restores but makes it impossible to correctly update the time stamps on
>the file.  Previous versions of restor used the raw file system and
>could write any information it wanted.

4.2 dump still dumps from the raw disk.  It's restore that is simplified
bu working on the mounted filesystem.  The reason is that the code to
decide where to place a block on the disk is *very* complex in 4.2
because, generally, of the optimizations used to make the filesystem
fast to read.  It was decided (and I agree) that having two copies of
that code (one in the kernel and one in restore) was too dangerous.

>Remember that dump will use the ctime, not the mtime, when deciding
>what files to dump.  There is no system call to backdate the ctime on a
>mounted file system.
>
>Procedurally this is a crock as after spending X hours of down time
>restoring the file system, you have to turn around and spend Y
>additional hours doing a new level 0 dump.  Besides additional down
>time the new level 0 also messes up the dump schedule.

There are other reasons, as well, for redoing the level 0 dump after
doing a full restore.  Directories relate to files via their inode
number.  In order that the new directory contents be recorded
correctly, a new level 0 is required.  If not, any incremental
dump done - even if the times were correct - would not correctly
relate to the old full(er) dump.  This *is* documented in the
"BUGS" section of the restore(1) writeup.

I agree that it is a big nuisance to redo the level 0 dumps after
a full restore.  Hopefully, however, restores happen infrequently
enough to justify the extra work to get the increased filesystem
performance.

-- 
Ed Gould                    mt Xinu, 2910 Seventh St., Berkeley, CA  94710  USA
{ucbvax,decvax}!mtxinu!ed   +1 415 644 0146

"A man of quality is not threatened by a woman of equality."



More information about the Comp.bugs.4bsd.ucb-fixes mailing list