mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
tests: add check sysfs_queue
Add check function for content of /sys/block/$1/queue/$2 == $3
This commit is contained in:
parent
95dbedb301
commit
7a6e3838e9
@ -365,6 +365,14 @@ dev_md5sum() {
|
|||||||
die "LV $1/$2 has different MD5 check sum!")
|
die "LV $1/$2 has different MD5 check sum!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sysfs_queue() {
|
||||||
|
# Verify optimal_io_size
|
||||||
|
local P="/sys/block/$1/queue/$2"
|
||||||
|
test -f "$P" || return 0
|
||||||
|
test "$(< $P)" -eq "$3" || \
|
||||||
|
die "$P = $(< $P) differs from expected value $3!"
|
||||||
|
}
|
||||||
|
|
||||||
#set -x
|
#set -x
|
||||||
unset LVM_VALGRIND
|
unset LVM_VALGRIND
|
||||||
"$@"
|
"$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user