From owner-svn-src-user@FreeBSD.ORG Sun Mar 16 03:32:30 2014 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 369CB8F1; Sun, 16 Mar 2014 03:32:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1CF2286B; Sun, 16 Mar 2014 03:32:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2G3WTBi038646; Sun, 16 Mar 2014 03:32:29 GMT (envelope-from jmmv@svn.freebsd.org) Received: (from jmmv@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2G3WTL5038645; Sun, 16 Mar 2014 03:32:29 GMT (envelope-from jmmv@svn.freebsd.org) Message-Id: <201403160332.s2G3WTL5038645@svn.freebsd.org> From: Julio Merino Date: Sun, 16 Mar 2014 03:32:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r263225 - user/jmmv/autotest/node X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 03:32:30 -0000 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