<commit_before>#!/bin/bash
# -*- mode: shell-script; fill-column: 80; -*-

set -o xtrace
set -o errexit
set -o pipefail

SOURCE="${BASH_SOURCE[0]}"
if [[ -h $SOURCE ]]; then
    SOURCE="$(readlink "$SOURCE")"
fi
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
PROFILE=/root/.bashrc
SVC_ROOT=/opt/smartdc/electric-moray

source ${DIR}/scripts/util.sh
source ${DIR}/scripts/services.sh

export PATH=$SVC_ROOT/bin:$SVC_ROOT/build/node/bin:/opt/local/bin:/usr/sbin/:/usr/bin:$PATH
export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'

ZFS_DATASET=zones/$(/usr/bin/zonename)/data/electric-moray

# Mainline

echo "mounting leveldb"

zfs mount $ZFS_DATASET
[[ $? -eq 0 ]] || fatal "unable to mount leveldb dataset"

exit 0<commit_msg>MORAY-180 do not check the return code of zfs mount<commit_after>#!/bin/bash
# -*- mode: shell-script; fill-column: 80; -*-

set -o xtrace
set -o errexit
set -o pipefail

SOURCE="${BASH_SOURCE[0]}"
if [[ -h $SOURCE ]]; then
    SOURCE="$(readlink "$SOURCE")"
fi
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
PROFILE=/root/.bashrc
SVC_ROOT=/opt/smartdc/electric-moray

source ${DIR}/scripts/util.sh
source ${DIR}/scripts/services.sh

export PATH=$SVC_ROOT/bin:$SVC_ROOT/build/node/bin:/opt/local/bin:/usr/sbin/:/usr/bin:$PATH
export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'

ZFS_DATASET=zones/$(/usr/bin/zonename)/data/electric-moray

# Mainline

echo "mounting leveldb"

zfs mount $ZFS_DATASET

exit 0
{'fraction_non_alphanumeric': 0.21248339973439576, 'fraction_numerical': 0.01195219123505976, 'mean_word_length': 4.751908396946565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3661982', 'n_tokens_mistral': 636, 'n_tokens_neox': 594, 'n_words': 116}