From owner-freebsd-hackers Tue Oct 2 10:13: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 744AA37B401 for ; Tue, 2 Oct 2001 10:13:03 -0700 (PDT) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.6/8.11.6) with ESMTP id f92HCnC04961; Tue, 2 Oct 2001 19:12:49 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: nate@yogotech.com (Nate Williams) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: dump/restore and DIRPREF In-Reply-To: Your message of "Tue, 02 Oct 2001 11:05:00 MDT." <15289.62396.178582.398770@nomad.yogotech.com> Date: Tue, 02 Oct 2001 19:12:49 +0200 Message-ID: <4959.1002042769@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <15289.62396.178582.398770@nomad.yogotech.com>, Nate Williams writes : >After Kris's recent report of 'massive speedups' using dirpref, I've >been toying with the idea of backing up my box, and then restoring them. > >However, backup/restore are so much faster than doing a tar/untar. > >If I do a backup of my FS, wipe the disk, will the 'restore' cause the >same (ineffecient) directory layout to appear on disk? > >I wouldn't think so since the directory layout is controlled by the >kernel, but I do know that dump/restore are much lower-layer tools than >tar, so they may possibly have layout information embedded in them. > >Is my assumption correct? no. Dump reads the raw device and finds everything by hand. Restore (like tar!) just open/write/close/chown regular files. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message