Bug 336529 - Could not write to file / Disk full reported on SSHFS to android
Summary: Could not write to file / Disk full reported on SSHFS to android
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.12.5
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-20 23:34 UTC by aaron
Modified: 2014-10-10 02:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aaron 2014-06-20 23:34:24 UTC
If you try to copy a file to a folder that mounts an android device using sshd from android, android fails to report the "free space on disk" with "operation not supported":

[user@ghost ~]$ df -h
df: ‘/home/unmanarc/mnt/cel’: Operation not supported

And then, dolphin fails to copy any file to this remote drive, even the drive have enough space there. 

I know that they must report the free space, but this should not be a blocking point.

I guess that if you remotely mount a device with 0% free space, but inside that device, there is a mounted directory with some free space, and you remotely mount that 0%FREE directory, dolphin will block any file operation to the subdirectory with free space... 

My recommendation: 

Check if it's a remotely mounted device, and don't check for space availability if is it. Just copy.

Other info:
** 
cp and nautilus copied the file flawlessly

Reproducible: Always

Steps to Reproduce:
1. mount your android with sshfs
2. try to copy a file to it using dolphin

Actual Results:  
Full disk reported when isn't

Expected Results:  
Copy the file.
Comment 1 Frank Reininghaus 2014-06-21 07:41:12 UTC
Thanks for the bug report. I'll reassign to the KIO library, which handles copying and moving files for Dolphin and other KDE applications.
Comment 2 Dawit Alemayehu 2014-09-14 01:22:21 UTC
https://git.reviewboard.kde.org/r/120182/
Comment 3 Dawit Alemayehu 2014-09-19 11:25:40 UTC
Git commit 21725e37952f314c5147b4cd68c010dd3a952333 by Dawit Alemayehu.
Committed on 13/09/2014 at 12:25.
Pushed by adawit into branch 'KDE/4.14'.

Prevent incorrect disk full error messages on mounts where we cannot determine
the amount of free space.
FIXED-IN: 4.14.2
REVIEW: 120182

M  +9    -7    kio/kio/copyjob.cpp

http://commits.kde.org/kdelibs/21725e37952f314c5147b4cd68c010dd3a952333
Comment 4 Dawit Alemayehu 2014-10-10 02:11:21 UTC
Git commit dca4fa0119e2495ebf7577ecd072c8bcd4d46874 by Dawit Alemayehu.
Committed on 06/10/2014 at 12:43.
Pushed by adawit into branch 'master'.

frameworks port of commit 21725e3:

Prevent incorrect disk full error messages on mounts where we cannot determine
the amount of free space.

M  +10   -7    src/core/copyjob.cpp

http://commits.kde.org/kio/dca4fa0119e2495ebf7577ecd072c8bcd4d46874