991b3eea09
- device-mapper.spec: fix wrong replacement of DM_VERSION (bsc#1072524) - Fixes failure of some testcases caused by nc behavior change (bsc#1072624) + bug-1072624_test-lvmetad_dump-always-timed-out-when-using-nc.patch - Refreshed fate-31841_fsadm-add-support-for-btrfs.patch - Update to LVM2.2.02.177 When writing text metadata content, use complete 4096 byte blocks. Change text format metadata alignment from 512 to 4096 bytes. When writing metadata, consistently skip mdas marked as failed. Refactor and adjust text format metadata alignment calculation. Ensure _node_send_message always uses clean status of thin pool. Fix lvmlockd to use pool lock when accessing _tmeta volume. Report expected sanlock_convert errors only when retries fail. Avoid blocking in sanlock_convert on SH to EX lock conversion. Deactivate missing raid LV legs (_rimage_X-missing_Y_Z) on decativation. Categorise I/O with reason annotations in debug messages. Allow extending of raid LVs created with --nosync after a failed repair. Command will lock memory only when suspending volumes. Merge segments when pvmove is finished. Activation code for pvmove automatically discovers holding LVs for resume. Make a pvmove LV locking holder. Do not change critical section counter on resume path without real resume. Enhance activation code to automatically suspend pvmove participants. Prevent conversion of thin volumes to snapshot origin when lvmlockd is used. Add support for pvmove of cache and snapshot origins. Avoid using precommitted metadata for suspending pvmove tree. Deactivate activated LVs on error path when pvmove activation fails. Add "io" to log/debug_classes for logging low-level I/O. Avoid importing persistent filter in vgscan/pvscan/vgrename. Fix memleak of string buffer when vgcfgbackup runs in secure mode. Do not print error when clvmd cannot find running clvmd. OBS-URL: https://build.opensuse.org/request/show/558347 OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=212
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
From 6ff44e96eb804f9024bf3f606d207bd863f0e672 Mon Sep 17 00:00:00 2001
|
|
From: Eric Ren <zren@suse.com>
|
|
Date: Wed, 13 Dec 2017 18:53:00 +0800
|
|
Subject: [PATCH] test: lvmetad_dump always timed out when using nc
|
|
|
|
lvmetad_dump uses either "socat" or "nc" to communicate
|
|
with lvmetad. But when using "nc" if "socat" is not
|
|
available, nc will listen forever by default, causing the
|
|
testcase timed out.
|
|
|
|
Signed-off-by: Eric Ren <zren@suse.com>
|
|
---
|
|
test/lib/aux.sh | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
|
|
index 6bc7bd47e..4603c1504 100644
|
|
--- a/test/lib/aux.sh
|
|
+++ b/test/lib/aux.sh
|
|
@@ -243,14 +243,14 @@ lvmetad_talk() {
|
|
local use=nc
|
|
if type -p socat >& /dev/null; then
|
|
use=socat
|
|
- elif echo | not nc -U "$TESTDIR/lvmetad.socket" ; then
|
|
+ elif echo | not nc -w 1 -U "$TESTDIR/lvmetad.socket" ; then
|
|
echo "WARNING: Neither socat nor nc -U seems to be available." 1>&2
|
|
echo "## failed to contact lvmetad."
|
|
return 1
|
|
fi
|
|
|
|
if test "$use" = nc ; then
|
|
- nc -U "$TESTDIR/lvmetad.socket"
|
|
+ nc -w 1 -U "$TESTDIR/lvmetad.socket"
|
|
else
|
|
socat "unix-connect:$TESTDIR/lvmetad.socket" -
|
|
fi | tee -a lvmetad-talk.txt
|
|
--
|
|
2.13.6
|
|
|