From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QHM7G-0007Cm-Vw for garchives@archives.gentoo.org; Tue, 03 May 2011 20:22:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF9AC1C005; Tue, 3 May 2011 20:22:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B046F1C005 for ; Tue, 3 May 2011 20:22:35 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 315151CC002 for ; Tue, 3 May 2011 20:22:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 50D9F80505 for ; Tue, 3 May 2011 20:22:34 +0000 (UTC) From: "Jeremy Olexa" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeremy Olexa" Message-ID: <8e951cb44fa2e6a0d62ea10c927215e91113c964.darkside@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: /, htdocs/ X-VCS-Repository: proj/qa-scripts X-VCS-Files: README filesdir-usage.sh htdocs/index.html X-VCS-Directories: / htdocs/ X-VCS-Committer: darkside X-VCS-Committer-Name: Jeremy Olexa X-VCS-Revision: 8e951cb44fa2e6a0d62ea10c927215e91113c964 Date: Tue, 3 May 2011 20:22:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e68738656a9c841a899ea232a77f62f7 commit: 8e951cb44fa2e6a0d62ea10c927215e91113c964 Author: Jeremy Olexa gentoo org> AuthorDate: Tue May 3 20:19:18 2011 +0000 Commit: Jeremy Olexa gentoo org> CommitDate: Tue May 3 20:19:18 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/qa-scripts.gi= t;a=3Dcommit;h=3D8e951cb4 add a simple script to show usage of FILESDIRs in the tree --- README | 5 +++-- filesdir-usage.sh | 13 +++++++++++++ htdocs/index.html | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README b/README index 0e2173e..992f4aa 100644 --- a/README +++ b/README @@ -26,7 +26,8 @@ Current runtimes: (As of 2011-04-15) =20 - emerge --sync: hourly. Assume PORTDIR=3D/usr/portage (may change in fu= ture) -- genrdeps, run-genrdeps-index.sh: hourly -- eapi_usage.sh: 2x daily - check_eclasses_eapis.sh: 4x daily +- eapi_usage.sh: 2x daily +- filesdir-usage.sh: daily +- genrdeps, run-genrdeps-index.sh: hourly - mask_check.py: daily diff --git a/filesdir-usage.sh b/filesdir-usage.sh new file mode 100755 index 0000000..4677277 --- /dev/null +++ b/filesdir-usage.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# $1 is a number, N. The top N directories that are consuming space. Def= aults to +# all. + +cd /usr/portage/ +if [[ -z $1 ]]; then + du -h */*/files | sort -nr +else + du -h */*/files | sort -nr | head -n $1 +fi +echo +echo $(emerge --info | grep Timestamp) diff --git a/htdocs/index.html b/htdocs/index.html index 0f11314..8d710d6 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -49,6 +49,8 @@ EAPI Usa= ge per eclass
Invalid = package.mask entries +
+ Top 10= 0 largest FILESDIRs

Rsync Usage: