Skip to content

Commit

Permalink
CORTX-30751: Codacy code cleanup (Seagate#1606) (Seagate#1893)
Browse files Browse the repository at this point in the history
This patch fixes some of the codacy warnings.
warning fixed : "Double quote to prevent globing and words splitting".

Signed-off-by: alfhad <fahadshah2411@gmail.com>
  • Loading branch information
alfhad authored and kiwionly2 committed Aug 30, 2022
1 parent 169c489 commit 3106b16
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 3106b16

Please sign in to comment.