Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

CORTX-30751: Codacy code cleanup (#1606) #1855

Merged
merged 2 commits into from
Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions m0t1fs/linux_kernel/st/m0t1fs_fsync_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
#


. `dirname $0`/common.sh
. `dirname $0`/m0t1fs_common_inc.sh
. `dirname $0`/m0t1fs_client_inc.sh
. `dirname $0`/m0t1fs_server_inc.sh
. `dirname $0`/m0t1fs_sns_common_inc.sh
. $(dirname "$0")/common.sh
. $(dirname "$0")/m0t1fs_common_inc.sh
. $(dirname "$0")/m0t1fs_client_inc.sh
. $(dirname "$0")/m0t1fs_server_inc.sh
. $(dirname "$0")/m0t1fs_sns_common_inc.sh

fsync_test()
{
`dirname $0`/m0t1fs_fsync_test_helper $MOTR_M0T1FS_MOUNT_DIR
$(dirname "$0")/m0t1fs_fsync_test_helper "$MOTR_M0T1FS_MOUNT_DIR"
return $?
}

Expand All @@ -48,15 +48,15 @@ main()
rc=0
echo "motr service started"

mkdir -p $MOTR_M0T1FS_MOUNT_DIR
mount_m0t1fs $MOTR_M0T1FS_MOUNT_DIR "oostore" || return 1
mkdir -p "$MOTR_M0T1FS_MOUNT_DIR"
mount_m0t1fs "$MOTR_M0T1FS_MOUNT_DIR" "oostore" || return 1

fsync_test || {
echo "Failed: Fsync test failed.."
rc=1
}

unmount_m0t1fs $MOTR_M0T1FS_MOUNT_DIR &>> $MOTR_TEST_LOGFILE
unmount_m0t1fs "$MOTR_M0T1FS_MOUNT_DIR" &>> "$MOTR_TEST_LOGFILE"

motr_service stop
if [ $? -ne "0" ]
Expand Down