Bug 392913 - NTFS mountpoints appears as hidden after mount
Summary: NTFS mountpoints appears as hidden after mount
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: HI major
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: regression
: 393400 393625 394173 394650 395936 400467 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-04-09 07:24 UTC by Michael Heidelbach
Modified: 2019-01-23 02:48 UTC (History)
20 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.50


Attachments
screenshot of KFind in browse mode (67.48 KB, image/jpeg)
2018-05-07 01:59 UTC, summersons96-squareformat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Heidelbach 2018-04-09 07:24:33 UTC
Since 5.45
Title says it.
Unless 'Show Hidden Files' is checked in Dolphin's treeview and it does not follow navigation anymore.
Of course NTFS mountpoints do show up in files list only with 'Show Hidden Files' checked.
Visibility of the mountpoint changes with mounting/unmounting the volume.
Comment 1 Kai Uwe Broulik 2018-04-09 08:25:59 UTC
Where did you mount the partition to?
Comment 2 Michael Heidelbach 2018-04-09 09:31:04 UTC
/etc/fstab:
UUID=01CDCE3D6EE37620  /media/Entwicklung  ntfs-3g  defaults,noauto,users,exec,noatime,user_xattr  0 0
Comment 3 Kai Uwe Broulik 2018-04-09 09:32:00 UTC
Do you have this change on your system [1]?

[1] https://cgit.kde.org/solid.git/commit/?id=122a6cd8989a4bd3096fddea908a1c2b223be62a
Comment 4 Kai Uwe Broulik 2018-04-09 11:10:11 UTC
The bug is:

The FILE_ATTRIBUTE_HIDDEN flag is set on the root NTFS folder, e.g. /media/my_ntfs_drive so it won't show up in the directory tree or file view unless hidden files are shown. This looks like an NTFS3g bug (feature) and not much we can do on our side.

Cc'ing Roman as the author of the NTFS hidden kio patch.
Comment 5 Nate Graham 2018-04-09 13:42:51 UTC
Roman, looks like we'll have to add a special case for NTFS volumes themselves.
Comment 6 Patrick Silva 2018-04-23 13:24:26 UTC
*** Bug 393400 has been marked as a duplicate of this bug. ***
Comment 7 Roman Inflianskas 2018-04-25 09:28:01 UTC
I sent email to the ntfs-3g devs and got the response: https://sourceforge.net/p/ntfs-3g/mailman/ntfs-3g-devel/thread/52565157.yPRXXrU2is%40linux-iy6m/#msg36291190

As I understand they are not going to fix this because they are following Microsoft specification.

As for fixing this from the KIO, I don't know a good way how to do this. It's possible to check whether a directory is a mount point via /proc/mounts, but doing this for every file is inefficient.
Comment 8 Nate Graham 2018-04-25 13:06:52 UTC
I don't think we need to check every file. The Places Panel knows what the disks are; we can just have it check them, no?
Comment 9 Kai Uwe Broulik 2018-04-30 08:01:13 UTC
*** Bug 393625 has been marked as a duplicate of this bug. ***
Comment 10 Wolfgang Bauer 2018-05-04 14:42:50 UTC
What about reverting this change until a solution can be found?
Comment 11 summersons96-squareformat 2018-05-07 01:51:33 UTC
PCLinuxOS 2018
Qt Version: 5.10.0
KDE Plasma 5.12.x
KDE Frameworks Version: 5.45.0

Hi,
I wonder if the bug I was about to report before seeing this thread is the same.

The partition is mounted at /media/DATA

Example I am using (there are others) is KFind. It is not possible to browse to my ntfs partition to search for files. DATA partition shows up on the left of the KFind browser but media on the right does not show any directories or files.

Image url for KFind failing in its duty at the end of this report/query.

The partition is mounted and can be browsed from Dolphin, files accessible as usual.

Other examples are SMplayer; VLC; Single files can be reached from: 

Open>File>DATA

But not from: 

Open>Directory>media as it shows up as empty.

I'm not following the argument about 'Show open Files' in Dolphin. I always have this checked.

Different bug?

http://mypics.findmoore.net/images/macemm/kfind.jpg
Comment 12 summersons96-squareformat 2018-05-07 01:59:16 UTC
Created attachment 112456 [details]
screenshot of KFind in browse mode

I'd forgotten to add the screenshot as an attachment.

Apologies
Comment 13 Wolfgang Bauer 2018-05-08 14:19:08 UTC
(In reply to summersons96-squareformat from comment #11)
> I'm not following the argument about 'Show open Files' in Dolphin. I always
> have this checked.
Dolphin's settings only affect dolphin.

You'd need to enable "Show hidden files" in the file dialog itself to see the hidden files/folders there. Right-click on the folder list to do that.

> Different bug?
No, I'd this is indeed the same issue.
Comment 14 summersons96-squareformat 2018-05-08 22:19:09 UTC
(In reply to Wolfgang Bauer from comment #13)

> Dolphin's settings only affect dolphin.
> 
> You'd need to enable "Show hidden files" in the file dialog itself to see
> the hidden files/folders there. Right-click on the folder list to do that.
> 
> > Different bug?
> No, I'd this is indeed the same issue.

Hello and thanks for the clarification concerning hidden folders in the file dialogue.
Comment 15 Patrick Silva 2018-05-12 20:16:37 UTC
*** Bug 394173 has been marked as a duplicate of this bug. ***
Comment 16 Lukas Ba. 2018-05-12 22:06:38 UTC
Ask ntfs-3g to include a mount option that breaks the specification.
Comment 17 Patrick Silva 2018-05-31 19:20:58 UTC
*** Bug 394650 has been marked as a duplicate of this bug. ***
Comment 18 Kai Uwe Broulik 2018-06-27 17:20:01 UTC
How about we use KMountPoints to just ignore the NTFS hidden flag for the root volume. I like the NTFS 3g mount option better but then we don't control the stack so we cannot really enforce using this.
Comment 19 Kai Uwe Broulik 2018-06-28 06:43:49 UTC
*** Bug 395947 has been marked as a duplicate of this bug. ***
Comment 20 Kai Uwe Broulik 2018-06-28 13:10:22 UTC
Anyone affected, please test patch [1]. There's some quirks with it, but works mostly fine. I lack the NTFS heavy usecase for being able to properly test it, other than "yes, the root thing shows up now"

[1] https://phabricator.kde.org/D13782
Comment 21 Patrick Silva 2018-07-09 16:53:47 UTC
*** Bug 395936 has been marked as a duplicate of this bug. ***
Comment 22 Kai Uwe Broulik 2018-08-09 07:47:04 UTC
Git commit f6df95e595ee3a5322fb70c7dd5860630f82ffdd by Kai Uwe Broulik.
Committed on 09/08/2018 at 07:46.
Pushed by broulik into branch 'master'.

Ignore NTFS hidden flag for root volume

Those are always hidden as far as NTFS is concerned but leads to unwanted side-effects of NTFS volumes becoming
inaccessible in the UI

Differential Revision: https://phabricator.kde.org/D13782

M  +14   -1    src/ioslaves/file/file_unix.cpp

https://commits.kde.org/kio/f6df95e595ee3a5322fb70c7dd5860630f82ffdd
Comment 23 Aleksey Kontsevich 2018-10-09 18:48:08 UTC
BTW, same thing for USB mount points in KDE save/open dialogs - they are hidden (visible in Dolphin).
Comment 24 Nate Graham 2018-10-09 18:49:58 UTC
(In reply to Aleksey Kontsevich from comment #23)
> BTW, same thing for USB mount points in KDE save/open dialogs - they are
> hidden (visible in Dolphin).

Are you talking about NTFS disks? What version of KIO/KDE Frameworks are you using? The fix is in 5.50.
Comment 25 Aleksey Kontsevich 2018-10-09 18:56:59 UTC
(In reply to Nate Graham from comment #24)
> (In reply to Aleksey Kontsevich from comment #23)
> > BTW, same thing for USB mount points in KDE save/open dialogs - they are
> > hidden (visible in Dolphin).
> 
> Are you talking about NTFS disks? 
Any - fat32 (vfat).

>What version of KIO/KDE Frameworks are you using? The fix is in 5.50.
latest - 5.50, plasma 5.13.5
Comment 26 Nate Graham 2018-10-09 19:01:00 UTC
(In reply to Aleksey Kontsevich from comment #25)
> (In reply to Nate Graham from comment #24)
> > (In reply to Aleksey Kontsevich from comment #23)
> > > BTW, same thing for USB mount points in KDE save/open dialogs - they are
> > > hidden (visible in Dolphin).
> > 
> > Are you talking about NTFS disks? 
> Any - fat32 (vfat).

That's a different issue, then. This bug was only about NTFS disks. Please file a new bug.
Comment 27 Patrick Silva 2018-10-30 11:47:45 UTC
*** Bug 400467 has been marked as a duplicate of this bug. ***
Comment 28 kdebugs 2018-11-30 03:37:45 UTC
I'm on 18.10, which as I understand it has Frameworks 5.50 and thus includes the fix, but I'm having the same (or a similar) issue:

NTFS volumes mounted via fstab as:
UUID=123456789 /mydrive ntfs defaults,umask=007,gid=46 0       0

...are visible if I navigate to / in dolphin, but symlinks to the mounted directory are not. E.g.

ln -s /mydrive /tmp/mydrive

...and then navigate in dolphin to /tmp and "mydrive" is invisible unless hidden files are shown.

Same issue? I note that "mydrive" is in my dolphin "places" list.

Dolphin v18.04.3
ntfs-3g 2017.3.23 integrated FUSE 28
Linux hostname 4.18.0-11-generic #12-Ubuntu SMP Tue Oct 23 19:22:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Thanks!
Comment 29 kdebugs 2018-12-09 21:10:56 UTC
Perhaps I should file a new bug for comment #28?
Comment 30 Nate Graham 2018-12-22 04:49:23 UTC
Yes please!
Comment 31 electrobug 2019-01-23 02:42:43 UTC
(In reply to kdebugs from comment #29)
> Perhaps I should file a new bug for comment #28?

@kdebugs: Did you create a new report?  If so, could you point me to it.  If not, should I create one?

I'm experiencing what seems to be the same issue on two separate computers with KDE Frameworks versions above 5.50:
Computer 1: Vanilla Arch Linux with Dolphin 18.12.1 with KDE Frameworks 5.54.0
Computer 2: Manjaro with Dolphin 18.12.1 with KDE Frameworks 5.53.0

On both computers, I have NTFS volumes mounted via fstab with default options.  Example:
UUID=0123456789ABCD           /mnt/windows            ntfs    defaults 0 0

If I then have a symlink under home that points to this directory:
windows -> /mnt/windows

The symlink only shows in Dolphin if I turn on "Hidden Files" (Alt+.).  It makes no difference if the links are made via Dolphin, from the command line etc (and I refreshed multiple times to be sure the links were in Dolphin's view of the FS).

This seems to be the same bug, but it's still present in KF > 5.53.0.  Should I open a new report with this info?

LMK if you need more information or want me to try anything.

Thanks!
Comment 32 kdebugs 2019-01-23 02:45:12 UTC
I did report a new bug: https://bugs.kde.org/show_bug.cgi?id=402738

(sorry, though I updated here already)
Comment 33 kdebugs 2019-01-23 02:45:34 UTC
*thought
Comment 34 electrobug 2019-01-23 02:48:09 UTC
(In reply to kdebugs from comment #32)
> I did report a new bug: https://bugs.kde.org/show_bug.cgi?id=402738
> 
> (sorry, thought I updated here already)

No worries, I'll add my comment to that issue.  Thanks!