[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: minor bug in "du" size calculator in build_all.sh



Ben Collins <bcollins@debian.org> writes:

> # du -s /archive/debian/dists/potato/main/disks-sparc/current/.
> 65128   /archive/debian/dists/potato/main/disks-sparc/current/.
> 
> This third way is what I had setup in debian-cd. I don't see why it didn't
> work for Philip (tested in tcsh and bash).

You're quite right.  I must have done a spot of incompetent cut&pasting.
Doh!

BTW, check this out:

open:~$ du -sDm ~ftp/debian/dists/potato/main/disks-i386/current
100	/home/ftp/debian/dists/potato/main/disks-i386/current
open:~$ du -lsDm ~ftp/debian/dists/potato/main/disks-i386/current
101	/home/ftp/debian/dists/potato/main/disks-i386/current
open:~$ 

Where's the extra 1MB coming from?  It's not simply the size of the
things pointed at by symlinks, because that would be 7.5Mb:

open:~$ cd ~ftp/debian/dists/potato/main/disks-i386/current/
open:.../disks-i386/current$ du -Dc `find . -type l`
1204	./images-1.20/safe/driver-1.bin
1204	./images-1.20/safe/driver-2.bin
1204	./images-1.20/safe/driver-3.bin
140	./images-1.20/safe/driver-4.bin
1444	./images-1.44/safe/driver-1.bin
1444	./images-1.44/safe/driver-2.bin
860	./images-1.44/safe/driver-3.bin
7500	total

Cheers, Phil.



Reply to: