QubesOS / qubes-issues

The Qubes OS Project issue tracker
https://www.qubes-os.org/doc/issue-tracking/
541 stars 48 forks source link

Show newly-created/removed pools in real time in disk usage widget #8703

Open emanruse opened 1 year ago

emanruse commented 1 year ago

Qubes OS release

4.1.2

Brief summary

qui-disk-space does not show newly created/removed pools in real time.

Steps to reproduce

  1. Click on Qubes Disk Space Monitor panel icon and note the listed pools

user@dom0:~ > mkdir -p ~/tmp/mydir
user@dom0:~ > sudo mount --types tmpfs --options size=1G my_ram_pool /home/user/tmp/mydir
user@dom0:~ > qvm-pool add my_ram_pool file --option revisions_to_keep=1 --option dir_path="${HOME}/tmp/mydir"
  1. = 1

Expected behavior

Newly added/removed pools should show up in real time in the widget.

Actual behavior

The widget must be restarted (or another instance must be started) to show the actual pools.

Possibly related

alimirjamali commented 2 months ago

This looks easy. Widget class has a DiskSpace.refresh_icon() function which is called every 120 seconds to update data. It should be possible to connect it to pool create/remove events as well. I will work on it.