1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

lvmdbusd: Add FlightRecorderDump

Diagnostic method for dumping flight recorder to syslog.
This commit is contained in:
Tony Asleson 2017-03-08 13:32:20 -06:00
parent f2d7a48418
commit 470a1f1c50

View File

@ -132,6 +132,13 @@ class Manager(AutomatedProperties):
r = RequestEntry(-1, Manager._refresh, (), cb, cbe, False)
cfg.worker_q.put(r)
@dbus.service.method(
dbus_interface=MANAGER_INTERFACE)
def FlightRecorderDump(self):
"""
Dump the flight recorder to syslog
"""
cfg.blackbox.dump()
@dbus.service.method(
dbus_interface=MANAGER_INTERFACE,
in_signature='s',