Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2003 13:26:19 +0100 (BST)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        iLLfated <l8tr3000@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Jail Duplication and du wierdness
Message-ID:  <Pine.GSO.4.44.0304301324070.13980-100000@mail.ilrt.bris.ac.uk>
In-Reply-To: <20030430112711.30774.qmail@web14512.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0304301324070.13980-100000>