summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/800.toml
blob: a50ada3c10d110518e781cb49006078e74c9d2d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
id = 800
title = "Cannot write to MTP Devices in Qemu 6.0.0+"
state = "closed"
created_at = "2022-01-04T02:15:45.897Z"
closed_at = "2022-01-14T10:42:32.674Z"
labels = ["Storage", "USB"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/800"
host-os = "NixOS"
host-arch = "x86"
qemu-version = "6.1.0 and 6.2.0"
guest-os = "NixOS"
guest-arch = "x86"
description = """QEMU versions above 6.0.0 are no longer able to write to MTP devices, the kernel prints a warning which is unique to versions above 6.0.0:
```
usb-mtp: file monitoring init failed: File monitoring not available on this platform is just warning
```"""
reproduce = """1. Launch a QEMU virtual machine with `-usb -device usb-mtp,rootdir=/tmp,readonly=false` using any QEMU version above 6.0.0
2. Mount the MTP device using something:
   ```
   mkdir mtpDevice && jmtpfs mtpDevice
   ```
3. Try to write to the mtp device:
   ```
   touch mtpDevice/test
   ```
4. Observe that you will get an input/output error when trying to write to the device, like this:
   ```
   vm-test-run-mtp> client: must succeed: /nix/store/xmib7222ybr72iyycra4w386s8p1k4av-jmtpfsTest.sh >&2
   vm-test-run-mtp> client # Device 0 (VID=46f4 and PID=0004) is a QEMU Virtual MTP.
   vm-test-run-mtp> client # qemu-system-x86_64: usb-mtp: file monitoring init failed: File monitoring not available on this platform
   vm-test-run-mtp> client # /nix/store/xmib7222ybr72iyycra4w386s8p1k4av-jmtpfsTest.sh: line 4: phone/tmp/testFile: Input/output error
   ```"""
additional = """"""