Commit 4460b93
committed
Apple Virtualization: only update shared directories if they changed to avoid unnecessary virtiofs reconnections
For Apple Virtualization, only update shared directories if they changed to avoid unnecessary virtiofs reconnections.
Although this issue existed prior to v4.5.4, following v4.5.4, UTM introduced dynamic resolution. Resizing
the window with dynamic resolution is one repeatable way to cause a registry update. updateConfigFromRegistry()
updates the shared directories on every call, causing the virtiofs to reconnect. As the virtiofs disconnects
and reconnects, file and directory handles on the share are invalidated causing guest application errors.
To reproduce bug:
- Apple Virtualization, Linux guest, Dynamic resolution enabled
- Open terminal
- $ cd {shared_directory}
- Resize the window
- $ ls
- Result: ls: cannot open directory '.': No such file or directory1 parent 4bacaa9 commit 4460b93
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
972 | 983 | | |
973 | 984 | | |
974 | 985 | | |
| |||
0 commit comments