svn commit: r263225 - user/jmmv/autotest/node
Julio Merino
jmmv at FreeBSD.org
Sun Mar 16 03:32:30 UTC 2014
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
More information about the svn-src-user
mailing list