Skip to content

Commit

Permalink
Report file system type
Browse files Browse the repository at this point in the history
Previously, only the file sizes were reported:

~~~
Filesystem                                             Size  Used Avail Use% Mounted on
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4  399G  9.1G  373G   3% /
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4  399G  9.1G  373G   3% /
~~~

Newly, also file system type will be reported:

~~~
Filesystem                                             Type   Size  Used Avail Use% Mounted on
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4  btrfs  399G  9.1G  373G   3% /
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4  btrfs  399G  9.1G  373G   3% /
~~~

This is useful in case file system influeces the build result.

Fixes #1263
  • Loading branch information
voxik authored and praiskup committed Jan 4, 2024
1 parent 29d75f6 commit 1c857d7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mock/py/mockbuild/plugins/hw_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _unprivPreInitHook(self):
out.write("\n\nMemory:\n")
out.write(output)

cmd = ["/bin/df", "-H", self.buildroot.make_chroot_path(), self.config["cache_topdir"]]
cmd = ["/bin/df", "-H", "-T", self.buildroot.make_chroot_path(), self.config["cache_topdir"]]
output = mockbuild.util.do(cmd, shell=False, returnOutput=True, raiseExc=False)
out.write("\n\nStorage (chroot, cache_topdir):\n")
out.write(output)
Expand Down
15 changes: 15 additions & 0 deletions releng/release-notes-next/report-file-system-type.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Previously, only the file sizes were reported by the hw_info plugin:

~~~
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4 399G 9.1G 373G 3% /
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4 399G 9.1G 373G 3% /
~~~

Newly, also file system type is reported:

~~~
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4 btrfs 399G 9.1G 373G 3% /
/dev/mapper/luks-3aa4fbe3-5a19-4025-b70c-1d3038b76bd4 btrfs 399G 9.1G 373G 3% /
~~~

0 comments on commit 1c857d7

Please sign in to comment.