simple-mtpfs
simple-mtpfs copied to clipboard
Issue with editing files on mounted device
What the Issues?
I am unable to edit files on any android device I've mounted. However, I'm able to create and delete files without any issue. Sometime when I initiate a file transfer the file is created on the mounted device, however the content is empty. Thus, I can deductively reason that the issue is limited to the inability for simple-mtpfs to edit created files.
How to replicate the issue?
- Mount the device
- Go to the directory
-
touch filename.txt
-
echo file content > filename.txt
Expected behavior
No output
Actual behavior
echo: write error: input/output error
PC Config
Build: https://aur.archlinux.org/packages/simple-mtpfs-git/ Distro: Arch Linux Kernel: 5.8.9-arch2-1
Android Device Config
Oneplus 8 128GB
I am having the same issue. I am using Gentoo Linux with kernel 5.4.38-gentoo and a Moto G6. The issue started with commit 2bcc4551e9ad7c3827a52af7edd1888775ab5acc; everything worked fine before that.
I have the same problem. What's more interesting, the device is useless after that error happens. I can read from it fine before it, but after the first failed write any file operation at all hangs the program performing it. Furthermore, after unmounting the device it can't be mounted again (LIBMNT PANIC: trying to dump stack of a NULL device!) until I disconnect my phone and connect it again.
Thank you, reverting 2bcc4551e9ad7c3827a52af7edd1888775ab5acc fixed the problem for me.