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

Merge pull request #5553 from ThomasWaldmann/debug-info-fuse

debug info: include infos about FUSE implementation, fixes #5546
This commit is contained in:
TW 2020-12-06 20:12:50 +01:00 committed by GitHub
commit d2673c09f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'))