Skip to content

qui-devices widget does not update dm device name when it changes #10681

@crass

Description

@crass

Qubes OS release

Qubes OS 4.2, Qubes OS 4.3

Brief summary

When a qube changes the device name for a dm block device, eg. by removing the dm device and creating a new one using the same dm device node, the qui-devices widget continues to use the old name. The output of qvm-block list does show the correct, new name. Restarting the widget in dom0 (systemctl --user restart [email protected]) upadates to the correct dm name. So I suspect its a caching issue in the widget.

Steps to reproduce

In domN:

  1. truncate -s 1M test
  2. DEV=$(losetup --show -f test)
  3. echo "0 1 linear ${DEV} 0"|dmsetup create test1
  4. dmsetup remove test1
  5. echo "0 1 linear ${DEV} 0"|dmsetup create test2

In GUI:

  1. Click on qui-devices widget and see that the device still shows as test1

Expected behavior

The widget should be updated with the correct dm name always.

Actual behavior

The widget uses the old dm name.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions