From owner-freebsd-questions@FreeBSD.ORG Wed Apr 30 05:29:53 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB17E37B401 for ; Wed, 30 Apr 2003 05:29:53 -0700 (PDT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 080F043FB1 for ; Wed, 30 Apr 2003 05:29:53 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Wed, 30 Apr 2003 13:29:41 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 19AqfD-0001sO-00; Wed, 30 Apr 2003 13:26:19 +0100 Date: Wed, 30 Apr 2003 13:26:19 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: iLLfated In-Reply-To: <20030430112711.30774.qmail@web14512.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant cc: freebsd-questions@freebsd.org Subject: Re: Jail Duplication and du wierdness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2003 12:29:54 -0000 On Wed, 30 Apr 2003, iLLfated wrote: > Lo all, > > I wanted to ask if I cp -R or cp -Rp a jail to a new > path will it work as expected? I tried to copy one > just recently with both commands, and the resulting > path seems to report a different du -h size. I > compared the 2 trees and even diffed the files in the > trees and they seem to be the same, although du is > still reporting them as different. Any ideas whats > going wrong here? According to the man page, [[ Files having multiple hard links are counted (and displayed) a single time per du execution. ]] Your cp produced multiple instances of filenames that were linked to the same underlying file in the original jail. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Ceci n'est pas une pipe |