From 2533604514060a98527c393047eda13460216744 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 21 May 2026 01:56:31 +0300 Subject: [PATCH] Test OSDs of uneven size in test_enospc --- tests/test_enospc.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_enospc.sh b/tests/test_enospc.sh index 16f0ec00..a4dba15d 100755 --- a/tests/test_enospc.sh +++ b/tests/test_enospc.sh @@ -1,10 +1,19 @@ #!/bin/bash -ex OSD_SIZE=200 +if [[ $SCHEME = replicated ]]; then + OSD_COUNT=${OSD_COUNT:-2} +fi GLOBAL_CONFIG=',"client_retry_enospc":false' . `dirname $0`/run_3osds.sh +kill -9 $OSD1_PID +truncate -s 0 ./testdata/bin/test_osd1.bin +dd if=/dev/zero of=./testdata/bin/test_osd1.bin bs=1024 count=1 seek=$((300*1024-1)) +$ETCDCTL del /vitastor/osd/state/1 +start_osd 1 + # Should fail with ENOSPC if $VITASTOR_FIO -bs=1M -direct=1 -iodepth=4 \ -rw=write -pool=1 -inode=1 -size=500M -cluster_log_level=10; then