Red Hat Bugzilla – Bug 971878
/tmp on tmpfs breaks simple-mtpfs
Last modified: 2016-05-31 21:31:55 EDT
Description of problem:
I am trying to transfer files from my Fedora 18 netbook to my Android tablet using rsync
During the file transfer simple-mtpfs errors out complaining about lack of disk space:
rsync: write failed on "/mnt/External SD/Music/group/song.mp3": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(322) [receiver=3.0.9]
rsync: connection unexpectedly closed (1196 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
Apparent cause is simple-mtpfs running out of disk-space below /tmp:
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 1016844 0 1016844 0% /dev
tmpfs 1026668 68 1026600 1% /dev/shm
tmpfs 1026668 9748 1016920 1% /run
tmpfs 1026668 0 1026668 0% /sys/fs/cgroup
/dev/mapper/VolGroup02-LogVol00 10480200 8737144 1204024 88% /
tmpfs 1026668 1024476 2192 100% /tmp
/dev/sda10 497572 87512 383948 19% /boot
simple-mtpfs 21124976 2310600 18814376 11% /mnt
Seemingly, simple-mtpfs stores a lot of data below /tmp (/tmp/simple-mtpfs-*), which easily can exceed the amount of RAM available in /tmp (tmpfs) on small RAM systems.
Note: In this case, the netbook only has 2GB of RAM, while /mnt (On the Android tablet) is much bigger (>16 GB). The amount of data to be copied is ca. 4GB.
Steps to Reproduce:
1. rsync more data than tmpfs's size to an simple-mtpfs mounted file system
which is one of many examples which confirms mine and the opinion of many others that "/tmp on tmpfs" is a pretty dumb default for a operating system abd broken by design
You can redirect simple-mtpfs to some other temporary directory either using -o tmp-dir. I strongly recommend you to use current git code, where you can specify TMPDIR.
(In reply to Peter Hatina from comment #2)
> You can redirect simple-mtpfs to some other temporary directory either using
> -o tmp-dir. I strongly recommend you to use current git code, where you can
> specify TMPDIR.
Instead of trying to find weak excuses, how about you to fix this package accordingly, rsp. RH to revert this /tmp on tmpfs absurdity?
(In reply to Ralf Corsepius from comment #3)
> (In reply to Peter Hatina from comment #2)
> > You can redirect simple-mtpfs to some other temporary directory either using
> > -o tmp-dir. I strongly recommend you to use current git code, where you can
> > specify TMPDIR.
> Instead of trying to find weak excuses, how about you to fix this package
> accordingly, rsp. RH to revert this /tmp on tmpfs absurdity?
simple-mtpfs-0.2-1.fc20 has been submitted as an update for Fedora 20.
simple-mtpfs-0.2-1.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing simple-mtpfs-0.2-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '18'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 18's end of life.
Thank you for reporting this issue and we are sorry that we may not be
able to fix it before Fedora 18 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior to Fedora 18's end of life.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
simple-mtpfs-0.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.