public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jeremy Olexa" <darkside@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /, htdocs/
Date: Tue,  3 May 2011 20:22:34 +0000 (UTC)	[thread overview]
Message-ID: <8e951cb44fa2e6a0d62ea10c927215e91113c964.darkside@gentoo> (raw)

commit:     8e951cb44fa2e6a0d62ea10c927215e91113c964
Author:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
AuthorDate: Tue May  3 20:19:18 2011 +0000
Commit:     Jeremy Olexa <darkside <AT> gentoo <DOT> org>
CommitDate: Tue May  3 20:19:18 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/qa-scripts.git;a=commit;h=8e951cb4

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)
 
 - emerge --sync: hourly. Assume PORTDIR=/usr/portage (may change in future)
-- 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. Defaults 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 @@
 	<a href=http://qa-reports.gentoo.org/output/eapi-per-eclass/>EAPI Usage per eclass</a>
 	<br />
 	<a href=http://qa-reports.gentoo.org/output/invalid-mask.txt>Invalid package.mask entries</a>
+	<br />
+	<a href=http://qa-reports.gentoo.org/output/filesdir-usage.txt>Top 100 largest FILESDIRs</a>
 	<h2>
 		Rsync Usage:
 	</h2>



             reply	other threads:[~2011-05-03 20:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-03 20:22 Jeremy Olexa [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-06-14 21:09 [gentoo-commits] proj/qa-scripts:master commit in: /, htdocs/ Jeremy Olexa
2011-06-22 14:25 Jeremy Olexa
2012-11-28 13:54 Jeremy Olexa
2019-08-28  9:19 Michał Górny
2019-08-29  5:51 Michał Górny
2020-05-25 12:22 Michał Górny
2023-04-19  6:35 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e951cb44fa2e6a0d62ea10c927215e91113c964.darkside@gentoo \
    --to=darkside@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox