All of lore.kernel.org
 help / color / mirror / Atom feed
* main - lvmdbusd: Raise IOError instead of ignoring
@ 2022-09-19 15:58 Tony Asleson
  0 siblings, 0 replies; only message in thread
From: Tony Asleson @ 2022-09-19 15:58 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=8e1e40c499a0e46a0a15b9a6b470adb8fbbbbf4f
Commit:        8e1e40c499a0e46a0a15b9a6b470adb8fbbbbf4f
Parent:        2c5762038a7d2877dca91593ca212e0e36802dc1
Author:        Tony Asleson <tasleson@redhat.com>
AuthorDate:    Thu Sep 8 15:41:20 2022 -0500
Committer:     Tony Asleson <tasleson@redhat.com>
CommitterDate: Fri Sep 16 10:49:37 2022 -0500

lvmdbusd: Raise IOError instead of ignoring

We end up in a bad state if we simply eat IOErrors here.  Exit the lvmshell
process and raise the IOError.
---
 daemons/lvmdbusd/lvm_shell_proxy.py.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/daemons/lvmdbusd/lvm_shell_proxy.py.in b/daemons/lvmdbusd/lvm_shell_proxy.py.in
index 244fe93f5..ed2c7bc9e 100755
--- a/daemons/lvmdbusd/lvm_shell_proxy.py.in
+++ b/daemons/lvmdbusd/lvm_shell_proxy.py.in
@@ -108,7 +108,8 @@ class LVMShellProxy(object):
 
 			except IOError as ioe:
 				log_debug(str(ioe))
-				pass
+				self.exit_shell()
+				raise ioe
 
 		if keep_reading and run.value == 0:
 			# We didn't complete as we are shutting down


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-19 15:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-19 15:58 main - lvmdbusd: Raise IOError instead of ignoring Tony Asleson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.