Skip to contentSkip to conversation

runltp: extend the default loop device size to 150MB

PATCH New Li Wang 2 participants 2 messages Jul 28, 2016 – Aug 15, 2016

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH v2 1/2 runltp: extend the default loop device size to 150MB

Increase TST_DEVICE size to make btrfs-progs happy.

---
 runltp                | 2 +-
 testcases/lib/test.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
runltp +1 -1
index 29f43a0..3a46765 100755
@@ -978,7 +978,7 @@ main()
 create_block()
 {
     #create a block device
-    dd if=/dev/zero of=${TMP}/test.img bs=1kB count=102400 >/dev/null 2>&1
+    dd if=/dev/zero of=${TMP}/test.img bs=1kB count=153600 >/dev/null 2>&1
     if [ $? -ne 0 ]; then
         echo "Failed to create loopback device image, please check disk space and re-run"
         return 1
testcases/lib/test.sh +1 -1
index 23d68c6..4fe2773 100644
@@ -274,7 +274,7 @@ tst_acquire_device()
 		return
 	fi
 
-	ROD_SILENT dd if=/dev/zero of=test_dev.img bs=1024 count=102400
+	ROD_SILENT dd if=/dev/zero of=test_dev.img bs=1024 count=153600
 
 	TST_DEVICE=$(losetup -f)
 	if [ $? -ne 0 ]; then
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH v2 1/2 runltp: extend the default loop device size to 150MB

Hi!

Quoted 1 line

Increase TST_DEVICE size to make btrfs-progs happy.

I've increased it in the C library in lib/tst_device.c as well and pushed, thanks.

Signature · 2 lines
Cyril Hrubis
[email protected]