-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fuse reported filesystem type is fuseblk, it should be fuse.ntfs #36
Comments
This is a fuse issue, AFAIK ntfs-3g cannot do anything about it, unless fuse implements some interface for it. You should probably report to https://github.com/libfuse/libfuse/issues |
The issue seems to be that |
The libfuse interface for that is |
Interesting, thanks. Just checked with libfuse3 and this works, but ntfs-3g usually uses fuse-lite which does not support this option. Anyway, I am having this set up for a later version. |
Apparently it was explicitly removed: f56ee25
|
One concern: If we set the |
That would be broken anyway. If the goal is to get ntfs3g mounts, it would also match non-ntfs3g fuse(blk) mounts. If the goal is to match all fuse(blk) mounts, then it would miss the majority of them. |
I am reopening the issue as more examination is needed. For instance, what about an external disk plugged in and mounted automatically ? |
Broken or not, such scripts may exist so it makes sense to have the option to revert the change in behaviour. |
|
As someone who has just finished writing a script that needed the type of a mounted NTFS partition, I can tell you that this situation is unbearable. Please correct it. I am sure you can. And I don't care if I would have to "correct" my own script, since the correction would remove the extra case I had to program for NTFS. Because instead of the simple (and fast!)
I now have to take the route through
(Here BTW the See also the long, painful discussion for this should-be-painless issue at |
FWIW, the solution we found for KDE's C++ code was to use libudev: |
@ahmadsamir
So you use code from lsblk. I use blkid to determine filesystem type (including 'ntfs') in the code I posted above. Both utilities are part of the same package: util-linux. So we are talking about the same method, you in the code, me on the command line. :-) |
Yep, I mainly posted that link for those who need a C++ solution of this issue :) |
Posting a proposed patch for this issue, appending the subtype 'ntfs-3g' by default. Feedback appreciated. |
Make it a PR ;), it is way easier to discuss that way. |
cat /proc/mounts
with fuse mounted ntfs will report the fs type of the block is fuseblk.This makes it hard to distinguish the fuse mounts from other kinds (fuse.nfs ...).
This causes issues downstream like https://bugs.kde.org/show_bug.cgi?id=451408
Please consider make the fuse ntfs driver report a more descriptive filesystem type, like fuse.ntfs or fuseblk.ntfs
https://github.com/tuxera/ntfs-3g/search?q=fuseblk
The text was updated successfully, but these errors were encountered: