Commit 9275e6f
committed
qui-devices: Improve partition handling
At device_attached() function:
When a partition is attached, the parent device’s entry is immediately
removed from the QubesDB, the sub-device’s infomation is changed, and
an device-attach event is triggered. However, due to concurrency
issues, the API may not return information about the attached device.
In that case, let’s query the backend domain to get the proper device
information.
At device_removed() function:
If the parent device has sub-devices, updates their internal
information.
Fixes: QubesOS/qubes-issues#10828
Fixes: QubesOS/qubes-issues#107321 parent 3134d0c commit 9275e6f
1 file changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
341 | 371 | | |
342 | 372 | | |
343 | 373 | | |
| |||
606 | 636 | | |
607 | 637 | | |
608 | 638 | | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
609 | 650 | | |
610 | 651 | | |
611 | 652 | | |
| |||
0 commit comments