forked from TrueCloudLab/frostfs-s3-gw
Initial commit based on https://github.com/minio/minio/releases/tag/RELEASE.2020-07-02T00-15-09Z
This commit is contained in:
commit
9bf57615b0
1206 changed files with 281445 additions and 0 deletions
44
mint/create-data-files.sh
Executable file
44
mint/create-data-files.sh
Executable file
|
@ -0,0 +1,44 @@
|
|||
#!/bin/bash -e
|
||||
#
|
||||
# Mint (C) 2017 Minio, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
MINT_DATA_DIR="$MINT_ROOT_DIR/data"
|
||||
|
||||
declare -A data_file_map
|
||||
data_file_map["datafile-0-b"]="0"
|
||||
data_file_map["datafile-1-b"]="1"
|
||||
data_file_map["datafile-1-kB"]="1K"
|
||||
data_file_map["datafile-10-kB"]="10K"
|
||||
data_file_map["datafile-33-kB"]="33K"
|
||||
data_file_map["datafile-100-kB"]="100K"
|
||||
data_file_map["datafile-1.03-MB"]="1056K"
|
||||
data_file_map["datafile-1-MB"]="1M"
|
||||
data_file_map["datafile-5-MB"]="5M"
|
||||
data_file_map["datafile-5243880-b"]="5243880"
|
||||
data_file_map["datafile-6-MB"]="6M"
|
||||
data_file_map["datafile-10-MB"]="10M"
|
||||
data_file_map["datafile-11-MB"]="11M"
|
||||
data_file_map["datafile-65-MB"]="65M"
|
||||
data_file_map["datafile-129-MB"]="129M"
|
||||
|
||||
mkdir -p "$MINT_DATA_DIR"
|
||||
for filename in "${!data_file_map[@]}"; do
|
||||
echo "creating $MINT_DATA_DIR/$filename"
|
||||
if ! shred -n 1 -s "${data_file_map[$filename]}" - 1>"$MINT_DATA_DIR/$filename" 2>/dev/null; then
|
||||
echo "unable to create data file $MINT_DATA_DIR/$filename"
|
||||
exit 1
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue