1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-23 08:16:54 +00:00

debug info / sysinfo: add infos about FUSE, fixes #5546

This commit is contained in:
Thomas Waldmann 2020-12-06 18:52:55 +01:00
parent 90f2587700
commit e884b80065

View file

@ -86,13 +86,17 @@ def sysinfo():
msgpack_version = '.'.join(str(v) for v in msgpack.version) msgpack_version = '.'.join(str(v) for v in msgpack.version)
except: except:
msgpack_version = 'unknown' 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 = [] info = []
if uname is not None: if uname is not None:
info.append('Platform: %s' % (' '.join(uname), )) info.append('Platform: %s' % (' '.join(uname), ))
if linux_distribution is not None: if linux_distribution is not None:
info.append('Linux: %s %s %s' % linux_distribution) info.append('Linux: %s %s %s' % linux_distribution)
info.append('Borg: %s Python: %s %s msgpack: %s' % ( info.append('Borg: %s Python: %s %s msgpack: %s fuse: %s' % (
borg_version, python_implementation, python_version, msgpack_version)) borg_version, python_implementation, python_version, msgpack_version, llfuse_info))
info.append('PID: %d CWD: %s' % (os.getpid(), os.getcwd())) info.append('PID: %d CWD: %s' % (os.getpid(), os.getcwd()))
info.append('sys.argv: %r' % sys.argv) info.append('sys.argv: %r' % sys.argv)
info.append('SSH_ORIGINAL_COMMAND: %r' % os.environ.get('SSH_ORIGINAL_COMMAND')) info.append('SSH_ORIGINAL_COMMAND: %r' % os.environ.get('SSH_ORIGINAL_COMMAND'))