From owner-freebsd-bugs Sat Oct 18 11:20:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA28130 for bugs-outgoing; Sat, 18 Oct 1997 11:20:04 -0700 (PDT) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA28117; Sat, 18 Oct 1997 11:20:01 -0700 (PDT) (envelope-from gnats) Date: Sat, 18 Oct 1997 11:20:01 -0700 (PDT) Message-Id: <199710181820.LAA28117@hub.freebsd.org> To: freebsd-bugs Cc: From: Matthew Dillon Subject: Re: docs/4785: manual page for dump incorrect Reply-To: Matthew Dillon Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR docs/4785; it has been noted by GNATS. From: Matthew Dillon To: j@uriah.heep.sax.de (J Wunsch) Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: docs/4785: manual page for dump incorrect Date: Sat, 18 Oct 1997 11:15:33 -0700 (PDT) :Usage error. If you modify it like this: : : dump 0ubf 64 - / > /dev/null : dump 1ubf 64 - / > /dev/null : dd if=/dev/zero of=/xxx bs=32k count=10 (create big file) : dump 1ubf 64 - / > /dev/null : dump 1ubf 64 - / > /dev/null : :...the first level 1 dump won't dump anything (since nothing has :changed since the last level 0 dump), but the second level 1 dump will :dump the new file. The third level 1 dump, again, has nothing to dump :since nothing has changed. J"org, I'm pretty sure the third level 1 dump saves /xxx again. apollo:/home/dillon# dump 0ubf 64 - / > /dev/null DUMP: Date of this level 0 dump: Sat Oct 18 11:12:54 1997 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rsd0a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 17950 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 18023 tape blocks DUMP: finished in 13 seconds, throughput 1386 KBytes/sec DUMP: level 0 dump on Sat Oct 18 11:12:54 1997 DUMP: DUMP IS DONE apollo:/home/dillon# dump 1ubf 64 - / > /dev/null DUMP: Date of this level 1 dump: Sat Oct 18 11:13:08 1997 DUMP: Date of last level 0 dump: Sat Oct 18 11:12:54 1997 DUMP: Dumping /dev/rsd0a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 45 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 100 tape blocks DUMP: finished in less than a second DUMP: level 1 dump on Sat Oct 18 11:13:08 1997 DUMP: DUMP IS DONE apollo:/home/dillon# dd if=/dev/zero of=/xxx bs=32k count=10 10+0 records in 10+0 records out 327680 bytes transferred in 0.022121 secs (14813025 bytes/sec) apollo:/home/dillon# dump 1ubf 64 - / > /dev/null DUMP: Date of this level 1 dump: Sat Oct 18 11:13:19 1997 DUMP: Date of last level 0 dump: Sat Oct 18 11:12:54 1997 DUMP: Dumping /dev/rsd0a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 369 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 422 tape blocks DUMP: finished in 1 seconds, throughput 422 KBytes/sec DUMP: level 1 dump on Sat Oct 18 11:13:19 1997 DUMP: DUMP IS DONE apollo:/home/dillon# dump 1ubf 64 - / > /tmp/yy DUMP: Date of this level 1 dump: Sat Oct 18 11:13:24 1997 DUMP: Date of last level 0 dump: Sat Oct 18 11:12:54 1997 DUMP: Dumping /dev/rsd0a (/) to standard output DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 369 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: DUMP: 422 tape blocks DUMP: finished in 1 seconds, throughput 422 KBytes/sec DUMP: level 1 dump on Sat Oct 18 11:13:24 1997 DUMP: DUMP IS DONE apollo:/home/dillon# apollo:/home/dillon# restore tvbf 64 - < /tmp/yy Verify tape and initialize maps Dump date: Sat Oct 18 11:14:31 1997 Dumped from: Sat Oct 18 11:12:54 1997 Level 1 dump of / on apollo.backplane.com:/dev/sd0a Label: none Extract directories from tape Initialize symbol table. dir 2 . dir 3 ./dev leaf 292 ./dev/null leaf 491 ./dev/ttyp2 leaf 497 ./dev/ttyp5 leaf 503 ./dev/ttyp8 leaf 504 ./dev/ptyp8 leaf 505 ./dev/ttyp9 leaf 506 ./dev/ptyp9 dir 184 ./etc leaf 677 ./etc/dumpdates leaf 119 ./xxx :-- :cheers, J"org : :joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE :Never trust an operating system you don't have sources for. ;-) : Matthew Dillon Engineering, BEST Internet Communications, Inc. [always include a portion of the original email in any response!]