From e884b800655f1ebd0b8988a61071a2f4ef63076d Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 6 Dec 2020 18:52:55 +0100 Subject: [PATCH] debug info / sysinfo: add infos about FUSE, fixes #5546 --- src/borg/helpers/misc.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/borg/helpers/misc.py b/src/borg/helpers/misc.py index aec90ee7b..3e62b3e4a 100644 --- a/src/borg/helpers/misc.py +++ b/src/borg/helpers/misc.py @@ -86,13 +86,17 @@ def sysinfo(): msgpack_version = '.'.join(str(v) for v in msgpack.version) except: msgpack_version = 'unknown' + from ..fuse_impl import llfuse, BORG_FUSE_IMPL + llfuse_name = llfuse.__name__ if llfuse else 'None' + llfuse_version = (' %s' % llfuse.__version__) if llfuse else '' + llfuse_info = '%s%s [%s]' % (llfuse_name, llfuse_version, BORG_FUSE_IMPL) info = [] if uname is not None: info.append('Platform: %s' % (' '.join(uname), )) if linux_distribution is not None: info.append('Linux: %s %s %s' % linux_distribution) - info.append('Borg: %s Python: %s %s msgpack: %s' % ( - borg_version, python_implementation, python_version, msgpack_version)) + info.append('Borg: %s Python: %s %s msgpack: %s fuse: %s' % ( + borg_version, python_implementation, python_version, msgpack_version, llfuse_info)) info.append('PID: %d CWD: %s' % (os.getpid(), os.getcwd())) info.append('sys.argv: %r' % sys.argv) info.append('SSH_ORIGINAL_COMMAND: %r' % os.environ.get('SSH_ORIGINAL_COMMAND'))