From owner-freebsd-questions@FreeBSD.ORG Wed Jan 30 22:13:58 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE06316A418; Wed, 30 Jan 2008 22:13:58 +0000 (UTC) (envelope-from bp@barryp.org) Received: from eden.barryp.org (host-42-60-230-24.midco.net [24.230.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8AF6113C4F4; Wed, 30 Jan 2008 22:13:58 +0000 (UTC) (envelope-from bp@barryp.org) Received: from geo.med.und.nodak.edu ([134.129.166.11]) by eden.barryp.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67 (FreeBSD)) (envelope-from ) id 1JKLBq-000FH2-Bz; Wed, 30 Jan 2008 16:13:54 -0600 Message-ID: <47A0F6A2.9060600@barryp.org> Date: Wed, 30 Jan 2008 16:13:54 -0600 From: Barry Pederson User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: Kirk McKusick References: <200801302047.m0UKlV0m004741@chez.mckusick.com> In-Reply-To: <200801302047.m0UKlV0m004741@chez.mckusick.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= , questions@freebsd.org, fs@freebsd.org Subject: Re: Automatic `nodump' flag? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 22:13:58 -0000 Kirk McKusick wrote: > The dump program runs on the raw disk partition dumping sequentially > by inode number. So, it has no idea of the file-tree hierarchy. I was just looking at the source to dump, specifically traverse.c and from what I can see, doesn't dump pass #2 scan through all directories and then in the searchdir() function remove a directory's children from the list of inodes to backup if the directory has the nodump flag? --------- 414 if (nodump) { 415 ip = getino(dp->d_ino, &mode); 416 if (TSTINO(dp->d_ino, dumpinomap)) { 417 CLRINO(dp->d_ino, dumpinomap); 418 *tapesize -= blockest(ip); --------- Barry