Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
home:Marvin1973:pcs
ocfs2-test
0001-mkfs-fix-test-failure-when-use-lvm2-volume...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-mkfs-fix-test-failure-when-use-lvm2-volume.patch of Package ocfs2-test
From 5af0f140db01ad76a277e537fc83a4b474206bd0 Mon Sep 17 00:00:00 2001 From: Gang He <ghe@suse.com> Date: Thu, 4 Jun 2020 15:19:33 +0800 Subject: [PATCH 1/2] mkfs: fix test failure when use lvm2 volume when use lvm2 volume as ocfs2 partition, mkfs test case is failed. The root cause is, the device name via 'df' command is not the same with the disk name we pass in the script. Then, we should use mount point path instead. --- programs/mkfs-tests/mkfs-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/mkfs-tests/mkfs-test.sh b/programs/mkfs-tests/mkfs-test.sh index b0fbbd1..cd05e16 100755 --- a/programs/mkfs-tests/mkfs-test.sh +++ b/programs/mkfs-tests/mkfs-test.sh @@ -164,7 +164,7 @@ do_consume() { # find the free space freespace=`df --block-size=${fillbsz} ${device} | - awk -v DEV=${device} 'BEGIN {dev=DEV;} // { if ($1 == dev) print $4; }'` + awk -v MNT=${mntdir} 'BEGIN {mnt=MNT;} // { if ($6 == mnt) print $4; }'` if [ $file_type -eq 0 ] then -- 2.12.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor