Skip to content

Commit

Permalink
btrfs: print the kernel and OS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ader1990 committed Aug 20, 2024
1 parent 7b8bba4 commit af97417
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_library/disk_util
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,11 @@ def SudoOutputToConsole(cmd):

def LogBtrfsUsage(mount_point, section=None):
print('Btrfs usage for mount point `%s` %s' % (mount_point, section))
try:
SudoOutputToConsole(['cat', '/etc/os-release'])
SudoOutputToConsole(['uname', '-a'])
except Exception as ex1:
print(ex1)
try:
SudoOutputToConsole(['btrfs', 'fi', 'usage', mount_point])
except Exception as ex:
Expand Down

0 comments on commit af97417

Please sign in to comment.