You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A few Fixes for ZFS Systems
Fixed
syntax error: invalid arithmetic operator (error token is ".3T
17" Line 570 so rewrote the ZFSCHECK
Caused by having 7.3T Free Space
Actual output "hddpool zfs 7.8T 514G 7.3T 7% /hddpool"
Line 270 Added ZFS as a option so we can display Disk Space.
Tested on Debian 12, Ubuntu 24.04, and Proxmox 8.4.1
* Update yabs.sh
switch to awk from bc
* Revert 270
# Now, perform the arithmetic comparison with the integer free_space_gb_int
611
+
if((free_space_gb_int < mul_spa));then
612
+
warning=1
613
+
fi
614
+
else
615
+
# Handle case where avail_space_with_unit doesn't match expected format
616
+
echo"Warning: Could not parse free space format for $long: '$avail_space_with_unit'"
617
+
# Potentially set warning=1 here if unparseable space is critical
618
+
fi
619
+
else
620
+
echo"Note: No relevant filesystem path detected for current directory ($PWD)."
621
+
fi
622
+
623
+
# Display warning if conditions are met
624
+
if [[ $warning-eq 1 ]];then
625
+
echo -en "\nWarning! You are running YABS on a ZFS Filesystem and your disk space is too low for the fio test. Your test results will be inaccurate. You need at least $mul_spa GB free in order to complete this test accurately. For more information, please see https://github.com/masonr/yet-another-bench-script/issues/13\n"
626
+
fi
627
+
fi
578
628
579
-
if [[ $warning-eq 1 ]];then
580
-
echo -en "\nWarning! You are running YABS on a ZFS Filesystem and your disk space is too low for the fio test. Your test results will be inaccurate. You need at least $mul_spa GB free in order to complete this test accurately. For more information, please see https://github.com/masonr/yet-another-bench-script/issues/13\n"
581
-
fi
582
-
fi
583
-
584
629
echo -en "\nPreparing system for disk tests..."
585
630
586
631
# create temp directory to store disk write/read test files
0 commit comments