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) #1893

Merged
merged 3 commits into from
Aug 19, 2022
Merged
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions st/m0t1fs-buffsize-layout-change-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -e
SANDBOX_DIR=${SANDBOX_DIR:-/var/motr/sandbox.m0t1fs-writesize-st}
M0_SRC_DIR=`readlink -f $0`
M0_SRC_DIR=${M0_SRC_DIR%/*/*}
cd $M0_SRC_DIR
cd "$M0_SRC_DIR"

echo "Installing Motr services"
sudo scripts/install-motr-service -u
Expand All @@ -43,7 +43,7 @@ dd if=/dev/zero of=/mnt/m0t1fs/12345:1 bs=1048576 count=10
stat /mnt/m0t1fs/12345:1
blksize=`stat /mnt/m0t1fs/12345:1 | grep "IO Block" | sed -e 's/.*IO Block:[[:space:]]//' -e 's/[[:space:]]reg.*//'`

if test $blksize -eq 1048576 -a $oldblksize -ne 1048576; then
if test "$blksize" -eq 1048576 -a "$oldblksize" -ne 1048576; then
echo "Successfully set IO Block on first write"
else
echo "IO Block size is not set correctly"
Expand All @@ -59,7 +59,7 @@ setfattr -n writesize -v "1048576" /mnt/m0t1fs/12345:2
stat /mnt/m0t1fs/12345:2
blksize=`stat /mnt/m0t1fs/12345:2 | grep "IO Block" | sed -e 's/.*IO Block:[[:space:]]//' -e 's/[[:space:]]reg.*//'`

if test $blksize -eq 1048576 -a $oldblksize -ne 1048576; then
if test "$blksize" -eq 1048576 -a "$oldblksize" -ne 1048576; then
echo "Successfully set IO Block on setfattr"
else
echo "IO Block size is not set correctly"
Expand Down