Bug 408726 - Cannot copy file to empty dir on NTFS/HFS with paragon's ufsd driver
Summary: Cannot copy file to empty dir on NTFS/HFS with paragon's ufsd driver
Status: RESOLVED DOWNSTREAM
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-15 08:37 UTC by Fab Stz
Modified: 2019-07-09 21:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fab Stz 2019-06-15 08:37:22 UTC
Hello,

When trying to copy a file in dolphin to a new empty directory CTRL+V doesn't work, and right click-Paste is greyed out. I first have to create a file in that directory to be able to paste the file.

This happens on partitions mounted as UFSD (paragon's ntfs/hfs driver).
When the NTFS partition is mounted with NTFS-3G there is no such problem. Neither with FAT32, nor with EXT4 partitions.

This happens in debian stretch (dolphin 16.08, kio 5.28) and buster (dolphin 18.08, kio 5.54)

My current workaround: Copy does actually work by applying the patch proposed here:
https://phabricator.kde.org/D6906

Which BTW reports this which seems to point the issue to kio_file ?
kf5.kio.core: UDSEntry for '.' not found, creating a default one. Please fix the "kio_file" KIO slave

Maybe this is a KIO/kio_file bug ? I'm not sure.
Comment 1 Nate Graham 2019-06-15 16:32:32 UTC
Either a KIO bug or a bug in the driver itself. Moving this to KIO for now. Can you also file a bug with the developers of the driver? Thanks!
Comment 2 Fab Stz 2019-06-15 17:02:41 UTC
(In reply to Nate Graham from comment #1)
> Can you also file a bug with the developers of the driver? Thanks!

Ok, I did that in my personal account @ Paragon Software (Ticket ID: 267813)
Comment 3 Nate Graham 2019-06-15 17:06:56 UTC
Thanks! Can you post a link to it?
Comment 4 Fab Stz 2019-06-15 17:12:50 UTC
(In reply to Nate Graham from comment #3)
> Thanks! Can you post a link to it?

Well, that's in my personal account. When trying to reach the URL I have to log first into my personal account before anything gets displayed... It's basically the same as here except I added that it happens with version 9.5 & 9.6.7 of the driver.
Moreover, I'm not sure I will get any answer since I use the free version which is without support. ( https://www.paragon-software.com/home/ntfs-linux-professional/#comparison )
Comment 5 Fab Stz 2019-06-15 17:18:13 UTC
I can also add that this happens with ufsd for both HFS+ and NTFS filesystems
Comment 6 Fab Stz 2019-07-08 18:36:58 UTC
Please find below the answer I got from Paragon


We have investigated the issue, and found that it is caused by the fact that UFSD by default do not return "." and ".." entries for the directory, which causes total entry count to be 0, while Dolphin allows to copy into the directory only if it contains at least 1 entry.

You can fix this on your side like this:
In the directory with UFSD sources, locate "drv_config.h" file, edit it, and add the following line:

#define DEFAULT_MOUNT_OPTIONS "showdots"

Then rebuild/reinstall the driver.
Comment 7 Nate Graham 2019-07-09 21:44:25 UTC
Interesting, thanks.

Given that this problem is both caused by the Paragon driver, and resolved by compiling it in a different way, I'm marking it as RESOLVED DOWNSTREAM because there's nothing for us to do. Perhaps you could ask the Paragon folks to ship the sources with that flag enabled by default.