1#!/bin/sh 2################################################################################ 3# 4# Copyright (C) 2022 Huawei Device Co., Ltd. 5# SPDX-License-Identifier: GPL-2.0 6# 7# Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. 8# Do not use in new code. 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16################################################################################ 17# File: enhancedf2fs01.sh 18# 19# Description: enhancedf2fs_t testsuite init script 20# 21# Authors: Li Zhanming - lizhanming3@h-partners.com 22# 23# History: April 8 2022 - init scripts 24# 25################################################################################ 26export IMG_FILE=/data/image_f2fs 27 28create_catalogue() 29{ 30 mkdir /mnt/f2fs_mount/ 31} 32 33enable_init() 34{ 35 dd if=/dev/zero of=$IMG_FILE bs=1M count=20480 36} 37 38echo "***************************ENHANCED INIT START***************************" 39create_catalogue 40enable_init 41echo "***************************ENHANCED INIT END*****************************" 42