Date: Sun, 16 Mar 2014 03:32:29 +0000 (UTC) From: Julio Merino <jmmv@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r263225 - user/jmmv/autotest/node Message-ID: <201403160332.s2G3WTL5038645@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jmmv Date: Sun Mar 16 03:32:29 2014 New Revision: 263225 URL: http://svnweb.freebsd.org/changeset/base/263225 Log: Shard the data directory by year, month and day. Having a single directory with hundreds of subdirectories does not scale well. Browsing the tree, for example, takes just too long. Modified: user/jmmv/autotest/node/iterate.sh Modified: user/jmmv/autotest/node/iterate.sh ============================================================================== --- user/jmmv/autotest/node/iterate.sh Sun Mar 16 02:41:47 2014 (r263224) +++ user/jmmv/autotest/node/iterate.sh Sun Mar 16 03:32:29 2014 (r263225) @@ -308,9 +308,9 @@ autotest_all() { [ ${#} -eq 0 ] || shtk_cli_usage_error "all does not take any arguments" - local timestamp=$(date +%Y%m%d-%H%M%S) + local subdir="$(date +%Y/%m/%d/%Y%m%d-%H%M%S)" local datadir="$(shtk_config_get DATADIR)" - local run_datadir="${datadir}/${timestamp}" + local run_datadir="${datadir}/${subdir}" mkdir -p "${run_datadir}" touch "${run_datadir}/output.log" @@ -329,7 +329,7 @@ autotest_all() { autotest_publish "${run_datadir}" ) rm -f "${datadir}/0-LATEST" - ln -s "${timestamp}" "${datadir}/0-LATEST" + ln -s "${subdir}" "${datadir}/0-LATEST" exec >&- 2>&- if ! shtk_bool_check "${quiet}"; then
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403160332.s2G3WTL5038645>